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); } }