Skip to content

Instantly share code, notes, and snippets.

@dmitrybelyakov
Created February 20, 2014 07:34
Show Gist options
  • Save dmitrybelyakov/9108631 to your computer and use it in GitHub Desktop.
Save dmitrybelyakov/9108631 to your computer and use it in GitHub Desktop.

Revisions

  1. dmitrybelyakov created this gist Feb 20, 2014.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    'view_helpers' => array(
    'invokables' => array(
    'currentlocale' => 'ShiftKernel\Locale\ViewHelper\Locale',
    ),
    'factories' => array(
    'currentlocale' => function($sm) {
    return new \ShiftKernel\Locale\ViewHelper\Locale(
    $sm->get('ShiftKernel\Locale\LocaleService')
    );
    },
    ),