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

tag the service so it can be used in the route condition, #99 #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tacman
Copy link

@tacman tacman commented Jun 9, 2022

    /**
     * @Route("/blog/{page}", condition="service('flagception.manager.feature_manager').isActive('feature_123')")
     */
    public function listAction($page)
    {
        // ...
    }

For Symfony 6.1 users, this feels a bit cleaner than setting a value in the routing "defaults" _feature key.

@mKnoop mKnoop self-assigned this Aug 10, 2022
@mKnoop mKnoop added the review Issues that are currently checked label Aug 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
review Issues that are currently checked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants