public function routeMatched(ApiRoute $route, Request $request): void
	{
		if (($format = $request->getParameter(self::API_DOCU_STARTER_QUERY_KEY_GENERATE)) !== null) {
			$this->generator->generateAll($this->router);

			exit(0);
		}

		if (($format = $request->getParameter(self::API_DOCU_STARTER_QUERY_KEY_TARGET)) !== null) {
			$this->generator->generateTarget($route, $request);

			exit(0);
		}
	}
public function routeMatched(ApiRoute $route, Request $request): void
	{
		if (($format = $request->getParameter(self::API_DOCU_STARTER_QUERY_KEY_GENERATE)) !== null) {
			$this->generator->generateAll($this->router);

			exit(0);
		}

		if (($format = $request->getParameter(self::API_DOCU_STARTER_QUERY_KEY_TARGET)) !== null) {
			$this->generator->generateTarget($route, $request);

			exit(0);
		}
	}
public function routeMatched ( ApiRoute $ route , Request $ request ) : void { if ( ( $ format = $ request -> getParameter ( self :: API_DOCU_STARTER_QUERY_KEY_GENERATE ) ) !== null ) { $ this -> generator -> generateAll ( $ this -> router ) ; exit ( 0 ) ; } if ( ( $ format = $ request -> getParameter ( self :: API_DOCU_STARTER_QUERY_KEY_TARGET ) ) !== null ) { $ this -> generator -> generateTarget ( $ route , $ request ) ; exit ( 0 ) ; } }
Event thatis firex when particular ApiRoute is matched
Event thatis firex when particular ApiRoute is matched