Skip to content

Commit 815f564

Browse files
committed
Add excended
1 parent fbcd9c7 commit 815f564

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/HttpCorePlugin.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use Micro\Framework\Kernel\Plugin\ConfigurableInterface;
2121
use Micro\Framework\Kernel\Plugin\DependencyProviderInterface;
2222
use Micro\Framework\Kernel\Plugin\PluginConfigurationTrait;
23+
use Micro\Framework\Kernel\Plugin\PluginDependedInterface;
2324
use Micro\Plugin\Http\Business\Executor\RouteExecutorFactory;
2425
use Micro\Plugin\Http\Business\Executor\RouteExecutorFactoryInterface;
2526
use Micro\Plugin\Http\Business\Generator\UrlGeneratorFactory;
@@ -39,13 +40,14 @@
3940
use Micro\Plugin\Http\Configuration\HttpCorePluginConfigurationInterface;
4041
use Micro\Plugin\Http\Facade\HttpFacade;
4142
use Micro\Plugin\Http\Facade\HttpFacadeInterface;
43+
use Micro\Plugin\Locator\LocatorPlugin;
4244

4345
/**
4446
* @author Stanislau Komar <[email protected]>
4547
*
4648
* @method HttpCorePluginConfigurationInterface configuration()
4749
*/
48-
class HttpCorePlugin implements DependencyProviderInterface, ConfigurableInterface
50+
class HttpCorePlugin implements DependencyProviderInterface, ConfigurableInterface, PluginDependedInterface
4951
{
5052
use PluginConfigurationTrait;
5153

@@ -152,4 +154,11 @@ protected function createRouteExecutorFactory(
152154
$this->createResponseCallbackFactory(),
153155
);
154156
}
157+
158+
public function getDependedPlugins(): iterable
159+
{
160+
return [
161+
LocatorPlugin::class,
162+
];
163+
}
155164
}

0 commit comments

Comments
 (0)