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:
path: auth_logout
target: /
remember_me:
secret: '%kernel.secret%'
lifetime: 604800
path: /
# remember_me:
# secret: '%kernel.secret%'
# lifetime: 604800
# path: /
# Easy way to control access for large sections of your site
# 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 Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
class CoreBundle extends Bundle
{
public function getContainerExtension()
public function getContainerExtension(): ?ExtensionInterface
{
return new CoreExtension();
}

View File

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