How do I check if the action I am calling was secured in security.yml?
security.yml
myAction:
is_secure: false
filter.yml
myFilter:
class: myFilter
Now inside myFilter i want to check if the action was secured or not.
class myFilter extends sfFilter
{
public function execute($filterChain)
{
if ($this->getContext()->is_secure === false) {
$filterChain->execute();
}
// ...
}
}