Gets the parsed controller.
public getController ( ) : array | string | ||
return | array | string | The controller as a string or array of data with keys 'class', 'method', 'file' and 'line' |
public function testItIgnoresInvalidCallables() { $request = $this->createRequestWithSession(); $response = new RedirectResponse('/'); $c = new RequestDataCollector(); $c->collect($request, $response); $this->assertSame('n/a', $c->getController()); }