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( | |
| 'invokables' => array( | |
| 'db-class-one' => 'Application\Model\DbOne', | |
| 'db-class-two' => 'Application\Model\DbTwo' | |
| ), | |
| 'factories' => array( | |
| 'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory' | |
| ), | |
| 'initializers' => array( function($instance, $sm) { | |
| if ($instance instanceof \Application\Model\DBInterface) { |
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 Haushaltportal\Stdlib\Hydrator\Strategy; | |
| use Zend\Stdlib\Hydrator\Strategy\StrategyInterface; | |
| class ProduktbereichStrategy implements StrategyInterface | |
| { | |
| /** | |
| * {@inheritDoc} | |
| */ |
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
| public function editAction() | |
| { | |
| $vm = new ViewModel(); | |
| $vm->setTemplate('haushaltportal/ergebnishaushalt/edit.phtml'); | |
| /** | |
| * Service-Manager ansprechen um Objekte zu erhalten | |
| * | |
| * @var $form \Haushaltportal\Form\ErgebnishaushaltProduktForm |
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 | |
| class Foo | |
| { | |
| protected $labelCallable; | |
| public function setLabelCallable($labelCallable) | |
| { | |
| $this->labelCallable = $labelCallable; | |
| } |
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
| $this->add(array( | |
| 'name' => 'someName', | |
| 'type' => 'MyNamespace\Form\Element\EntitySelect', | |
| 'attributes' => array( | |
| 'required' => true | |
| ), | |
| 'options' => array( | |
| 'label' => 'Select element Label', | |
| 'empty_option' => '--- Choose Entity ---', | |
| 'object_manager' => $this->getEntityManager(), |
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 Haushaltportal\Form\Element; | |
| use DoctrineModule\Form\Element\Proxy as BaseProxy; | |
| class Proxy extends BaseProxy | |
| { | |
| /** | |
| * @var string | |
| */ |
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 Kennzahlen\Service; | |
| class Steuerwert extends DoctrineEntityService | |
| { | |
| /** | |
| * @return \Doctrine\ORM\EntityRepository | |
| */ | |
| public function getEntityRepository() | |
| { |
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 MyNamespace\Service; | |
| use Zend\EventManager\EventManagerAwareInterface; | |
| use Zend\EventManager\EventManagerInterface; | |
| use Zend\ServiceManager\ServiceManagerAwareInterface; | |
| use Zend\ServiceManager\ServiceManager; | |
| use Doctrine\ORM\EntityManager; | |
| use Doctrine\ORM\EntityRepository; |
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 My\Form\Element; | |
| use Zend\Form\Element\Select as SelectElement; | |
| class DepartmentSelect extends SelectElement | |
| { | |
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 Zebreco\Form; | |
| use Zend\ServiceManager\FactoryInterface; | |
| use Zend\ServiceManager\ServiceLocatorInterface; | |
| use Zebreco\Entity\Ticket; | |
| use DoctrineORMModule\Stdlib\Hydrator\DoctrineEntity as ClassMethods; | |
| class TicketCreateFactory implements FactoryInterface |