This file contains hidden or 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
| <?php | |
| namespace Admin\Form; | |
| use Zend\Form\Element\Select; | |
| class Agency extends Form { | |
| public function __construct() | |
| { |
This file contains hidden or 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
| class ShowMessages extends AbstractHelper | |
| { | |
| /** | |
| * FlashMessenger | |
| * @var unknown_type | |
| */ | |
| protected $_fm = NULL; | |
| public function __construct(FlashMessenger $fm) | |
| { |
This file contains hidden or 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
| return array( | |
| 'factories' => array( | |
| 'translator' => 'Zend\I18n\Translator\TranslatorServiceFactory', | |
| 'default_cache' => function($sm) { | |
| $cache = \Zend\Cache\StorageFactory::factory(array( | |
| 'adapter' => array( | |
| 'name' => 'apc', | |
| 'options' => array( | |
| ), | |
| ), |
This file contains hidden or 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
| <?php | |
| namespace Admin; | |
| return array( | |
| 'invokables' => array( | |
| 'serviceFactory' => 'cwdAdmin\Service\ServiceFactory', | |
| ), | |
| 'factories' => array( | |
| 'translator' => 'Zend\I18n\Translator\TranslatorServiceFactory', |
This file contains hidden or 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
| return array( | |
| 'controllers' => array( | |
| 'initializers' => array( | |
| function ($instance, $serviceManager) { | |
| if ($instance instanceof EntityManagerAwareInterface) { | |
| if($serviceManager->has('doctrine.entitymanager.orm_default')) { | |
| $instance->setEntityManager($serviceManager->get('doctrine.entitymanager.orm_default')); | |
| } | |
| } | |
| [...] |
NewerOlder