* working version

This commit is contained in:
David Danyi
2020-10-15 13:02:54 +02:00
parent 2cf81c493e
commit 11a8f4dc2b
39 changed files with 1904 additions and 86 deletions

View File

@@ -4,12 +4,17 @@ declare(strict_types=1);
namespace App\Service;
use Doctrine\Common\Collections\ArrayCollection;
use Interop\Container\ContainerInterface;
class BuilderFactory
{
public function __invoke(ContainerInterface $container): Builder
{
return new Builder();
/** @var ConfigProvider $configProvider */
$configProvider = $container->get(ConfigProvider::class);
/** @var ArrayCollection $sharedStorage */
$sharedStorage = $container->get(ArrayCollection::class);
return new Builder($configProvider, $sharedStorage);
}
}