[2.0] Fixed incorrectly used variable for cli config
This commit is contained in:
parent
d8bf040165
commit
37824abffe
@ -325,19 +325,19 @@ class Cli
|
|||||||
private function _initializeEntityManager(array $args, array &$taskArgs)
|
private function _initializeEntityManager(array $args, array &$taskArgs)
|
||||||
{
|
{
|
||||||
// Initialize EntityManager
|
// Initialize EntityManager
|
||||||
$configFile = ( ! isset($args['config'])) ? './cli-config.php' : $args['config'];
|
$configFile = ( ! isset($taskArgs['config'])) ? './cli-config.php' : $taskArgs['config'];
|
||||||
|
|
||||||
if (file_exists($configFile)) {
|
if (file_exists($configFile)) {
|
||||||
// Including configuration file
|
// Including configuration file
|
||||||
require $configFile;
|
require $configFile;
|
||||||
|
|
||||||
// Check existance of EntityManager
|
// Check existance of EntityManager
|
||||||
if ( ! isset($em)) {
|
if ( ! isset($em)) {
|
||||||
throw new \Doctrine\Common\DoctrineException(
|
throw new \Doctrine\Common\DoctrineException(
|
||||||
'No EntityManager created in configuration'
|
'No EntityManager created in configuration'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for gloal argument options here
|
// Check for gloal argument options here
|
||||||
if (isset($globalArguments)) {
|
if (isset($globalArguments)) {
|
||||||
// Merge arguments. Values specified via the CLI take preference.
|
// Merge arguments. Values specified via the CLI take preference.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user