Neos\Flow\Utility\Environment::getPathToTemporaryDirectory PHP Method

getPathToTemporaryDirectory() public method

Returns the full path to Flow's temporary directory.
public getPathToTemporaryDirectory ( ) : string
return string Path to PHP's temporary directory
    public function getPathToTemporaryDirectory()
    {
        if ($this->temporaryDirectory !== null) {
            return $this->temporaryDirectory;
        }
        $this->temporaryDirectory = $this->createTemporaryDirectory($this->temporaryDirectoryBase);
        return $this->temporaryDirectory;
    }

Usage Example

 /**
  * Constructs this cache factory
  *
  * @param ApplicationContext $context The current Flow context
  * @param Environment $environment
  * @Flow\Autowiring(enabled=false)
  */
 public function __construct(ApplicationContext $context, Environment $environment)
 {
     $this->context = $context;
     $this->environment = $environment;
     $environmentConfiguration = new EnvironmentConfiguration(FLOW_PATH_ROOT . '~' . (string) $environment->getContext(), $environment->getPathToTemporaryDirectory(), PHP_MAXPATHLEN);
     parent::__construct($environmentConfiguration);
 }
All Usage Examples Of Neos\Flow\Utility\Environment::getPathToTemporaryDirectory