mirror of
https://github.com/symfony/recipes.git
synced 2026-09-13 08:06:23 +03:00
Add project dir to framework bundle
This commit is contained in:
@@ -25,6 +25,11 @@ class Kernel extends BaseKernel
|
||||
}
|
||||
}
|
||||
|
||||
public function getProjectDir(): string
|
||||
{
|
||||
return \dirname(__DIR__);
|
||||
}
|
||||
|
||||
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
|
||||
{
|
||||
$container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));
|
||||
|
||||
Reference in New Issue
Block a user