class Kernel extends SymfonyKernel implements EventSubscriberInterface
{
use MicroKernelTrait;
public function bowtiesAction(): Response
{
return new RedirectResponse('I wear a fez now. Fezzes are cool!');
}
public function dangerousAction(): Response
{
throw new Danger('🔥🔥 😈🐷 🔱🔺 🔥🔥');
}
public function onKernelException(ExceptionEvent $event): void
{
if ($event->getThrowable() instanceof Danger) {
$event->setResponse(new Response("👴🏻: It's dangerous to go alone. Take this: 🗡️"));
}
}
protected function configureRoutes(RoutingConfigurator $routes): void
{
$routes->add('bowties', '/bowties')->controller('kernel::bowtiesAction');
$routes->add('danger', '/danger')->controller('kernel::dangerousAction');
}
public static function getSubscribedEvents(): array
{
return [KernelEvents::EXCEPTION => 'onKernelException'];
}
}
- Lyon | France
-
13:40
(UTC +01:00) - http://shiningame.ogizanagi.fr
- @ogizanagi
Block or Report
Block or report ogizanagi
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
-
Elao/PhpEnums
Elao/PhpEnums Public🔩 Extended PHP 8.1+ enums features & specific integrations with frameworks and libraries
-
StenopePHP/Stenope
StenopePHP/Stenope PublicThe static website generator for Symfony developers
-
StenopePHP/skeleton
StenopePHP/skeleton PublicStarter kit for content-based static site using Stenope
-
2,562 contributions in the last year
Day of Week | December Dec | January Jan | February Feb | March Mar | April Apr | May May | June Jun | July Jul | August Aug | September Sep | October Oct | November Nov | December Dec | ||||||||||||||||||||||||||||||||||||||||
Sunday Sun | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Monday Mon | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Tuesday Tue | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Wednesday Wed | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Thursday Thu | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Friday Fri | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Saturday Sat |
Less
No contributions.
Low contributions.
Medium-low contributions.
Medium-high contributions.
High contributions.
More
Activity overview
Contribution activity
December 2023
Created 15 commits in 3 repositories
Opened 3 pull requests in 2 repositories
manala/manala-recipes
2
merged
-
[Elao - App -Docker] Fixup deployment URL for apps in subdir
This contribution was made on Dec 6
-
[Elao - App -Docker] Allow directory slash in app name
This contribution was made on Dec 6
Elao/elao_
1
merged
-
[Job] Disable job offer
This contribution was made on Dec 4
147
contributions
in private repositories
Dec 1 – Dec 8