bestit / flagception-bundle

Feature flags on steroids!
MIT License
210 stars 42 forks source link

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

Open tacman opened 2 years ago

tacman commented 2 years ago
    /**
     * @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.