Raml\ApiDefinition::getResources PHP Метод

getResources() публичный Метод

Get the resources tree
public getResources ( ) : Raml\Resource[]
Результат Raml\Resource[]
    public function getResources()
    {
        return $this->resources;
    }

Usage Example

Пример #1
0
 /**
  * @param string $output file to generate
  */
 public function generate($output)
 {
     $html = $this->twig->render('index.html.twig', array('title' => $this->specification->getTitle(), 'base_url' => $this->specification->getBaseUrl(), 'security' => $this->specification->getSecuritySchemes(), 'resources' => $this->specification->getResources(), 'documentation' => $this->specification->getDocumentationList(), 'base_dir_raml' => $this->base_dir_raml, 'version' => $this->specification->getVersion()));
     file_put_contents($output, $html);
 }
All Usage Examples Of Raml\ApiDefinition::getResources