Skip to content

Commit

Permalink
Move an autoload to runtime dir
Browse files Browse the repository at this point in the history
  • Loading branch information
vuongxuongminh committed May 7, 2019
1 parent 4ec6172 commit 5c965c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Async.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Async extends Component
public function __construct($config = [])
{
$pool = $this->pool = Yii::createObject(Pool::class);
$pool->autoload(__DIR__ . '/RuntimeAutoload.php');
$pool->autoload(__DIR__ . '/runtime/AutoloadRuntime.php');

parent::__construct($config);
}
Expand Down
12 changes: 6 additions & 6 deletions src/RuntimeAutoload.php → src/runtime/AutoloadRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
{
const AUTOLOAD_PATHS = [
[
__DIR__ . '/../../../../autoload.php',
__DIR__ . '/../../../autoload.php',
__DIR__ . '/../../autoload.php',
__DIR__ . '/../vendor/autoload.php',
__DIR__ . '/../../vendor/autoload.php'
__DIR__ . '/../../vendor/autoload.php',
__DIR__ . '/../../../vendor/autoload.php'
],
[
__DIR__ . '/../../../../yiisoft/yii2/Yii.php',
__DIR__ . '/../../../yiisoft/yii2/Yii.php',
__DIR__ . '/../../yiisoft/yii2/Yii.php',
__DIR__ . '/../vendor/yiisoft/yii2/Yii.php',
__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php'
__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php',
__DIR__ . '/../../../vendor/yiisoft/yii2/Yii.php'
]
];

Expand Down

0 comments on commit 5c965c1

Please sign in to comment.