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 | |
*/ |
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
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
<?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
<?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
class Module | |
{ | |
public function init(Manager $moduleManager) | |
{ | |
$events = $moduleManager->events(); | |
$sharedEvents = $events->getSharedCollections(); | |
$sharedEvents->attach('Zend\Mvc\Bootstrap', 'bootstrap', array($this, 'test'), 900); | |
} | |
public function test($e) |
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 | |
class MyController extends Zend_Controller_Action | |
{ | |
private $_modelA; | |
private $_modelB; | |
public function doSomethingAction() | |
{ | |
$this->_modelA->create(); | |
} |
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 Test; | |
use \Zend\EventManager\EventCollection, | |
\Zend\EventManager\EventManagerAware, | |
\Zend\Di\Locator, | |
\Zend\EventManager\SharedEventCollectionAware, | |
\Zend\EventManager\SharedEventCollection; |
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
return array( | |
'di' => array( | |
'instance' => array( | |
'alias' => array( | |
'feedaggregator' => 'Fge\Aggregator' | |
), | |
'Fge\Aggregator' => array( | |
'parameters' => array( | |
'feeds' => array( | |
'sdd', |
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 F | |
{ | |
public $a = false; | |
public $b = false; | |
public function __construct($a) | |
{ | |
$this->a = true; | |
} | |
OlderNewer