Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@baghayi
Last active December 29, 2015 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baghayi/7726217 to your computer and use it in GitHub Desktop.
Save baghayi/7726217 to your computer and use it in GitHub Desktop.
There is something wrong with this code when calling serviceLocator with no use there is decrease is ram but when commenting it out, usage of resources increases. I am checking resources usage by zenddeveloper tools. it is on line 6.
public function getViewHelperConfig()
{
return array(
'factories' => array(
'sidebarMenu' => function ($helpers){
// $helpers->getServiceLocator();
return new SidebarMenu();
},
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment