コード例 #1
0
ファイル: Container.php プロジェクト: sitepoint/Scaffold
 /**
  * Generates Scaffold_Engine objects
  * @return Scaffold
  */
 public function build()
 {
     # For caching CSS files
     $cache = $this->getCache();
     # Sending responses to the browser
     $response = $this->getResponse();
     # Loading files and directories
     $loader = $this->getLoader();
     # The main object
     $scaffold = new Scaffold($cache, $response, $loader, $this->options['production']);
     # Load the extensions
     $extensions = $this->loadExtensions($this->system . '/extensions/*/');
     foreach ($extensions as $name => $ext) {
         $scaffold->attach($name, $ext);
     }
     return $scaffold;
 }