fix deprecated

This commit is contained in:
Simon Vieille 2022-01-24 22:33:07 +01:00
parent 0984edf462
commit a038ee50f4
3 changed files with 8 additions and 6 deletions

View file

@ -34,10 +34,10 @@ security:
logout: logout:
path: auth_logout path: auth_logout
target: / target: /
remember_me: # remember_me:
secret: '%kernel.secret%' # secret: '%kernel.secret%'
lifetime: 604800 # lifetime: 604800
path: / # path: /
# Easy way to control access for large sections of your site # Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used # Note: Only the *first* access control that matches will be used

View file

@ -13,10 +13,11 @@ namespace App\Core\Bundle;
use App\Core\DependencyInjection\CoreExtension; use App\Core\DependencyInjection\CoreExtension;
use Symfony\Component\HttpKernel\Bundle\Bundle; use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
class CoreBundle extends Bundle class CoreBundle extends Bundle
{ {
public function getContainerExtension() public function getContainerExtension(): ?ExtensionInterface
{ {
return new CoreExtension(); return new CoreExtension();
} }

View file

@ -13,10 +13,11 @@ namespace App\Bundle;
use App\DependencyInjection\AppExtension; use App\DependencyInjection\AppExtension;
use Symfony\Component\HttpKernel\Bundle\Bundle; use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
class AppBundle extends Bundle class AppBundle extends Bundle
{ {
public function getContainerExtension() public function getContainerExtension(): ?ExtensionInterface
{ {
return new AppExtension(); return new AppExtension();
} }