mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Updated symfony/framework-bundle
This commit is contained in:
parent
143b0c298c
commit
136b3a2b79
3 changed files with 19 additions and 43 deletions
|
@ -4,6 +4,9 @@
|
||||||
# Put parameters here that don't need to change on each machine where the app is deployed
|
# Put parameters here that don't need to change on each machine where the app is deployed
|
||||||
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
||||||
|
|
||||||
|
imports:
|
||||||
|
- { resource: parameters.yaml }
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# default configuration for services in *this* file
|
# default configuration for services in *this* file
|
||||||
_defaults:
|
_defaults:
|
||||||
|
@ -24,8 +27,11 @@ services:
|
||||||
# makes classes in src/ available to be used as services
|
# makes classes in src/ available to be used as services
|
||||||
# this creates a service per class whose id is the fully-qualified class name
|
# this creates a service per class whose id is the fully-qualified class name
|
||||||
App\:
|
App\:
|
||||||
resource: '../src/*'
|
resource: '../src/'
|
||||||
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
|
exclude:
|
||||||
|
- '../src/DependencyInjection/'
|
||||||
|
- '../src/Entity/'
|
||||||
|
- '../src/Kernel.php'
|
||||||
|
|
||||||
# controllers are imported separately to make sure services can be injected
|
# controllers are imported separately to make sure services can be injected
|
||||||
# as action arguments even if you don't extend any base controller class
|
# as action arguments even if you don't extend any base controller class
|
||||||
|
|
|
@ -3,39 +3,9 @@
|
||||||
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');
|
|
||||||
|
|
||||||
//Add parameters.yml
|
|
||||||
$container->import('../config/parameters.yaml');
|
|
||||||
|
|
||||||
if (is_file(\dirname(__DIR__).'/config/services.yaml')) {
|
|
||||||
$container->import('../config/services.yaml');
|
|
||||||
$container->import('../config/{services}_'.$this->environment.'.yaml');
|
|
||||||
} else {
|
|
||||||
$container->import('../config/{services}.php');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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');
|
|
||||||
} else {
|
|
||||||
$routes->import('../config/{routes}.php');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
22
symfony.lock
22
symfony.lock
|
@ -527,22 +527,22 @@
|
||||||
"version": "v4.2.3"
|
"version": "v4.2.3"
|
||||||
},
|
},
|
||||||
"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": "3cd216a4d007b78d8554d44a5b1c0a446dab24fb"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"./config/packages/cache.yaml",
|
"config/packages/cache.yaml",
|
||||||
"./config/packages/framework.yaml",
|
"config/packages/framework.yaml",
|
||||||
"./config/preload.php",
|
"config/preload.php",
|
||||||
"./config/routes/framework.yaml",
|
"config/routes/framework.yaml",
|
||||||
"./config/services.yaml",
|
"config/services.yaml",
|
||||||
"./public/index.php",
|
"public/index.php",
|
||||||
"./src/Controller/.gitignore",
|
"src/Controller/.gitignore",
|
||||||
"./src/Kernel.php"
|
"src/Kernel.php"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"symfony/http-client": {
|
"symfony/http-client": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue