Skip to content

Commit d3c3344

Browse files
committed
Update
1 parent e89a5a0 commit d3c3344

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bin/hyperf.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
// Self-called anonymous function that creates its own scope and keep the global namespace clean.
1515
(function () {
16+
Hyperf\Di\ClassLoader::init();
1617
/** @var \Psr\Container\ContainerInterface $container */
1718
$container = require BASE_PATH . '/config/container.php';
1819

installer/resources/bin/hyperf.stub

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ require BASE_PATH . '/vendor/autoload.php';
1414

1515
// Self-called anonymous function that creates its own scope and keep the global namespace clean.
1616
(function () {
17+
Hyperf\Di\ClassLoader::init();
1718
/** @var \Psr\Container\ContainerInterface $container */
1819
$container = require BASE_PATH . '/config/container.php';
1920

0 commit comments

Comments
 (0)