public function onConstruct() { parent::onConstruct(); $collections = ['ProductCollection', 'UserCollection']; $this->generator = new \PhalconRest\Documentation\Generator($collections); }