public function getTemplateAuthItems()
    {
        $rule = new \nineinchnick\nfy\components\SubscribedRule;
        return [
            ['name' => 'nfy.queue.read',              'bizRule' => null, 'child' => null],
            ['name' => 'nfy.queue.read.subscribed',   'bizRule' => $rule->name, 'child' => 'nfy.queue.read'],
            ['name' => 'nfy.queue.subscribe',         'bizRule' => null, 'child' => null],
            ['name' => 'nfy.queue.unsubscribe',       'bizRule' => null, 'child' => null],
            ['name' => 'nfy.message.read',              'bizRule' => null, 'child' => null],
            ['name' => 'nfy.message.create',            'bizRule' => null, 'child' => null],
            ['name' => 'nfy.message.read.subscribed',   'bizRule' => $rule->name, 'child' => 'nfy.message.read'],
            ['name' => 'nfy.message.create.subscribed', 'bizRule' => $rule->name, 'child' => 'nfy.message.create'],
        ];
    }
public function getTemplateAuthItems()
    {
        $rule = new \nineinchnick\nfy\components\SubscribedRule;
        return [
            ['name' => 'nfy.queue.read',              'bizRule' => null, 'child' => null],
            ['name' => 'nfy.queue.read.subscribed',   'bizRule' => $rule->name, 'child' => 'nfy.queue.read'],
            ['name' => 'nfy.queue.subscribe',         'bizRule' => null, 'child' => null],
            ['name' => 'nfy.queue.unsubscribe',       'bizRule' => null, 'child' => null],
            ['name' => 'nfy.message.read',              'bizRule' => null, 'child' => null],
            ['name' => 'nfy.message.create',            'bizRule' => null, 'child' => null],
            ['name' => 'nfy.message.read.subscribed',   'bizRule' => $rule->name, 'child' => 'nfy.message.read'],
            ['name' => 'nfy.message.create.subscribed', 'bizRule' => $rule->name, 'child' => 'nfy.message.create'],
        ];
    }
public function getTemplateAuthItems ( ) { $ rule = new \ nineinchnick \ nfy \ components \ SubscribedRule ; return [ [ 'name' => 'nfy.queue.read' , 'bizRule' => null , 'child' => null ] , [ 'name' => 'nfy.queue.read.subscribed' , 'bizRule' => $ rule -> name , 'child' => 'nfy.queue.read' ] , [ 'name' => 'nfy.queue.subscribe' , 'bizRule' => null , 'child' => null ] , [ 'name' => 'nfy.queue.unsubscribe' , 'bizRule' => null , 'child' => null ] , [ 'name' => 'nfy.message.read' , 'bizRule' => null , 'child' => null ] , [ 'name' => 'nfy.message.create' , 'bizRule' => null , 'child' => null ] , [ 'name' => 'nfy.message.read.subscribed' , 'bizRule' => $ rule -> name , 'child' => 'nfy.message.read' ] , [ 'name' => 'nfy.message.create.subscribed' , 'bizRule' => $ rule -> name , 'child' => 'nfy.message.create' ] , ] ; }
nfy.queue.read
|
\-nfy.queue.read.subscribed
nfy.queue.subscribe
nfy.queue.unsubscribe

nfy.message.read
|
\-nfy.message.read.subscribed

nfy.message.create
|
\-nfy.message.create.subscribed
nfy . queue . read | \ - nfy . queue . read . subscribed nfy . queue . subscribe nfy . queue . unsubscribe