@@ -26,10 +26,10 @@ |
||
26 | 26 | $loader = new XmlFileLoader($container, new FileLocator()); |
27 | 27 | $filesystem = new Filesystem(); |
28 | 28 | |
29 | - if ($filesystem->exists(ROOT . 'app/container.xml')) { |
|
30 | - $loader->load(ROOT . 'app/container.xml'); |
|
31 | - } elseif ($filesystem->exists(ROOT . '/container.xml')) { |
|
32 | - $loader->load(ROOT . '/container.xml'); |
|
29 | + if ($filesystem->exists(ROOT.'app/container.xml')) { |
|
30 | + $loader->load(ROOT.'app/container.xml'); |
|
31 | + } elseif ($filesystem->exists(ROOT.'/container.xml')) { |
|
32 | + $loader->load(ROOT.'/container.xml'); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | $container->setParameter('dicId', uniqid()); |
@@ -16,14 +16,14 @@ |
||
16 | 16 | */ |
17 | 17 | public function boot() : Container |
18 | 18 | { |
19 | - $fileName = ROOT . 'cache/dic.php'; |
|
19 | + $fileName = ROOT.'cache/dic.php'; |
|
20 | 20 | /** @var Container $dic */ |
21 | 21 | if (!is_file($fileName)) { |
22 | 22 | $rebuild = new Rebuild(); |
23 | 23 | $rebuild->buildContainer(); |
24 | 24 | } |
25 | 25 | |
26 | - $className = file_get_contents(ROOT . 'cache/dic.txt'); |
|
26 | + $className = file_get_contents(ROOT.'cache/dic.txt'); |
|
27 | 27 | if (!class_exists($className, false)) { |
28 | 28 | include $fileName; |
29 | 29 | } |