AppserverIo\Appserver\Core\Api\AppService::createTmpFolders PHP 메소드

createTmpFolders() 공개 메소드

Creates the temporary directory for the webapp.
public createTmpFolders ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void
$application AppserverIo\Psr\Application\ApplicationInterface The application to create the temporary directories for
리턴 void
    public function createTmpFolders(ApplicationInterface $application)
    {
        // create the directory we want to store the sessions in
        $tmpFolders = array(new \SplFileInfo($application->getTmpDir()), new \SplFileInfo($application->getCacheDir()), new \SplFileInfo($application->getSessionDir()));
        // create the applications temporary directories
        foreach ($tmpFolders as $tmpFolder) {
            $this->createDirectory($tmpFolder);
        }
    }