[Flow] [FLOW] RFC - Use functions on Policy

Jan Herzog Jan-christoph-herzog at gmx.net
Thu Feb 6 11:35:23 CET 2014


Hello,

i dont know if this is the right place. I want to request an feature:
I would love to be able to use functions in Policy. This would make policy much more flexible and dynamic.

An example:
class test
{
    $var = array("stuff","otherStuff");
    private $account=\TYPO3\Flow\Securty\Account;

    public function gotAccount($account)
    {
        return $this->account==$account;
    }
}

policy: 
ressource:
  entities:
    'your\package\test':
      you_package_example: 'inArray("stuff",this.var) || this.gotAccount(current.securityContext.account)'


More information about the Flow mailing list