abstract class AbstractFileSystemPathFactory implements FileSystemPathFactoryInterface
Abstract base class for classes implementing FileSystemPathFactoryInterface.
Methods
__construct(PathFactoryInterface $unixFactory = null, PathFactoryInterface $windowsFactory = null, Isolator $isolator = null)
Construct a new file system path factory. |
||
PathFactoryInterface |
unixFactory()
Get the path factory used for Unix paths. |
|
PathFactoryInterface |
windowsFactory()
Get the path factory used for Windows paths. |
|
AbsoluteFileSystemPathInterface |
createWorkingDirectoryPath()
Create a path representing the current working directory. |
|
AbsoluteFileSystemPathInterface |
createTemporaryDirectoryPath()
Create a path representing the system temporary directory. |
|
AbsoluteFileSystemPathInterface |
createTemporaryPath(string|null $prefix = null)
Create a path representing a suitable for use as the location for a new temporary file or directory. |
Details
at line 33
public
__construct(PathFactoryInterface $unixFactory = null, PathFactoryInterface $windowsFactory = null, Isolator $isolator = null)
Construct a new file system path factory.
at line 55
public PathFactoryInterface
unixFactory()
Get the path factory used for Unix paths.
at line 65
public PathFactoryInterface
windowsFactory()
Get the path factory used for Windows paths.
at line 75
public AbsoluteFileSystemPathInterface
createWorkingDirectoryPath()
Create a path representing the current working directory.
at line 86
public AbsoluteFileSystemPathInterface
createTemporaryDirectoryPath()
Create a path representing the system temporary directory.
at line 103
public AbsoluteFileSystemPathInterface
createTemporaryPath(string|null $prefix = null)
Create a path representing a suitable for use as the location for a new temporary file or directory.
This path is not guaranteed to be unused, but collisions are fairly unlikely.