Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
b52fe021
Commit
b52fe021
authored
May 14, 2014
by
Marco Pivetta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#598 - Removing old doctrine CLI script
parent
ca1532bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
42 deletions
+0
-42
doctrine.php
bin/doctrine.php
+0
-42
No files found.
bin/doctrine.php
deleted
100644 → 0
View file @
ca1532bf
<?php
require_once
'Doctrine/Common/ClassLoader.php'
;
$classLoader
=
new
\Doctrine\Common\ClassLoader
(
'Doctrine'
);
$classLoader
->
register
();
$classLoader
=
new
\Doctrine\Common\ClassLoader
(
'Symfony'
);
$classLoader
->
register
();
$configFile
=
getcwd
()
.
DIRECTORY_SEPARATOR
.
'cli-config.php'
;
$helperSet
=
null
;
if
(
file_exists
(
$configFile
))
{
if
(
!
is_readable
(
$configFile
))
{
trigger_error
(
'Configuration file ['
.
$configFile
.
'] does not have read permission.'
,
E_ERROR
);
}
require
$configFile
;
foreach
(
$GLOBALS
as
$helperSetCandidate
)
{
if
(
$helperSetCandidate
instanceof
\Symfony\Component\Console\Helper\HelperSet
)
{
$helperSet
=
$helperSetCandidate
;
break
;
}
}
}
$helperSet
=
(
$helperSet
)
?:
new
\Symfony\Component\Console\Helper\HelperSet
();
$cli
=
new
\Symfony\Component\Console\Application
(
'Doctrine Command Line Interface'
,
Doctrine\DBAL\Version
::
VERSION
);
$cli
->
setCatchExceptions
(
true
);
$cli
->
setHelperSet
(
$helperSet
);
$cli
->
addCommands
(
array
(
// DBAL Commands
new
\Doctrine\DBAL\Tools\Console\Command\RunSqlCommand
(),
new
\Doctrine\DBAL\Tools\Console\Command\ImportCommand
(),
));
$cli
->
run
();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment