flagception-bundle
flagception-bundle copied to clipboard
tag the service so it can be used in the route condition, #99
/**
* @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.