mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 15:46:37 +03:00
moved etc/ to config/ and web/ to public/
This commit is contained in:
@@ -29,7 +29,7 @@ final class Kernel extends BaseKernel
|
||||
|
||||
public function registerBundles(): iterable
|
||||
{
|
||||
$contents = require dirname(__DIR__).'/etc/bundles.php';
|
||||
$contents = require dirname(__DIR__).'/config/bundles.php';
|
||||
foreach ($contents as $class => $envs) {
|
||||
if (isset($envs['all']) || isset($envs[$this->environment])) {
|
||||
yield new $class();
|
||||
@@ -39,7 +39,7 @@ final class Kernel extends BaseKernel
|
||||
|
||||
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
|
||||
{
|
||||
$confDir = dirname(__DIR__).'/etc';
|
||||
$confDir = dirname(__DIR__).'/config';
|
||||
$loader->load($confDir.'/packages/*'.self::CONFIG_EXTS, 'glob');
|
||||
if (is_dir($confDir.'/packages/'.$this->environment)) {
|
||||
$loader->load($confDir.'/packages/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob');
|
||||
@@ -49,7 +49,7 @@ final class Kernel extends BaseKernel
|
||||
|
||||
protected function configureRoutes(RouteCollectionBuilder $routes): void
|
||||
{
|
||||
$confDir = dirname(__DIR__).'/etc';
|
||||
$confDir = dirname(__DIR__).'/config';
|
||||
if (is_dir($confDir.'/routing/')) {
|
||||
$routes->import($confDir.'/routing/*'.self::CONFIG_EXTS, '/', 'glob');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user