Use short-array syntax on "bin" directory
This commit is contained in:
parent
74c8a08828
commit
c609072ce1
1 changed files with 6 additions and 4 deletions
|
@ -20,8 +20,10 @@
|
||||||
use Symfony\Component\Console\Helper\HelperSet;
|
use Symfony\Component\Console\Helper\HelperSet;
|
||||||
use Doctrine\ORM\Tools\Console\ConsoleRunner;
|
use Doctrine\ORM\Tools\Console\ConsoleRunner;
|
||||||
|
|
||||||
$autoloadFiles = array(__DIR__ . '/../vendor/autoload.php',
|
$autoloadFiles = [
|
||||||
__DIR__ . '/../../../autoload.php');
|
__DIR__ . '/../vendor/autoload.php',
|
||||||
|
__DIR__ . '/../../../autoload.php'
|
||||||
|
];
|
||||||
|
|
||||||
foreach ($autoloadFiles as $autoloadFile) {
|
foreach ($autoloadFiles as $autoloadFile) {
|
||||||
if (file_exists($autoloadFile)) {
|
if (file_exists($autoloadFile)) {
|
||||||
|
@ -30,7 +32,7 @@ foreach ($autoloadFiles as $autoloadFile) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$directories = array(getcwd(), getcwd() . DIRECTORY_SEPARATOR . 'config');
|
$directories = [getcwd(), getcwd() . DIRECTORY_SEPARATOR . 'config'];
|
||||||
|
|
||||||
$configFile = null;
|
$configFile = null;
|
||||||
foreach ($directories as $directory) {
|
foreach ($directories as $directory) {
|
||||||
|
@ -51,7 +53,7 @@ if ( ! is_readable($configFile)) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$commands = array();
|
$commands = [];
|
||||||
|
|
||||||
$helperSet = require $configFile;
|
$helperSet = require $configFile;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue