@@ 96-101 (lines=6) @@ | ||
93 | { |
|
94 | $resourcesPath = $this->container->getParameter('tutu.root_path') . '/resources'; |
|
95 | ||
96 | if ($customPath = getenv('tutu_resources')) { |
|
97 | if (!file_exists($customPath)) { |
|
98 | throw new \RuntimeException(sprintf('Custom resources path \"%s\" does not exist.', $customPath)); |
|
99 | } |
|
100 | $resourcesPath = $customPath; |
|
101 | } |
|
102 | ||
103 | $this->container->setParameter( |
|
104 | 'resources_path', |
|
@@ 265-271 (lines=7) @@ | ||
262 | sprintf('%s/config/%s', $this->container->getParameter('tutu.root_path'), 'config.yml.dist') |
|
263 | ]; |
|
264 | ||
265 | if ($customPath = getenv('tutu_config')) { |
|
266 | if (!file_exists($customPath)) { |
|
267 | throw new \RuntimeException('Custom config file not found at '.$customPath); |
|
268 | } |
|
269 | ||
270 | $configFiles = (array) $customPath; |
|
271 | } |
|
272 | ||
273 | foreach ($configFiles as $filePath) { |
|
274 | if ($filePath && file_exists($filePath) && $config = Yaml::parse(file_get_contents($filePath))) { |