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

factoryByPlatform() protected method

Return the most appropriate path factory depending on the current platform.
protected factoryByPlatform ( ) : Eloquent\Pathogen\Factory\PathFactoryInterface
return Eloquent\Pathogen\Factory\PathFactoryInterface The most appropriate path factory.
    protected function factoryByPlatform()
    {
        if ($this->isolator()->defined('PHP_WINDOWS_VERSION_BUILD')) {
            return $this->windowsFactory();
        }
        return $this->unixFactory();
    }