/**
  * Creates the temporary directory for the webapp.
  *
  * @param \TechDivision\Application\Interfaces\ApplicationInterface $application The application to create the temporary directories for
  *
  * @return 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);
     }
 }