Eloquent\Pathogen\FileSystem\Factory\AbstractFileSystemPathFactory::__construct PHP Method

__construct() public method

Construct a new file system path factory.
public __construct ( Eloquent\Pathogen\Factory\PathFactoryInterface $unixFactory = null, Eloquent\Pathogen\Factory\PathFactoryInterface $windowsFactory = null, Icecave\Isolator\Isolator $isolator = null )
$unixFactory Eloquent\Pathogen\Factory\PathFactoryInterface The path factory to use for Unix paths.
$windowsFactory Eloquent\Pathogen\Factory\PathFactoryInterface The path factory to use for Windows paths.
$isolator Icecave\Isolator\Isolator The isolator to use.
    public function __construct(PathFactoryInterface $unixFactory = null, PathFactoryInterface $windowsFactory = null, Isolator $isolator = null)
    {
        if (null === $unixFactory) {
            $unixFactory = UnixPathFactory::instance();
        }
        if (null === $windowsFactory) {
            $windowsFactory = WindowsPathFactory::instance();
        }
        $this->unixFactory = $unixFactory;
        $this->windowsFactory = $windowsFactory;
        $this->isolator = Isolator::get($isolator);
    }