Last active
December 29, 2015 20:49
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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