Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
lidanyang committed May 28, 2019
1 parent cb11ba0 commit a356720
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"require": {
"esd/esd-core":"~0.1",
"esd/aop-plugin":"~0.1"
"esd/aop-plugin":"dev-master"
},

"require-dev": {
Expand Down
5 changes: 2 additions & 3 deletions src/AnnotationsScan/AnnotationsScanPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public function __construct(?AnnotationsScanConfig $annotationsScanConfig = null
* @throws DependencyException
* @throws Exception
* @throws ReflectionException
* @throws \DI\NotFoundException
*/
public function onAdded(PluginInterfaceManager $pluginInterfaceManager)
{
Expand Down Expand Up @@ -123,14 +122,14 @@ private function scanPhp($dir, &$files = null)
* @throws DependencyException
* @throws Exception
* @throws ReflectionException
* @throws \DI\NotFoundException
* @throws \Exception
*/
public function beforeServerStart(Context $context)
{
//默认添加src目录
$this->annotationsScanConfig->addIncludePath(Server::$instance->getServerConfig()->getSrcDir());
$this->annotationsScanConfig->merge();
$this->cacheReader = DIget(CachedReader::class);
$this->cacheReader = DIGet(CachedReader::class);
$this->scanClass = new ScanClass($this->cacheReader);
$this->setToDIContainer(ScanClass::class, $this->scanClass);
$paths = array_unique($this->annotationsScanConfig->getIncludePaths());
Expand Down

0 comments on commit a356720

Please sign in to comment.