This commit is contained in:
2024-07-07 12:39:20 +03:00
parent 67484d79f9
commit d8b103fe33
29 changed files with 156 additions and 128 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
<?php
namespace Bx\Null\Providers;
namespace Bx\Nullable\Providers;
use Bx\Null\AbstractFactory\MainAbstractFactory;
use Bx\Nullable\AbstractFactory\MainAbstractFactory;
use Wt\Core\Interfaces\IApp;
use Wt\Core\Interfaces\IServiceProvider;
@@ -16,7 +16,7 @@ class DefaultFactoryProvider implements IServiceProvider
$serviceContainer = $app->container();
/**
* @var $mainAbstractFactory MainAbstractFactory
* @var MainAbstractFactory $mainAbstractFactory
*/
$mainAbstractFactory = $serviceContainer->make(MainAbstractFactory::class, [$config->get('MainAbstractFactory', [])]);
$serviceContainer->singleton($app->module()->getId().':mainAbstractFactory', $mainAbstractFactory);