Skip to content

Instantly share code, notes, and snippets.

@dmitrybelyakov
Created February 20, 2014 07:34
Show Gist options
  • Select an option

  • Save dmitrybelyakov/9108635 to your computer and use it in GitHub Desktop.

Select an option

Save dmitrybelyakov/9108635 to your computer and use it in GitHub Desktop.

Revisions

  1. dmitrybelyakov created this gist Feb 20, 2014.
    14 changes: 14 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    //action helpers (controller plugins)
    'controller_plugins' => array(
    'invokables' => array(
    'isAllowed' => 'ShiftUser\Access\ActionHelper\IsAllowed'
    ),
    'factories' => array(

    'ShiftUser\Access\ActionHelper\IsAllowed' => function($sm){
    $class = new \ShiftUser\Access\ActionHelper\IsAllowed($sm);
    $class->createByFactory();
    return $class;
    },
    )
    )