tflori/dependency-injector

View on GitHub
src/Factory/AbstractFactory.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace DependencyInjector\Factory;

use DependencyInjector\Factory\Concern\IsSharable;
use DependencyInjector\SharableFactoryInterface;
use Psr\Container\ContainerInterface;

abstract class AbstractFactory implements SharableFactoryInterface
{
    use IsSharable;

    /** @var ContainerInterface */
    protected $container;

    public function __construct(ContainerInterface $container)
    {
        $this->container = $container;
    }
}