Generator/Action.php
public function setCondition(array $condition)
    {
        if (!isset($condition['function'])) {
            return false;
        }

        $this->conditional_function = $condition['function'];

        if (isset($condition['parameters'])) {
            $this->conditional_parameters = (array) $condition['parameters'];
        }

        if (isset($condition['inverse'])) {
            $this->conditional_inverse = (boolean) $condition['inverse'];
        }
    }
public function setCondition(array $condition)
    {
        if (!isset($condition['function'])) {
            return false;
        }

        $this->conditional_function = $condition['function'];

        if (isset($condition['parameters'])) {
            $this->conditional_parameters = (array) $condition['parameters'];
        }

        if (isset($condition['inverse'])) {
            $this->conditional_inverse = (boolean) $condition['inverse'];
        }
    }
public function setCondition ( array $ condition ) { if ( ! isset ( $ condition [ 'function' ] ) ) { return false ; } $ this -> conditional_function = $ condition [ 'function' ] ; if ( isset ( $ condition [ 'parameters' ] ) ) { $ this -> conditional_parameters = ( array ) $ condition [ 'parameters' ] ; } if ( isset ( $ condition [ 'inverse' ] ) ) { $ this -> conditional_inverse = ( boolean ) $ condition [ 'inverse' ] ; } }
To be removed

@deprecated use credentials instead and SecurityFunction annotation
from JMS\DiExtraBundle
To be removed