Skip to content

Instantly share code, notes, and snippets.

@IgorShadurin
Created April 1, 2013 08:33
Show Gist options
  • Save IgorShadurin/5283832 to your computer and use it in GitHub Desktop.
Save IgorShadurin/5283832 to your computer and use it in GitHub Desktop.
Some name
public function getViewHelperConfig()
{
return array(
'invokables' => array(
'flashMessenger' => 'TulaBase\View\Helper\FlashMessenger',
'custom' => 'TulaInventory\Form\Element\CustomElement',
),
'factories' => array(
'absoluteUrl' => function ($sm) {
return new \TulaBase\View\Helper\AbsoluteUrl($sm->getServiceLocator()->get('Request'));
},
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment