Dingo\Api\Dispatcher::setStandardsTree PHP Method

setStandardsTree() public method

Set the standards tree.
public setStandardsTree ( string $standardsTree ) : void
$standardsTree string
return void
    public function setStandardsTree($standardsTree)
    {
        $this->standardsTree = $standardsTree;
    }

Usage Example

 /**
  * Register the internal dispatcher.
  *
  * @return void
  */
 public function registerDispatcher()
 {
     $this->app->singleton('api.dispatcher', function ($app) {
         $dispatcher = new Dispatcher($app, $app['files'], $app['api.router'], $app['api.auth']);
         $config = $app['config']['api'];
         $dispatcher->setSubtype($config['subtype']);
         $dispatcher->setStandardsTree($config['standardsTree']);
         $dispatcher->setPrefix($config['prefix']);
         $dispatcher->setDefaultVersion($config['version']);
         $dispatcher->setDefaultDomain($config['domain']);
         $dispatcher->setDefaultFormat($config['defaultFormat']);
         return $dispatcher;
     });
 }
All Usage Examples Of Dingo\Api\Dispatcher::setStandardsTree