Example #1
0
 protected function renderNamespaceTemplates(array $namespaces, Project $project, $callback = null)
 {
     foreach ($namespaces as $namespace) {
         if (null !== $callback) {
             call_user_func($callback, Message::RENDER_PROGRESS, array('Namespace', $namespace, $this->getProgression()));
         }
         $variables = array('namespace' => $namespace, 'subnamespaces' => $project->getNamespaceSubNamespaces($namespace), 'classes' => $project->getNamespaceClasses($namespace), 'interfaces' => $project->getNamespaceInterfaces($namespace), 'exceptions' => $project->getNamespaceExceptions($namespace), 'tree' => $this->getTree($project));
         foreach ($this->theme->getTemplates('namespace') as $template => $target) {
             $this->save($project, sprintf($target, str_replace('\\', '/', $namespace)), $template, $variables);
         }
     }
 }