Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Enable service for symfony routing condition option #99

@tacman

Description

@tacman

The latest version of Symfony allows the routing condition to access a service, so developers can write:

    #[Route('/demo', name: 'app_demo', condition: "service('flagception.manager.feature_manager').isActive('beta')")]
    public function demo(): Response
    {
        return $this->render('app/index.html.twig', [
            'controller_name' => 'Demo',
        ]);
    }

I'll submit a PR to tag the service so it can be used this way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions