Skip to content
Avatar

Sponsors

@pyrech

Organizations

@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
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 27.1k 8.7k

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

    PHP 281 23

  3. shiningame Public

    Shiny little extracts from enjoyable games 🎮 🌅

    PHP 4

  4. Static website building tool for Symfony.

    PHP 46 3

2,354 contributions in the last year

Jul Aug Sep Oct Nov Dec Jan Feb Mar Apr May Jun Mon Wed Fri
Activity overview
Contributed to Elao/elao_, Elao/PhpEnums, StenopePHP/Stenope and 30 other repositories

Contribution activity

July 2022

Created 1 commit in 1 repository

Created a pull request in symfony/symfony that received 1 comment

[Serializer] Cannot use Context attribute context in AdvancedNameConverterInterface::denormalize

I realized we can't use the Context attribute context in an AdvancedNameConverterInterface::denormalize, same as spotted already in 5.4 in #46525. A…

+7 −2 1 comment
Reviewed 6 pull requests in 3 repositories
35 contributions in private repositories Jul 1 – Jul 7

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