src/Primitive/Container/ContainerFactory.php
public function make($from, $type)
    {
        $type = $type ?: static::SIMPLE;

        switch ($type)
        {
            case static::SIMPLE:
                return new Container($from);
            case static::REVERTABLE:
                return new RevertableContainer($from);
            default:
                throw new InvalidArgumentException('Argument 2 is invalid');
        }
    }
public function make($from, $type)
    {
        $type = $type ?: static::SIMPLE;

        switch ($type)
        {
            case static::SIMPLE:
                return new Container($from);
            case static::REVERTABLE:
                return new RevertableContainer($from);
            default:
                throw new InvalidArgumentException('Argument 2 is invalid');
        }
    }
Return constructed instance of Container Type

@param mixed $from
@param int|null   $type
@return \im\Primitive\Container\Container|\im\Primitive\Container\RevertableContainer