Skip to content

Commit 9257e88

Browse files
author
Alessandro Chitolina
committed
fixed services definition files inclusion in phar
1 parent 1e6390f commit 9257e88

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

main.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
}
1010

1111
if (empty($dir)) {
12-
$dir = realpath(posix_getcwd());
12+
$dir = posix_getcwd();
1313
}
1414

15+
$dir = realpath($dir);
16+
1517
if (file_exists($dir.'/vendor/autoload.php')) {
1618
$loader = require $dir.'/vendor/autoload.php';
1719
}

src/Application/Kernel.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ protected function getRootDir($uri = false)
9595
}
9696

9797
if (empty($dir)) {
98-
$dir = realpath(__DIR__.'/../..');
98+
$dir = __DIR__.'/../..';
9999
}
100100

101-
return $dir;
101+
return realpath($dir);
102102
}
103103

104104
private function initPlugins()

src/Resources/config/services.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
imports:
2-
- { resource: services/ }
2+
- { resource: services/listeners.yml }
3+
- { resource: services/logging.yml }
4+
- { resource: services/synthetics.yml }
35

46
services:
57
event_dispatcher:

0 commit comments

Comments
 (0)