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
<?php | |
return array( | |
'di' => array( | |
'instance' => array( | |
'Zend\EventManager\EventManager' => array( | |
'injections' => array( | |
'attach' => array( | |
array('event' => 'Test\Event\Collection'), | |
) |
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
<?php | |
return array( | |
'di' => array( | |
'instance' => array( | |
'Test\Event\Collection' => array( | |
'injections' => array( | |
'Test\Event\View', | |
'Test\Event\View', | |
), |
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
import android.os.Bundle; | |
import android.os.RemoteException; | |
/** | |
* The common interface for all connections. This interface only states that | |
* this object is a connection at all. | |
* | |
* @author Fritz Gerneth | |
* | |
*/ |
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
class InjectLocatorListener implements \Doctrine\Common\EventSubscriber, \Zend\Loader\LocatorAware | |
{ | |
protected $locator; | |
public function postLoad(\Doctrine\ORM\Event\LifecycleEventArgs $eventArgs) | |
{ | |
$entity = $eventArgs->getEntity(); | |
if($entity instanceof \Zend\Loader\LocatorAware) | |
{ | |
$entity->setLocator($this->getLocator()); |
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
<?php | |
namespace SpiffyDoctrine\Doctrine\Common; | |
use Doctrine\Common\EventManager as DoctrineEventManager, | |
SpiffyDoctrine\Doctrine\Instance; | |
class EventManager extends Instance implements \Zend\Loader\LocatorAware | |
{ | |
/** | |
* @var array | |
*/ |
NewerOlder