Skip to content

Commit 473164f

Browse files
committed
Update namespaces in demo package
1 parent 06d028d commit 473164f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

demo/index.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace mindplay\demo;
2+
namespace ElementaryFramework\Annotations\Demo;
33

44
use Composer\Autoload\ClassLoader;
55
use ElementaryFramework\Annotations\AnnotationCache;
@@ -17,15 +17,15 @@
1717
require_once($vendor_path . '/autoload.php');
1818

1919
$auto_loader = new ClassLoader();
20-
$auto_loader->addPsr4("mindplay\\demo\\", __DIR__);
20+
$auto_loader->addPsr4("ElementaryFramework\\Annotations\\Demo\\", __DIR__);
2121
$auto_loader->register();
2222

2323
## Configure the cache-path. The static `Annotations` class will configure any public
2424
## properties of `AnnotationManager` when it creates it. The `AnnotationManager::$cachePath`
2525
## property is a path to a writable folder, where the `AnnotationManager` caches parsed
2626
## Annotations from individual source code files.
2727

28-
Annotations::$config['cache'] = new AnnotationCache(__DIR__ . '/runtime');
28+
Annotations::setConfig('cache', new AnnotationCache(__DIR__ . '/runtime'));
2929

3030
## Register demo Annotations.
3131
Package::register(Annotations::getManager());
@@ -43,7 +43,7 @@
4343

4444
/**
4545
* Class Person
46-
* @package mindplay\demo
46+
* @package ElementaryFramework\Annotations\Demo
4747
*
4848
* @method string test(integer $a, string $b, bool $c) The test method
4949
* @method bool check() The check method
@@ -257,7 +257,7 @@ public function __construct($object)
257257
foreach ($class->getProperties() as $property) {
258258
$type = $this->getMetadata($property->name, '@var', 'type', 'string');
259259

260-
$wtype = 'mindplay\\demo\\' . ucfirst($type) . 'Widget';
260+
$wtype = 'ElementaryFramework\\Annotations\\Demo\\' . ucfirst($type) . 'Widget';
261261

262262
$this->widgets[$property->name] = new $wtype($this->object, $property->name);
263263
}

0 commit comments

Comments
 (0)