You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!class_exists('\Symfony\Component\Console\Application')) {
5
9
if (is_file(__DIR__.'/../vendor/autoload.php')) {
6
10
require__DIR__.'/../vendor/autoload.php';
@@ -19,7 +23,7 @@ $helperSet = null;
19
23
if (file_exists($configFile)) {
20
24
if (!is_readable($configFile)) {
21
25
trigger_error(
22
-
'Configuration file [' . $configFile . '] does not have read permission.', E_USER_ERROR
26
+
"Configuration file [$configFile] does not have read permission.", E_USER_ERROR
23
27
);
24
28
}
25
29
@@ -33,29 +37,32 @@ if (file_exists($configFile)) {
33
37
}
34
38
} else {
35
39
trigger_error(
36
-
'Configuration file [' . $configFile . '] does not exist. See https://github.com/doctrine/phpcr-odm/wiki/Command-line-tool-configuration', E_USER_ERROR
40
+
"Configuration file [$configFile] does not exist. See https://github.com/doctrine/phpcr-odm/wiki/Command-line-tool-configuration", E_USER_ERROR
37
41
);
38
42
}
39
43
40
-
$helperSet = ($helperSet) ?: new \Symfony\Component\Console\Helper\HelperSet();
44
+
$helperSet = $helperSet ?: newHelperSet();
45
+
46
+
$cli = newApplication('PHPCR Command Line Interface', '0.1');
41
47
42
-
$cli = new \Symfony\Component\Console\Application('PHPCR Command Line Interface', '0.1');
0 commit comments