Skip to content
Snippets Groups Projects
Commit b0576487 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Update recipe for symfony/framework-bundle

parent d1e58927
No related branches found
No related tags found
No related merge requests found
...@@ -5,36 +5,9 @@ declare(strict_types=1); ...@@ -5,36 +5,9 @@ declare(strict_types=1);
namespace App; namespace App;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\HttpKernel\Kernel as BaseKernel; use Symfony\Component\HttpKernel\Kernel as BaseKernel;
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
class Kernel extends BaseKernel class Kernel extends BaseKernel
{ {
use MicroKernelTrait; use MicroKernelTrait;
protected function configureContainer(ContainerConfigurator $container): void
{
$container->import('../config/{packages}/*.yaml');
$container->import('../config/{packages}/'.$this->environment.'/*.yaml');
if (is_file(\dirname(__DIR__).'/config/services.yaml')) {
$container->import('../config/services.yaml');
$container->import('../config/{services}_'.$this->environment.'.yaml');
} elseif (is_file($path = \dirname(__DIR__).'/config/services.php')) {
(require $path)($container->withPath($path), $this);
}
}
protected function configureRoutes(RoutingConfigurator $routes): void
{
$routes->import('../config/{routes}/'.$this->environment.'/*.yaml');
$routes->import('../config/{routes}/*.yaml');
if (is_file(\dirname(__DIR__).'/config/routes.yaml')) {
$routes->import('../config/routes.yaml');
} elseif (is_file($path = \dirname(__DIR__).'/config/routes.php')) {
(require $path)($routes->withPath($path), $this);
}
}
} }
...@@ -379,22 +379,22 @@ ...@@ -379,22 +379,22 @@
] ]
}, },
"symfony/framework-bundle": { "symfony/framework-bundle": {
"version": "5.3", "version": "5.4",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "master", "branch": "master",
"version": "5.3", "version": "5.4",
"ref": "414ba00ad43fa71be42c7906a551f1831716b03c" "ref": "d4131812e20853626928e73d3effef44014944c0"
}, },
"files": [ "files": [
"config/services.yaml",
"config/routes/framework.yaml",
"config/preload.php",
"config/packages/cache.yaml", "config/packages/cache.yaml",
"config/packages/framework.yaml", "config/packages/framework.yaml",
"config/preload.php",
"config/routes/framework.yaml",
"config/services.yaml",
"public/index.php", "public/index.php",
"src/Kernel.php", "src/Controller/.gitignore",
"src/Controller/.gitignore" "src/Kernel.php"
] ]
}, },
"symfony/http-client": { "symfony/http-client": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment