File tree Expand file tree Collapse file tree 5 files changed +9
-6
lines changed
Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ services:
3838 # Specify primary UserProviderInterface
3939 Symfony\Component\Security\Core\User\UserProviderInterface : ' @security.user.provider.concrete.app_user_provider'
4040
41- Symfony\Component\HttpKernel\Profiler\Profiler : ' @profiler'
42-
4341 # Make classes in src/ available to be used as services
4442 # this creates a service per class whose id is the fully-qualified class name
4543 App\ :
Original file line number Diff line number Diff line change 1+ services :
2+ Symfony\Component\HttpKernel\Profiler\Profiler : ' @profiler'
Original file line number Diff line number Diff line change 1111class ClientController extends AbstractController
1212{
1313 public function __construct (
14+ private readonly ?Profiler $ profiler = null ,
1415 private readonly int $ loginCheckTimeout ,
1516 private readonly int $ refreshTokenTimeout ,
1617 private readonly int $ releaseTimestampIntervalTimeout ,
@@ -21,9 +22,10 @@ public function __construct(
2122 private readonly array $ logging ,
2223 ) {}
2324
24- public function __invoke (Profiler $ profiler ): Response
25+ public function __invoke (): Response
2526 {
26- $ profiler ->disable ();
27+ $ this ->profiler ?->disable();
28+
2729 return $ this ->render ('client.html.twig ' , [
2830 'config ' => json_encode ([
2931 "loginCheckTimeout " => $ this ->loginCheckTimeout ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class TemplateController extends AbstractController
1313 public function __construct (
1414 ) {}
1515
16- public function __invoke (Profiler $ profiler ): Response
16+ public function __invoke (? Profiler $ profiler ): Response
1717 {
1818 $ profiler ->disable ();
1919 return $ this ->render ('template.html.twig ' );
Original file line number Diff line number Diff line change 1313use Psr \Log \LoggerInterface ;
1414use Symfony \Bundle \FrameworkBundle \Console \Application ;
1515use Symfony \Component \DependencyInjection \Attribute \AsDecorator ;
16+ use Symfony \Component \DependencyInjection \ContainerInterface ;
1617
1718/**
1819 * Decorator class for DoctrineOrmLoader.
2324 * @implements AliceBundleLoaderInterface
2425 * @implements LoggerAwareInterface
2526 */
26- #[AsDecorator(decorates: 'hautelook_alice.loader ' )]
27+ #[AsDecorator(decorates: 'hautelook_alice.loader ' , onInvalid: ContainerInterface:: IGNORE_ON_INVALID_REFERENCE )]
2728class DoctrineOrmLoaderDecorator implements AliceBundleLoaderInterface, LoggerAwareInterface
2829{
2930 public function __construct (
You can’t perform that action at this time.
0 commit comments