Пример #1
0
 public function testLoad()
 {
     $metadata = $this->object->load('AnnotationLoaderTest_TestEntity');
     $expected = \Nette\Utils\LimitedScope::load(self::getFixtuteDir() . '/TestEntityMetadata.php');
     $this->assertEquals($expected, $metadata);
 }
Пример #2
0
 /**
  * Loads a resource.
  *
  * @param mixed  $resource The resource
  * @param string $type     The resource type
  */
 public function load($resource, $type = null)
 {
     // load mete loader first to generate the admin cache
     return $this->container->get('sf.route.loader')->getRouteCollection();
 }