Skip to content
Avatar

Sponsors

@pyrech

Achievements

Achievements

Organizations

@symfony @Elao @manala @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
ogizanagi/README.md
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'];
    }
}

Pinned

  1. The Symfony PHP framework

    PHP 25.8k 8.3k

  2. 🔩 Provides enumerations for PHP & frameworks integrations

    PHP 227 19

  3. Shiny little extracts from enjoyable games 🎮 🌅

    PHP 3

  4. Static website building tool for Symfony.

    PHP 34 1

3,345 contributions in the last year

Sep Oct Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sep Mon Wed Fri

Contribution activity

September 2021

Created 5 commits in 2 repositories
Reviewed 10 pull requests in 5 repositories
Elao/elao_ 5 pull requests
symfony/symfony-docs 2 pull requests
Elao/ElaoFormTranslationBundle 1 pull request
manala/manala-recipes 1 pull request
Elao/accesseo 1 pull request
Opened 1 issue in 1 repository
21 contributions in private repositories Sep 1 – Sep 9

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