flagception-bundle icon indicating copy to clipboard operation
flagception-bundle copied to clipboard

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

Open tacman opened this issue 2 years ago • 0 comments

    /**
     * @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.

tacman avatar Jun 09 '22 14:06 tacman