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 BLAHBLAH\GraphLoader; | |
use Doctrine\Common\Persistence\Mapping\ClassMetadata; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Doctrine\Instantiator\Instantiator; | |
use BLAHBLAH\Exception\UnexpectedValueException; | |
final class ArrayObjectGraphLoader implements ArrayObjectGraphLoaderInterface |
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
--TEST-- | |
Verifies that generated access interceptors disallow private property direct read | |
--FILE-- | |
Fatal error: Cannot access private property Kitchen::$sweets in /Users/ocramius/Documents/Projects/ProxyManager/tmp/ProxyManagerGeneratedProxy__PM__KitchenGenerated8d074ecba2008676c49d352470371679.php on line 127 | |
Call Stack: | |
0.0002 229992 1. {main}() /Users/ocramius/Documents/Projects/ProxyManager/tests/language-feature-scripts/access-interceptor-denies-private-property-read.phpt:0 | |
0.0251 2178640 2. ProxyManagerGeneratedProxy\__PM__\Kitchen\Generated8d074ecba2008676c49d352470371679->__get() /Users/ocramius/Documents/Projects/ProxyManager/tests/language-feature-scripts/access-interceptor-denies-private-property-read.phpt:17 | |
0.0252 2183680 3. ProxyManager\Stub\EmptyClassStub->ProxyManagerGeneratedProxy\__PM__\Kitchen\{closure}() /Users/ocramius/Documents/Projects/ProxyManager/tmp/ProxyManagerGeneratedProxy__PM__KitchenGenerated8d074ecba2008676c49d352470371679.php:132 |
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 | |
/* ORM CONFIG HERE, LIKE IN SAMPLE BOOTSTRAP */ | |
/** @var $em \Doctrine\ORM\EntityManager */ | |
$em = Doctrine\ORM\EntityManager::create($options, $config); | |
$greeting = new Greeting(); | |
$greeting->setGreeting('Hello World!'); | |
$em->persist($greeting); | |
$greeting2 = new Greeting(); | |
$greeting2->setGreeting('Hello again! This is another greeting!'); |
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 Application_Model_Resource_Doctrine extends Zend_Application_Resource_ResourceAbstract { | |
/** | |
* | |
* @var \Application_Model_Resource_Doctrine | |
*/ | |
protected static $instance = null; |
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 Gamempire\Validate\Entity\Field; | |
/** | |
* Validates input entity field to check if it is unique | |
* | |
* @author Ocramius | |
*/ | |
class Unique extends \Zend_Validate_Abstract { |
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 Deneb\Form; | |
/** | |
* Manages scalar fields of an entity | |
*/ | |
class Entity extends ListDecorated { | |
const DEFAULT_DISPLAY_GROUP = 'default'; |
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 models; | |
/** | |
* @Entity | |
* @Table(name="workers") | |
* @HasLifecycleCallback | |
*/ | |
class Workers { | |
/** |
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 My\Di\Cache; | |
use Zend\Di\Di as ZendDi; | |
class CompiledDi extends ZendDi { | |
public function get($name, $params = array()) { | |
if($params) { | |
return parent::get($name, $params); | |
} |
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 Deneb\Session; | |
/** | |
* Manages sessions storage through \Doctrine\ORM\EntityManager | |
* @author Ocramius | |
*/ | |
class SaveHandler implements \Zend_Session_SaveHandler_Interface { | |
const SESSION_ENTITY_NAME = 'Deneb\Entity\Session'; |
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 | |
/** | |
* Description | |
* | |
* @author Marco Pivetta <marco.pivetta@com2-gmbh.de> | |
*/ | |
class SessionAwarePaginator extends Zend_Paginator { | |
const DEFAULT_SESSION_NS = 'SessionAwarePaginator'; |