Category : profiler

When I started developing with Symfony on Windows it worked pretty well at first, but lately the profiler is taking way too long to load the toolbar. The profiler is taking 18.48 seconds to load (day:116). I didn’t find anything helpful online, does anyone know what might be causing this? Source: Symfony..

Read more

I want to login through an API, based on my entity AppEntityUser. Here is the security.yaml file: security: encoders: AppEntityUser: algorithm: bcrypt providers: app_user_provider: entity: class: AppEntityUser property: username firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: pattern: ^/ anonymous: ~ provider: app_user_provider json_login: login_path: app_login check_path: app_login username_path: username password_path: password access_control: – { path: ..

Read more

I’m creating configured maintenance page. I created Subscriber public function onKernelRequest(RequestEvent $event) { $maintenance = $this->container->hasParameter(‘maintenance’) ? $this->container->getParameter(‘maintenance’) : false; $underMaintenanceUntil = $this->container->hasParameter(‘underMaintenanceUntil’) ? $this->container->getParameter(‘underMaintenanceUntil’) : false; if (!$event->isMasterRequest()){ return; } $debug = in_array($this->container->get(‘kernel’)->getEnvironment(), [‘test’,’dev’]); $uri = $event->getRequest()->getRequestUri(); if ($uri == ‘/login’ || $uri == ‘/logout’) { return; } if ($maintenance && !$debug && !$this->container->get(‘security.authorization_checker’)->isGranted(‘ROLE_ADMIN’)) ..

Read more