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.

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.5k 8.2k

  2. 🔩 Provides enumerations for PHP & frameworks integrations

    PHP 213 15

  3. Shiny little extracts from enjoyable games 🎮 🌅

    PHP 3

  4. Static website building tool for Symfony.

    PHP 30

3,639 contributions in the last year

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

Contribution activity

June 2021

Created 73 commits in 2 repositories

Created a pull request in Elao/elao_ that received 3 comments

[Blog] Rework last modified on articles

Suite à StenopePHP/Stenope#101, on a maintenant une date de dernière modification cohérente disponible par défaut, se basant sur la date de dernier…

+6 −4 3 comments

Created an issue in composer/composer that received 4 comments

Autoload PHP version check does not account for config.platform.php

In our project, the release is made by the CI with PHP 7.4. The dependencies are installed before being pushed to the production/staging server wh…

4 comments
67 contributions in private repositories Jun 2 – Jun 18

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