PhalconRest\Export\Postman\ApiCollection::addRoute PHP Method

addRoute() public method

public addRoute ( Phalcon\Mvc\Router\Route $route )
$route Phalcon\Mvc\Router\Route
    public function addRoute(\Phalcon\Mvc\Router\Route $route)
    {
        if (@unserialize($route->getName())) {
            return;
        }
        $name = $route->getName() ?: $route->getPattern();
        $this->addRequest(new Request($this->id, uniqid(), $name, null, $this->basePath . $route->getPattern(), $route->getHttpMethods(), 'Authorization: Bearer {{authToken}}', null, "raw"));
    }