for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/nnx-framework/doctrine-fixture-module
* @author Malofeykin Andrey <[email protected]>
*/
namespace Nnx\JmsSerializerModule\DoctrineObjectEngine;
use Interop\Container\ContainerInterface;
use ReflectionClass;
* Class EntityLocator
*
* @package Nnx\JmsSerializerModule\DoctrineObjectEngine
class EntityLocator implements ContainerInterface
{
* @inheritDoc
public function get($id)
$r = new ReflectionClass($id);
return $r->newInstance();
}
public function has($id)
return class_exists($id);