Skip to content




@symfony @Elao @manala @rix-fr @StenopePHP
Block or Report

Block or report ogizanagi

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
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'];


  1. The Symfony PHP framework

    PHP 27.7k 8.9k

  2. 🔩 Extended PHP 8.1+ enums features & specific integrations with frameworks and libraries

    PHP 299 23

  3. The static website generator for Symfony developers

    PHP 88 3

  4. Starter kit for content-based static site using Stenope

    PHP 2

  5. shiningame Public

    Shiny little extracts from enjoyable games 🎮 🌅

    PHP 5

3,678 contributions in the last year

Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Mon Wed Fri
Activity overview
Contributed to Elao/elao_, manala/manala-recipes, rix-fr/rix and 38 other repositories

Contribution activity

November 2022

Created a pull request in Elao/PhpEnums that received 2 comments

[Readable] Allow to configure a common suffix/prefix & use the enum case value/name as default label

Eases the declaration of readable enum translations keys with common suffix/prefix: #[ReadableEnum(prefix: 'suit.')] enum Suit: string implements R…

+252 −22 2 comments
Opened 2 issues in 1 repository
Answered 1 discussion in 1 repository
165 contributions in private repositories Nov 2 – Nov 30

Seeing something unexpected? Take a look at the GitHub profile guide.