Efficiently\AuthorityController\Authority::validateTarget PHP Method

validateTarget() protected method

User shouldn't specify targets with names of real actions or it will cause Seg fault
protected validateTarget ( $target )
    protected function validateTarget($target)
    {
        if (in_array($target, array_flatten(array_values($this->getAliasedActions())))) {
            throw new \Exception("You can't specify target ({$target}) as alias because it is real action name", 1);
        }
    }