{"site":"project_search","repo":"slim","task":"initialisiere die container-eigenschaft mit dem optionalen container-parameter","query":"construct container","file":"Slim/CallableResolver.php","symbol":"__construct","line":42,"lang":"de","candidates":[{"text":"File: Slim/CallableResolver.php\nLine 42: public function __construct(?ContainerInterface $container = null)","file":"Slim/CallableResolver.php","line":42,"lexical":0.39999999999999997,"target":true},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 586: $containerProphecy->has(MockMiddlewareWithConstructor::class)->willReturn(false);","file":"tests/MiddlewareDispatcherTest.php","line":586,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 595: $this->assertSame($containerProphecy->reveal(), MockMiddlewareWithConstructor::$container);","file":"tests/MiddlewareDispatcherTest.php","line":595,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/CallableTest.php\nLine 21: public function __construct($container = null)","file":"tests/Mocks/CallableTest.php","line":21,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/MockMiddlewareWithConstructor.php\nLine 30: public function __construct(?ContainerInterface $container = null)","file":"tests/Mocks/MockMiddlewareWithConstructor.php","line":30,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"How does the system handle passing route parameters as separate arguments to a controller callback?","query":"route parameter strategy","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","symbol":"RequestResponseArgs","line":23,"lang":"en","candidates":[{"text":"File: CHANGELOG.md\nLine 243: - [3001: Add missing `$strategy` parameter in a Route test](https://github.com/slimphp/Slim/pull/3001) thanks to @pawel-slowik","file":"CHANGELOG.md","line":243,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 18: * Default route callback strategy with route parameters as an array of arguments.","file":"Slim/Handlers/Strategies/RequestResponse.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 20: * Route callback strategy with route parameters as individual arguments.","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":20,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 19: * Route callback strategy with route parameters as individual arguments.","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":19,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1225: public function testInvokeWithMatchingRouteWithNamedParameterRequestResponseStrategy(): void","file":"tests/AppTest.php","line":1225,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1266: public function testInvokeWithMatchingRouteWithNamedParameterRequestResponseArgStrategy(): void","file":"tests/AppTest.php","line":1266,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1308: public function testInvokeWithMatchingRouteWithNamedParameterRequestResponseNamedArgsStrategy(): void","file":"tests/AppTest.php","line":1308,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"외부에서 생성기들을 전달받아 정적 프로퍼티에 설정하는 메서드가 어디에 정의되어 있나요?","query":"set factories static","file":"Slim/Factory/Psr17/Psr17FactoryProvider.php","symbol":"setFactories","line":41,"lang":"ko","candidates":[{"text":"File: Slim/Factory/Psr17/Psr17FactoryProvider.php\nLine 41: public static function setFactories(array $factories): void","file":"Slim/Factory/Psr17/Psr17FactoryProvider.php","line":41,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Interfaces/Psr17FactoryProviderInterface.php\nLine 24: public static function setFactories(array $factories): void;","file":"Slim/Interfaces/Psr17FactoryProviderInterface.php","line":24,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"HTTP 응답을 클라이언트에게 보내기 전에 헤더와 상태 코드를 먼저 전송해야 하지만, PHP의 'location' 헤더 관련 버그로 인해 상태 라인 설정이 헤더 전송 이후에 이루어져야 합니다. 이를 위해 Headers를 먼저 emit한 후 Status Line을 emit하는 로직을 작성해주세요. 응답 본문은 응답이 비어있지 않은 경우에만 출력해야 합니다.","query":"response emitter","file":"Slim/ResponseEmitter.php","symbol":"ResponseEmitter","line":26,"lang":"ko","candidates":[{"text":"File: CHANGELOG.md\nLine 289: - [2925](https://github.com/slimphp/Slim/pull/2925) ResponseEmitter: Don't remove Content-Type and Content-Length when body is empt","file":"CHANGELOG.md","line":289,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 351: - [2803](https://github.com/slimphp/Slim/pull/2803) Add ability to emit non seekable streams in `ResponseEmitter`","file":"CHANGELOG.md","line":351,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 355: - [2789](https://github.com/slimphp/Slim/pull/2789) Fix Cookie header detection in `ResponseEmitter`","file":"CHANGELOG.md","line":355,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 194: $responseEmitter = new ResponseEmitter();","file":"Slim/App.php","line":194,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 195: $responseEmitter->emit($response);","file":"Slim/App.php","line":195,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/ResponseEmitter.php\nLine 26: class ResponseEmitter","file":"Slim/ResponseEmitter.php","line":26,"lexical":0.6000000000000001,"target":true},{"text":"File: tests/ResponseEmitterTest.php\nLine 14: use Slim\\ResponseEmitter;","file":"tests/ResponseEmitterTest.php","line":14,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 38: class ResponseEmitterTest extends TestCase","file":"tests/ResponseEmitterTest.php","line":38,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 55: $responseEmitter = new ResponseEmitter();","file":"tests/ResponseEmitterTest.php","line":55,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 56: $responseEmitter->emit($response);","file":"tests/ResponseEmitterTest.php","line":56,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 97: $responseEmitter = new ResponseEmitter();","file":"tests/ResponseEmitterTest.php","line":97,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 98: $responseEmitter->emit($response);","file":"tests/ResponseEmitterTest.php","line":98,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 120: $responseEmitter = new ResponseEmitter();","file":"tests/ResponseEmitterTest.php","line":120,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 121: $responseEmitter->emit($response);","file":"tests/ResponseEmitterTest.php","line":121,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 131: $responseEmitter = new ResponseEmitter($body::CHUNK_SIZE * 2);","file":"tests/ResponseEmitterTest.php","line":131,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 132: $responseEmitter->emit($response);","file":"tests/ResponseEmitterTest.php","line":132,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 143: $responseEmitter = new ResponseEmitter();","file":"tests/ResponseEmitterTest.php","line":143,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 144: $responseEmitter->emit($response);","file":"tests/ResponseEmitterTest.php","line":144,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 161: $responseEmitter = new ResponseEmitter();","file":"tests/ResponseEmitterTest.php","line":161,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 162: $responseEmitter->emit($response);","file":"tests/ResponseEmitterTest.php","line":162,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 179: $responseEmitter = new ResponseEmitter();","file":"tests/ResponseEmitterTest.php","line":179,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 181: $this->assertTrue($responseEmitter->isResponseEmpty($response));","file":"tests/ResponseEmitterTest.php","line":181,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 190: $responseEmitter = new ResponseEmitter();","file":"tests/ResponseEmitterTest.php","line":190,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 192: $responseEmitter->isResponseEmpty($response);","file":"tests/ResponseEmitterTest.php","line":192,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 203: $responseEmitter = new ResponseEmitter();","file":"tests/ResponseEmitterTest.php","line":203,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 205: $responseEmitter->isResponseEmpty($response);","file":"tests/ResponseEmitterTest.php","line":205,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 218: $responseEmitter = new ResponseEmitter();","file":"tests/ResponseEmitterTest.php","line":218,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 219: $responseEmitter->emit($response);","file":"tests/ResponseEmitterTest.php","line":219,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 228: $responseEmitter = new ResponseEmitter();","file":"tests/ResponseEmitterTest.php","line":228,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 230: $this->assertTrue($responseEmitter->isResponseEmpty($response));","file":"tests/ResponseEmitterTest.php","line":230,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 239: $responseEmitter = new ResponseEmitter();","file":"tests/ResponseEmitterTest.php","line":239,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 241: $this->assertFalse($responseEmitter->isResponseEmpty($response));","file":"tests/ResponseEmitterTest.php","line":241,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"テスト実行前にヘッダーの状態を初期化する処理を探して","query":"reset header stack","file":"tests/ResponseEmitterTest.php","symbol":"setUp","line":40,"lang":"ja","candidates":[{"text":"File: tests/ResponseEmitterTest.php\nLine 42: HeaderStack::reset();","file":"tests/ResponseEmitterTest.php","line":42,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/ResponseEmitterTest.php\nLine 47: HeaderStack::reset();","file":"tests/ResponseEmitterTest.php","line":47,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Estoy intentando acceder a la fábrica de respuestas dentro de las rutas para personalizar la salida. ¿Cómo puedo obtener la instancia del objeto encargado de crear las respuestas desde aquí?","query":"response factory","file":"Slim/Routing/RouteCollectorProxy.php","symbol":"getResponseFactory","line":58,"lang":"es","candidates":[{"text":"File: Slim/App.php\nLine 14: use Psr\\Http\\Message\\ResponseFactoryInterface;","file":"Slim/App.php","line":14,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 56: ResponseFactoryInterface $responseFactory,","file":"Slim/App.php","line":56,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 64: $responseFactory,","file":"Slim/App.php","line":64,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 153: $this->getResponseFactory(),","file":"Slim/App.php","line":153,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 220: $emptyBody = $this->responseFactory->createResponse()->getBody();","file":"Slim/App.php","line":220,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 14: use Psr\\Http\\Message\\ResponseFactoryInterface;","file":"Slim/Factory/AppFactory.php","line":14,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 32: protected static ?ResponseFactoryInterface $responseFactory = null;","file":"Slim/Factory/AppFactory.php","line":32,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 54: ?ResponseFactoryInterface $responseFactory = null,","file":"Slim/Factory/AppFactory.php","line":54,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 61: static::$responseFactory = $responseFactory ?? static::$responseFactory;","file":"Slim/Factory/AppFactory.php","line":61,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 63: self::determineResponseFactory(),","file":"Slim/Factory/AppFactory.php","line":63,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 79: $responseFactory = $container->has(ResponseFactoryInterface::class)","file":"Slim/Factory/AppFactory.php","line":79,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 81: $responseFactoryFromContainer = $container->get(ResponseFactoryInterface::class)","file":"Slim/Factory/AppFactory.php","line":81,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 82: ) instanceof ResponseFactoryInterface","file":"Slim/Factory/AppFactory.php","line":82,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 83: ? $responseFactoryFromContainer","file":"Slim/Factory/AppFactory.php","line":83,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 84: : self::determineResponseFactory();","file":"Slim/Factory/AppFactory.php","line":84,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 115: $responseFactory,","file":"Slim/Factory/AppFactory.php","line":115,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 127: public static function determineResponseFactory(): ResponseFactoryInterface","file":"Slim/Factory/AppFactory.php","line":127,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 129: if (static::$responseFactory) {","file":"Slim/Factory/AppFactory.php","line":129,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 131: return static::attemptResponseFactoryDecoration(static::$responseFactory, static::$streamFactory);","file":"Slim/Factory/AppFactory.php","line":131,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 133: return static::$responseFactory;","file":"Slim/Factory/AppFactory.php","line":133,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 140: if ($psr17factory::isResponseFactoryAvailable()) {","file":"Slim/Factory/AppFactory.php","line":140,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 141: $responseFactory = $psr17factory::getResponseFactory();","file":"Slim/Factory/AppFactory.php","line":141,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 145: return static::attemptResponseFactoryDecoration($responseFactory, $streamFactory);","file":"Slim/Factory/AppFactory.php","line":145,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 148: return $responseFactory;","file":"Slim/Factory/AppFactory.php","line":148,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 153: \"Could not detect any PSR-17 ResponseFactory implementations. \" .","file":"Slim/Factory/AppFactory.php","line":153,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 159: protected static function attemptResponseFactoryDecoration(","file":"Slim/Factory/AppFactory.php","line":159,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 160: ResponseFactoryInterface $responseFactory,","file":"Slim/Factory/AppFactory.php","line":160,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 162: ): ResponseFactoryInterface {","file":"Slim/Factory/AppFactory.php","line":162,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 165: && SlimHttpPsr17Factory::isResponseFactoryAvailable()","file":"Slim/Factory/AppFactory.php","line":165,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 167: return SlimHttpPsr17Factory::createDecoratedResponseFactory($responseFactory, $streamFactory);","file":"Slim/Factory/AppFactory.php","line":167,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 170: return $responseFactory;","file":"Slim/Factory/AppFactory.php","line":170,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 178: public static function setResponseFactory(ResponseFactoryInterface $responseFactory): void","file":"Slim/Factory/AppFactory.php","line":178,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"後回しで実行されるコールバックのパターンをテストするためのデータセットはどこにありますか?","query":"deferred callable provider","file":"tests/MiddlewareDispatcherTest.php","symbol":"deferredCallableProvider","line":141,"lang":"ja","candidates":[{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 141: public static function deferredCallableProvider(): array","file":"tests/MiddlewareDispatcherTest.php","line":141,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 155: * @dataProvider deferredCallableProvider","file":"tests/MiddlewareDispatcherTest.php","line":155,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 160: #[\\PHPUnit\\Framework\\Attributes\\DataProvider('deferredCallableProvider')]","file":"tests/MiddlewareDispatcherTest.php","line":160,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"查找用于给路由添加中间件的方法","query":"add middleware","file":"Slim/Interfaces/RouteInterface.php","symbol":"add","line":109,"lang":"zh","candidates":[{"text":"File: CHANGELOG.md\nLine 143: - [3191: Adding property types to Middleware classes](https://github.com/slimphp/Slim/pull/3191) thanks to @ashleycoles","file":"CHANGELOG.md","line":143,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 322: - [2819](https://github.com/slimphp/Slim/pull/2819) Added description to addRoutingMiddleware()","file":"CHANGELOG.md","line":322,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 348: - [2798](https://github.com/slimphp/Slim/pull/2798) Add PSR-7 Agnostic Body Parsing Middleware","file":"CHANGELOG.md","line":348,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 352: - [2817](https://github.com/slimphp/Slim/pull/2817) Add the ability to pass in a custom `MiddlewareDispatcherInterface` to the `App`","file":"CHANGELOG.md","line":352,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 369: - [#2779](https://github.com/slimphp/Slim/pull/2774) Add support for Slim callables `Class:method` resolution & Container Closure auto-binding in `MiddlewareDispatcher`","file":"CHANGELOG.md","line":369,"lexical":0.39999999999999997,"target":false},{"text":"File: README.md\nLine 76: // Add error middleware","file":"README.md","line":76,"lexical":0.39999999999999997,"target":false},{"text":"File: README.md\nLine 77: $app->addErrorMiddleware(true, true, true);","file":"README.md","line":77,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 102: public function add($middleware): self","file":"Slim/App.php","line":102,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 104: $this->middlewareDispatcher->add($middleware);","file":"Slim/App.php","line":104,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 112: public function addMiddleware(MiddlewareInterface $middleware): self","file":"Slim/App.php","line":112,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 114: $this->middlewareDispatcher->addMiddleware($middleware);","file":"Slim/App.php","line":114,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 119: * Add the Slim built-in routing middleware to the app middleware stack","file":"Slim/App.php","line":119,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 125: public function addRoutingMiddleware(): RoutingMiddleware","file":"Slim/App.php","line":125,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 131: $this->add($routingMiddleware);","file":"Slim/App.php","line":131,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 136: * Add the Slim built-in error middleware to the app middleware stack","file":"Slim/App.php","line":136,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 145: public function addErrorMiddleware(","file":"Slim/App.php","line":145,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 159: $this->add($errorMiddleware);","file":"Slim/App.php","line":159,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 164: * Add the Slim body parsing middleware to the app middleware stack","file":"Slim/App.php","line":164,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 170: public function addBodyParsingMiddleware(array $bodyParsers = []): BodyParsingMiddleware","file":"Slim/App.php","line":170,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 173: $this->add($bodyParsingMiddleware);","file":"Slim/App.php","line":173,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 20: * Add a new middleware to the stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":20,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 28: public function add($middleware): self;","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":28,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 31: * Add a new middleware to the stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":31,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 37: public function addMiddleware(MiddlewareInterface $middleware): self;","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":37,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 22: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":22,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 26: public function add($middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":26,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 29: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":29,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 31: public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":31,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 109: public function add($middleware): self;","file":"Slim/Interfaces/RouteInterface.php","line":109,"lexical":0.39999999999999997,"target":true},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 111: public function addMiddleware(MiddlewareInterface $middleware): self;","file":"Slim/Interfaces/RouteInterface.php","line":111,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 77: * Add a new middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":77,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 85: public function add($middleware): MiddlewareDispatcherInterface","file":"Slim/MiddlewareDispatcher.php","line":85,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"Necesito verificar que cuando se realiza una solicitud HTTP con un método no permitido en una ruta configurada, el despachador devuelva correctamente el código de estado METHOD_NOT_ALLOWED.","query":"method not allowed dispatch","file":"tests/Routing/FastRouteDispatcherTest.php","symbol":"testMethodNotAllowedDispatches","line":81,"lang":"es","candidates":[{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 111: $this->assertSame(Dispatcher::METHOD_NOT_ALLOWED, $routingResults->getRouteStatus());","file":"tests/Middleware/RoutingMiddlewareTest.php","line":111,"lexical":0.5,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 75: * @dataProvider provideMethodNotAllowedDispatchCases","file":"tests/Routing/FastRouteDispatcherTest.php","line":75,"lexical":0.65,"target":true},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 81: #[\\PHPUnit\\Framework\\Attributes\\DataProvider('provideMethodNotAllowedDispatchCases')]","file":"tests/Routing/FastRouteDispatcherTest.php","line":81,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 82: public function testMethodNotAllowedDispatches($method, $uri, $callback, $allowedMethods)","file":"tests/Routing/FastRouteDispatcherTest.php","line":82,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 89: $this->assertSame($dispatcher::METHOD_NOT_ALLOWED, $results[0]);","file":"tests/Routing/FastRouteDispatcherTest.php","line":89,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 93: * @dataProvider provideMethodNotAllowedDispatchCases","file":"tests/Routing/FastRouteDispatcherTest.php","line":93,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 99: #[\\PHPUnit\\Framework\\Attributes\\DataProvider('provideMethodNotAllowedDispatchCases')]","file":"tests/Routing/FastRouteDispatcherTest.php","line":99,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 559: public static function provideMethodNotAllowedDispatchCases()","file":"tests/Routing/FastRouteDispatcherTest.php","line":559,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Como obtenho a estratégia de invocação da rota atual?","query":"route invocation strategy","file":"Slim/Interfaces/RouteInterface.php","symbol":"getInvocationStrategy","line":23,"lang":"pt","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 25: * Get default route invocation strategy","file":"Slim/Interfaces/RouteCollectorInterface.php","line":25,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 30: * Set default route invocation strategy","file":"Slim/Interfaces/RouteCollectorInterface.php","line":30,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 32: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":32,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 21: * Get route invocation strategy","file":"Slim/Interfaces/RouteInterface.php","line":21,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 26: * Set route invocation strategy","file":"Slim/Interfaces/RouteInterface.php","line":26,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 28: public function setInvocationStrategy(InvocationStrategyInterface $invocationStrategy): RouteInterface;","file":"Slim/Interfaces/RouteInterface.php","line":28,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 159: public function setInvocationStrategy(InvocationStrategyInterface $invocationStrategy): RouteInterface","file":"Slim/Routing/Route.php","line":159,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 113: * Get default route invocation strategy","file":"Slim/Routing/RouteCollector.php","line":113,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 120: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface","file":"Slim/Routing/RouteCollector.php","line":120,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 1284: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1284,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1330: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseNamedArgs());","file":"tests/AppTest.php","line":1330,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1651: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1651,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 92: public function testGetRouteInvocationStrategy()","file":"tests/Routing/RouteCollectorTest.php","line":92,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 106: $this->assertSame($invocationStrategyProphecy->reveal(), $routeCollector->getDefaultInvocationStrategy());","file":"tests/Routing/RouteCollectorTest.php","line":106,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 194: $this->assertSame($strategyProphecy->reveal(), $route->getInvocationStrategy());","file":"tests/Routing/RouteTest.php","line":194,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 214: $route->setInvocationStrategy($strategyProphecy->reveal());","file":"tests/Routing/RouteTest.php","line":214,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 216: $this->assertSame($strategyProphecy->reveal(), $route->getInvocationStrategy());","file":"tests/Routing/RouteTest.php","line":216,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 672: $route->setInvocationStrategy($strategy);","file":"tests/Routing/RouteTest.php","line":672,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 709: $route->setInvocationStrategy($strategy);","file":"tests/Routing/RouteTest.php","line":709,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"busca o método que retorna os parâmetros da rota","query":"route arguments","file":"Slim/Interfaces/RouteInterface.php","symbol":"getArguments","line":88,"lang":"pt","candidates":[{"text":"File: CHANGELOG.md\nLine 19: - Stop decoding route arguments twice to prevent route constraint bypass ([GHSA-h377-p8x2-prf9](https://github.com/slimphp/Slim/security/advisories/GHSA-h377-p8x2-prf9))","file":"CHANGELOG.md","line":19,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 23: - The `$urlDecode` parameter of `RoutingResults::getRouteArguments()` is now ignored ([GHSA-h377-p8x2-prf9](https://github.com/slimphp/Slim/security/advisories/GHSA-h377-p8x2-prf9))","file":"CHANGELOG.md","line":23,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 22: protected bool $appendRouteArgumentsToRequestAttributes;","file":"Slim/Handlers/Strategies/RequestHandler.php","line":22,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 24: public function __construct(bool $appendRouteArgumentsToRequestAttributes = false)","file":"Slim/Handlers/Strategies/RequestHandler.php","line":24,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 26: $this->appendRouteArgumentsToRequestAttributes = $appendRouteArgumentsToRequestAttributes;","file":"Slim/Handlers/Strategies/RequestHandler.php","line":26,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 32: * @param array $routeArguments","file":"Slim/Handlers/Strategies/RequestHandler.php","line":32,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 38: array $routeArguments","file":"Slim/Handlers/Strategies/RequestHandler.php","line":38,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 40: if ($this->appendRouteArgumentsToRequestAttributes) {","file":"Slim/Handlers/Strategies/RequestHandler.php","line":40,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 41: foreach ($routeArguments as $k => $v) {","file":"Slim/Handlers/Strategies/RequestHandler.php","line":41,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 18: * Default route callback strategy with route parameters as an array of arguments.","file":"Slim/Handlers/Strategies/RequestResponse.php","line":18,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 26: * @param array $routeArguments","file":"Slim/Handlers/Strategies/RequestResponse.php","line":26,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 32: array $routeArguments","file":"Slim/Handlers/Strategies/RequestResponse.php","line":32,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 34: foreach ($routeArguments as $k => $v) {","file":"Slim/Handlers/Strategies/RequestResponse.php","line":34,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 39: return $callable($request, $response, $routeArguments);","file":"Slim/Handlers/Strategies/RequestResponse.php","line":39,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 20: * Route callback strategy with route parameters as individual arguments.","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":20,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 29: * @param array $routeArguments","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":29,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 35: array $routeArguments","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":35,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 38: return $callable($request, $response, ...array_values($routeArguments));","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":38,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 19: * Route callback strategy with route parameters as individual arguments.","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":19,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 28: * @param array $routeArguments","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":28,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 34: array $routeArguments","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":34,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 37: return $callable($request, $response, ...$routeArguments);","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":37,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/InvocationStrategyInterface.php\nLine 27: * @param array $routeArguments The route's placeholder arguments","file":"Slim/Interfaces/InvocationStrategyInterface.php","line":27,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/InvocationStrategyInterface.php\nLine 35: array $routeArguments","file":"Slim/Interfaces/InvocationStrategyInterface.php","line":35,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 84: * Get route arguments","file":"Slim/Interfaces/RouteInterface.php","line":84,"lexical":0.6000000000000001,"target":true},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 93: * @deprecated 4.14.1 Use a middleware for custom route arguments now.","file":"Slim/Interfaces/RouteInterface.php","line":93,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 98: * Replace route arguments","file":"Slim/Interfaces/RouteInterface.php","line":98,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 102: * @deprecated 4.14.1 Use a middleware for custom route arguments now.","file":"Slim/Interfaces/RouteInterface.php","line":102,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 68: $routeArguments = $routingResults->getRouteArguments();","file":"Slim/Middleware/RoutingMiddleware.php","line":68,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 72: ->prepare($routeArguments);","file":"Slim/Middleware/RoutingMiddleware.php","line":72,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 76: * Route arguments parameters","file":"Slim/Routing/Route.php","line":76,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 254: public function setArguments(array $arguments, bool $includeInSavedArguments = true): RouteInterface","file":"Slim/Routing/Route.php","line":254,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"Comment l'endroit où le middleware du groupe est ajouté avant de dispatcher la requête.","query":"append group middleware","file":"Slim/Routing/Route.php","symbol":"run","line":315,"lang":"fr","candidates":[{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 34: * Append the group's middleware to the MiddlewareDispatcher","file":"Slim/Interfaces/RouteGroupInterface.php","line":34,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 37: public function appendMiddlewareToDispatcher(MiddlewareDispatcher $dispatcher): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":37,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 107: protected bool $groupMiddlewareAppended = false;","file":"Slim/Routing/Route.php","line":107,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Routing/Route.php\nLine 317: if (!$this->groupMiddlewareAppended) {","file":"Slim/Routing/Route.php","line":317,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 318: $this->appendGroupMiddlewareToRoute();","file":"Slim/Routing/Route.php","line":318,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 327: protected function appendGroupMiddlewareToRoute(): void","file":"Slim/Routing/Route.php","line":327,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 333: $group->appendMiddlewareToDispatcher($this->middlewareDispatcher);","file":"Slim/Routing/Route.php","line":333,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 336: $this->groupMiddlewareAppended = true;","file":"Slim/Routing/Route.php","line":336,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 93: public function appendMiddlewareToDispatcher(MiddlewareDispatcher $dispatcher): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":93,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"ルーティングの処理を担当しているクラスの初期化部分を確認したいです。リクエストを解析してパスを特定するために必要な依存関係が何を使われているか教えてください。","query":"route resolver parser","file":"Slim/Middleware/RoutingMiddleware.php","symbol":"__construct","line":31,"lang":"ja","candidates":[{"text":"File: Slim/App.php\nLine 71: $routeRunner = new RouteRunner($this->routeResolver, $this->routeCollector->getRouteParser(), $this);","file":"Slim/App.php","line":71,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 31: public function __construct(RouteResolverInterface $routeResolver, RouteParserInterface $routeParser)","file":"Slim/Middleware/RoutingMiddleware.php","line":31,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Routing/RouteRunner.php\nLine 61: $routingMiddleware = new RoutingMiddleware($this->routeResolver, $this->routeParser);","file":"Slim/Routing/RouteRunner.php","line":61,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 65: $routingMiddleware = new RoutingMiddleware($routeResolver, $routeParser);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":65,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 83: $routingMiddleware = new RoutingMiddleware($routeResolver, $routeParser);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":83,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 120: $routingMiddleware = new RoutingMiddleware($routeResolver, $routeParser);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":120,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 187: $middleware = new RoutingMiddleware($routeResolver, $routeParser);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":187,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteRunnerTest.php\nLine 48: $dispatcher = new RouteRunner($routeResolver, $routeParser);","file":"tests/Routing/RouteRunnerTest.php","line":48,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Vérifier pourquoi la méthode statique qui permet de déterminer si le constructeur de requêtes serveur est disponible ne renvoie pas toujours le résultat attendu.","query":"server request creator","file":"Slim/Interfaces/Psr17FactoryInterface.php","symbol":"isServerRequestCreatorAvailable","line":47,"lang":"fr","candidates":[{"text":"File: README.md\nLine 20: ## Choose a PSR-7 Implementation & ServerRequest Creator","file":"README.md","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: README.md\nLine 44: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"README.md","line":44,"lexical":0.44999999999999996,"target":false},{"text":"File: README.md\nLine 47: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"README.md","line":47,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 20: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"Slim/App.php","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 189: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"Slim/App.php","line":189,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 190: $request = $serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/App.php","line":190,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/GuzzlePsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'GuzzleHttp\\Psr7\\ServerRequest';","file":"Slim/Factory/Psr17/GuzzlePsr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/GuzzlePsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/GuzzlePsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'HttpSoft\\ServerRequest\\ServerRequestCreator';","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'createFromGlobals';","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'Laminas\\Diactoros\\ServerRequestFactory';","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 7: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":7,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 13: protected static string $serverRequestCreatorClass = 'Nyholm\\Psr7Server\\ServerRequestCreator';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":13,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 14: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":14,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 19: public static function getServerRequestCreator(): ServerRequestCreatorInterface","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":19,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 27: $serverRequestCreator = new static::$serverRequestCreatorClass(","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":27,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 34: return new ServerRequestCreator($serverRequestCreator, static::$serverRequestCreatorMethod);","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":34,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 40: public static function isServerRequestCreatorAvailable(): bool","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":40,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 43: parent::isServerRequestCreatorAvailable()","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":43,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 17: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 28: protected static string $serverRequestCreatorClass;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":28,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 30: protected static string $serverRequestCreatorMethod;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 65: public static function getServerRequestCreator(): ServerRequestCreatorInterface","file":"Slim/Factory/Psr17/Psr17Factory.php","line":65,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 67: if (!static::isServerRequestCreatorAvailable()) {","file":"Slim/Factory/Psr17/Psr17Factory.php","line":67,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 68: throw new RuntimeException(get_called_class() . ' could not instantiate a server request creator.');","file":"Slim/Factory/Psr17/Psr17Factory.php","line":68,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 71: return new ServerRequestCreator(static::$serverRequestCreatorClass, static::$serverRequestCreatorMethod);","file":"Slim/Factory/Psr17/Psr17Factory.php","line":71,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 93: public static function isServerRequestCreatorAvailable(): bool","file":"Slim/Factory/Psr17/Psr17Factory.php","line":93,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 96: static::$serverRequestCreatorClass","file":"Slim/Factory/Psr17/Psr17Factory.php","line":96,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 97: && static::$serverRequestCreatorMethod","file":"Slim/Factory/Psr17/Psr17Factory.php","line":97,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 98: && class_exists(static::$serverRequestCreatorClass)","file":"Slim/Factory/Psr17/Psr17Factory.php","line":98,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/ServerRequestCreator.php\nLine 15: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/ServerRequestCreator.php","line":15,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"デコレータなしでサーバーリクエスト作成者をセットする挙動をテストして","query":"setServerRequestCreator test","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","symbol":"testSetServerRequestCreatorWithoutDecorators","line":101,"lang":"ja","candidates":[{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 99: * @runInSeparateProcess - ServerRequestCreatorFactory::setServerRequestCreator breaks other tests","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":99,"lexical":0.6000000000000001,"target":true},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 102: public function testSetServerRequestCreatorWithoutDecorators()","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":102,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 121: * @runInSeparateProcess - ServerRequestCreatorFactory::setServerRequestCreator breaks other tests","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":121,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 124: public function testSetServerRequestCreatorWithDecorators()","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":124,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"Necesito asignar un identificador único a esta ruta para poder referenciarla más tarde. Por favor, añade el método para establecer el nombre del recurso.","query":"set route name","file":"Slim/Interfaces/RouteInterface.php","symbol":"setName","line":71,"lang":"es","candidates":[{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 67: * Set route name","file":"Slim/Interfaces/RouteInterface.php","line":67,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 71: public function setName(string $name): RouteInterface;","file":"Slim/Interfaces/RouteInterface.php","line":71,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 95: public function setArgument(string $name, string $value): RouteInterface;","file":"Slim/Interfaces/RouteInterface.php","line":95,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 218: public function setName(string $name): RouteInterface","file":"Slim/Routing/Route.php","line":218,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 302: public function setArgument(string $name, string $value, bool $includeInSavedArguments = true): RouteInterface","file":"Slim/Routing/Route.php","line":302,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 188: unset($this->routesByName[$name], $this->routes[$route->getIdentifier()]);","file":"Slim/Routing/RouteCollector.php","line":188,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 197: if (isset($this->routesByName[$name])) {","file":"Slim/Routing/RouteCollector.php","line":197,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 203: unset($this->routesByName[$name]);","file":"Slim/Routing/RouteCollector.php","line":203,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 274: if ($routeName !== null && !isset($this->routesByName[$routeName])) {","file":"Slim/Routing/RouteCollector.php","line":274,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 1330: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseNamedArgs());","file":"tests/AppTest.php","line":1330,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1357: public function testInvokeWithMatchingRouteWithNamedParameterOverwritesSetArgument(): void","file":"tests/AppTest.php","line":1357,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 55: $route->setName('foo');","file":"tests/Routing/DispatcherTest.php","line":55,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 119: $route->setName('test');","file":"tests/Routing/RouteCollectorTest.php","line":119,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 91: $route->setName('test');","file":"tests/Routing/RouteParserTest.php","line":91,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 109: $route->setName('test');","file":"tests/Routing/RouteParserTest.php","line":109,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 139: $route->setName('test');","file":"tests/Routing/RouteParserTest.php","line":139,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 157: $route->setName('test');","file":"tests/Routing/RouteParserTest.php","line":157,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 394: $this->assertSame($route, $route->setName('foo'));","file":"tests/Routing/RouteTest.php","line":394,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"busca la estrategia que pasa los parámetros de la ruta como argumentos individuales al callback","query":"route arguments strategy","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","symbol":"RequestResponseNamedArgs","line":22,"lang":"es","candidates":[{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 18: * Default route callback strategy with route parameters as an array of arguments.","file":"Slim/Handlers/Strategies/RequestResponse.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 20: * Route callback strategy with route parameters as individual arguments.","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 19: * Route callback strategy with route parameters as individual arguments.","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":19,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/Routing/RouteTest.php\nLine 680: public function testRequestHandlerStrategyAppendsRouteArgumentsAsAttributesToRequest()","file":"tests/Routing/RouteTest.php","line":680,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"현재 라우팅 처리 결과를 바탕으로 선택된 라우트의 상태를 확인하고 싶어요. 이 메서드를 호출하면 현재 라우팅 결정의 결과를 정수 형태로 반환받을 수 있습니다.","query":"get route status","file":"Slim/Routing/RoutingResults.php","symbol":"getRouteStatus","line":77,"lang":"ko","candidates":[{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 62: $routeStatus = $routingResults->getRouteStatus();","file":"Slim/Middleware/RoutingMiddleware.php","line":62,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RoutingResults.php\nLine 77: public function getRouteStatus(): int","file":"Slim/Routing/RoutingResults.php","line":77,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 111: $this->assertSame(Dispatcher::METHOD_NOT_ALLOWED, $routingResults->getRouteStatus());","file":"tests/Middleware/RoutingMiddlewareTest.php","line":111,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 148: $this->assertSame(Dispatcher::NOT_FOUND, $routingResults->getRouteStatus());","file":"tests/Middleware/RoutingMiddlewareTest.php","line":148,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 158: // status when the method `getRouteStatus()` gets called.","file":"tests/Middleware/RoutingMiddlewareTest.php","line":158,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 161: $routingResultsProphecy->getRouteStatus()","file":"tests/Middleware/RoutingMiddlewareTest.php","line":161,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 75: $this->assertSame(FastRouteDispatcher::FOUND, $result->getRouteStatus());","file":"tests/Routing/DispatcherTest.php","line":75,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 134: $this->assertSame(RoutingResults::FOUND, $results->getRouteStatus());","file":"tests/Routing/DispatcherTest.php","line":134,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 157: $this->assertSame(RoutingResults::FOUND, $results->getRouteStatus());","file":"tests/Routing/DispatcherTest.php","line":157,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 161: $this->assertSame(RoutingResults::FOUND, $results->getRouteStatus());","file":"tests/Routing/DispatcherTest.php","line":161,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Wo werden die verfügbaren Implementierungen für die Erstellung von PSR-17 Objekten verwaltet?","query":"PSR17 factory provider","file":"Slim/Factory/Psr17/Psr17FactoryProvider.php","symbol":"Psr17FactoryProvider","line":17,"lang":"de","candidates":[{"text":"File: CHANGELOG.md\nLine 167: - [3120: Add a new PSR-17 factory to Psr17FactoryProvider](https://github.com/slimphp/Slim/pull/3120) thanks to @solventt","file":"CHANGELOG.md","line":167,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 19: use Slim\\Factory\\Psr17\\Psr17FactoryProvider;","file":"Slim/Factory/AppFactory.php","line":19,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 23: use Slim\\Interfaces\\Psr17FactoryProviderInterface;","file":"Slim/Factory/AppFactory.php","line":23,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 30: protected static ?Psr17FactoryProviderInterface $psr17FactoryProvider = null;","file":"Slim/Factory/AppFactory.php","line":30,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 136: $psr17FactoryProvider = static::$psr17FactoryProvider ?? new Psr17FactoryProvider();","file":"Slim/Factory/AppFactory.php","line":136,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 139: foreach ($psr17FactoryProvider->getFactories() as $psr17factory) {","file":"Slim/Factory/AppFactory.php","line":139,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 173: public static function setPsr17FactoryProvider(Psr17FactoryProviderInterface $psr17FactoryProvider): void","file":"Slim/Factory/AppFactory.php","line":173,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 175: static::$psr17FactoryProvider = $psr17FactoryProvider;","file":"Slim/Factory/AppFactory.php","line":175,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17FactoryProvider.php\nLine 13: use Slim\\Interfaces\\Psr17FactoryProviderInterface;","file":"Slim/Factory/Psr17/Psr17FactoryProvider.php","line":13,"lexical":0.65,"target":true},{"text":"File: Slim/Factory/Psr17/Psr17FactoryProvider.php\nLine 17: class Psr17FactoryProvider implements Psr17FactoryProviderInterface","file":"Slim/Factory/Psr17/Psr17FactoryProvider.php","line":17,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 15: use Slim\\Factory\\Psr17\\Psr17FactoryProvider;","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":15,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 17: use Slim\\Interfaces\\Psr17FactoryProviderInterface;","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":17,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 23: protected static ?Psr17FactoryProviderInterface $psr17FactoryProvider = null;","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":23,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 43: $psr17FactoryProvider = static::$psr17FactoryProvider ?? new Psr17FactoryProvider();","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":43,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 46: foreach ($psr17FactoryProvider->getFactories() as $psr17Factory) {","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":46,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 74: public static function setPsr17FactoryProvider(Psr17FactoryProviderInterface $psr17FactoryProvider): void","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":74,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 76: static::$psr17FactoryProvider = $psr17FactoryProvider;","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":76,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/Psr17FactoryProviderInterface.php\nLine 14: interface Psr17FactoryProviderInterface","file":"Slim/Interfaces/Psr17FactoryProviderInterface.php","line":14,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 29: use Slim\\Factory\\Psr17\\Psr17FactoryProvider;","file":"tests/Factory/AppFactoryTest.php","line":29,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 72: Psr17FactoryProvider::setFactories([$psr17factory]);","file":"tests/Factory/AppFactoryTest.php","line":72,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 89: Psr17FactoryProvider::setFactories([SlimPsr17Factory::class]);","file":"tests/Factory/AppFactoryTest.php","line":89,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 107: Psr17FactoryProvider::setFactories([SlimPsr17Factory::class]);","file":"tests/Factory/AppFactoryTest.php","line":107,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 114: * @runInSeparateProcess - Psr17FactoryProvider::setFactories breaks other tests","file":"tests/Factory/AppFactoryTest.php","line":114,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 121: Psr17FactoryProvider::setFactories([]);","file":"tests/Factory/AppFactoryTest.php","line":121,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 125: public function testSetPsr17FactoryProvider()","file":"tests/Factory/AppFactoryTest.php","line":125,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 127: $psr17FactoryProvider = new Psr17FactoryProvider();","file":"tests/Factory/AppFactoryTest.php","line":127,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 128: $psr17FactoryProvider::setFactories([SlimPsr17Factory::class]);","file":"tests/Factory/AppFactoryTest.php","line":128,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 130: AppFactory::setPsr17FactoryProvider($psr17FactoryProvider);","file":"tests/Factory/AppFactoryTest.php","line":130,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 137: * @runInSeparateProcess - Psr17FactoryProvider::setFactories breaks other tests","file":"tests/Factory/AppFactoryTest.php","line":137,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 142: Psr17FactoryProvider::setFactories([MockPsr17FactoryWithoutStreamFactory::class]);","file":"tests/Factory/AppFactoryTest.php","line":142,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryProviderTest.php\nLine 13: use Slim\\Factory\\Psr17\\Psr17FactoryProvider;","file":"tests/Factory/Psr17/Psr17FactoryProviderTest.php","line":13,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryProviderTest.php\nLine 16: class Psr17FactoryProviderTest extends TestCase","file":"tests/Factory/Psr17/Psr17FactoryProviderTest.php","line":16,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"BUG: The constructor is incorrectly type-hinted for the first argument; it accepts both an object and a string according to the docblock, but the instantiation logic seems to rely on a specific object being passed to invoke a dynamic method later. This mismatch can lead to runtime errors if the wrong type is provided.","query":"server request creator","file":"Slim/Factory/Psr17/ServerRequestCreator.php","symbol":"__construct","line":29,"lang":"en","candidates":[{"text":"File: README.md\nLine 20: ## Choose a PSR-7 Implementation & ServerRequest Creator","file":"README.md","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: README.md\nLine 44: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"README.md","line":44,"lexical":0.44999999999999996,"target":false},{"text":"File: README.md\nLine 47: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"README.md","line":47,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 20: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"Slim/App.php","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 189: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"Slim/App.php","line":189,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 190: $request = $serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/App.php","line":190,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/GuzzlePsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'GuzzleHttp\\Psr7\\ServerRequest';","file":"Slim/Factory/Psr17/GuzzlePsr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/GuzzlePsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/GuzzlePsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'HttpSoft\\ServerRequest\\ServerRequestCreator';","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'createFromGlobals';","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'Laminas\\Diactoros\\ServerRequestFactory';","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 7: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":7,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 13: protected static string $serverRequestCreatorClass = 'Nyholm\\Psr7Server\\ServerRequestCreator';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":13,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 14: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":14,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 19: public static function getServerRequestCreator(): ServerRequestCreatorInterface","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":19,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 27: $serverRequestCreator = new static::$serverRequestCreatorClass(","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":27,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 34: return new ServerRequestCreator($serverRequestCreator, static::$serverRequestCreatorMethod);","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":34,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 40: public static function isServerRequestCreatorAvailable(): bool","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":40,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 43: parent::isServerRequestCreatorAvailable()","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":43,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 17: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 28: protected static string $serverRequestCreatorClass;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":28,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 30: protected static string $serverRequestCreatorMethod;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 65: public static function getServerRequestCreator(): ServerRequestCreatorInterface","file":"Slim/Factory/Psr17/Psr17Factory.php","line":65,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 67: if (!static::isServerRequestCreatorAvailable()) {","file":"Slim/Factory/Psr17/Psr17Factory.php","line":67,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 68: throw new RuntimeException(get_called_class() . ' could not instantiate a server request creator.');","file":"Slim/Factory/Psr17/Psr17Factory.php","line":68,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 71: return new ServerRequestCreator(static::$serverRequestCreatorClass, static::$serverRequestCreatorMethod);","file":"Slim/Factory/Psr17/Psr17Factory.php","line":71,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 93: public static function isServerRequestCreatorAvailable(): bool","file":"Slim/Factory/Psr17/Psr17Factory.php","line":93,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 96: static::$serverRequestCreatorClass","file":"Slim/Factory/Psr17/Psr17Factory.php","line":96,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 97: && static::$serverRequestCreatorMethod","file":"Slim/Factory/Psr17/Psr17Factory.php","line":97,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 98: && class_exists(static::$serverRequestCreatorClass)","file":"Slim/Factory/Psr17/Psr17Factory.php","line":98,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/ServerRequestCreator.php\nLine 15: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/ServerRequestCreator.php","line":15,"lexical":0.65,"target":true}]} {"site":"project_search","repo":"slim","task":"특정 이름을 가진 라우트 객체를 가져오는 로직이 어떻게 구현되어 있는지 알려줘","query":"get named route","file":"Slim/Routing/RouteCollector.php","symbol":"getNamedRoute","line":195,"lang":"ko","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 65: * Get named route object","file":"Slim/Interfaces/RouteCollectorInterface.php","line":65,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 71: public function getNamedRoute(string $name): RouteInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":71,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteParserInterface.php\nLine 45: * Get fully qualified URL for named route","file":"Slim/Interfaces/RouteParserInterface.php","line":45,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 186: $route = $this->getNamedRoute($name);","file":"Slim/Routing/RouteCollector.php","line":186,"lexical":0.65,"target":true},{"text":"File: Slim/Routing/RouteCollector.php\nLine 195: public function getNamedRoute(string $name): RouteInterface","file":"Slim/Routing/RouteCollector.php","line":195,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteParser.php\nLine 42: $route = $this->routeCollector->getNamedRoute($routeName);","file":"Slim/Routing/RouteParser.php","line":42,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 1330: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseNamedArgs());","file":"tests/AppTest.php","line":1330,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 203: ->getNamedRoute('test')","file":"tests/Routing/RouteParserTest.php","line":203,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"미들웨어를 스택 구조로 쌓아서 실행 순서를 관리하는 로직을 찾고 있어요. 새로운 요청 처리를 체인 형태로 연결해주는 메서드가 어디에 정의되어 있나요?\n\n새로 추가된 미들웨어가 가장 먼저 실행되도록 구현된 부분을 확인하고 싶습니다.","query":"add middleware stack","file":"Slim/MiddlewareDispatcher.php","symbol":"addMiddleware","line":113,"lang":"ko","candidates":[{"text":"File: Slim/App.php\nLine 119: * Add the Slim built-in routing middleware to the app middleware stack","file":"Slim/App.php","line":119,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 136: * Add the Slim built-in error middleware to the app middleware stack","file":"Slim/App.php","line":136,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 164: * Add the Slim body parsing middleware to the app middleware stack","file":"Slim/App.php","line":164,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 20: * Add a new middleware to the stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":20,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 31: * Add a new middleware to the stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":31,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 77: * Add a new middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":77,"lexical":0.65,"target":true},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 107: * Add a new middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":107,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 247: * Add a (non-standard) callable middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":247,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 704: // Check that the routing middleware really has been added to the tip of the app middleware stack.","file":"tests/AppTest.php","line":704,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 737: // Check that the error middleware really has been added to the tip of the app middleware stack.","file":"tests/AppTest.php","line":737,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 767: // Check that the body parsing middleware really has been added to the tip of the app middleware stack.","file":"tests/AppTest.php","line":767,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"prüfe ob getallowedmethods die erwarteten methoden zurückgibt","query":"getAllowedMethods test","file":"tests/Routing/DispatcherTest.php","symbol":"testGetAllowedMethods","line":100,"lang":"de","candidates":[{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 40: public function testHttpNotAllowedExceptionGetAllowedMethods()","file":"tests/Exception/HttpExceptionTest.php","line":40,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 100: public function testGetAllowedMethods()","file":"tests/Routing/DispatcherTest.php","line":100,"lexical":0.6000000000000001,"target":true},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 100: public function testGetAllowedMethods($method, $uri, $callback, $allowedMethods)","file":"tests/Routing/FastRouteDispatcherTest.php","line":100,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 110: public function testGetAllowedMethodsReusesLastUriOnly()","file":"tests/Routing/FastRouteDispatcherTest.php","line":110,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"injecte les arguments de route dans la requête avant d'appeler le middleware","query":"route arguments middleware","file":"Slim/Handlers/Strategies/RequestResponse.php","symbol":"__invoke","line":28,"lang":"fr","candidates":[{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 93: * @deprecated 4.14.1 Use a middleware for custom route arguments now.","file":"Slim/Interfaces/RouteInterface.php","line":93,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 102: * @deprecated 4.14.1 Use a middleware for custom route arguments now.","file":"Slim/Interfaces/RouteInterface.php","line":102,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"ミドルウェアのディスパッチャを設定するメソッドを探して","query":"set middleware dispatcher","file":"Slim/Factory/AppFactory.php","symbol":"setMiddlewareDispatcher","line":208,"lang":"ja","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 208: public static function setMiddlewareDispatcher(MiddlewareDispatcherInterface $middlewareDispatcher): void","file":"Slim/Factory/AppFactory.php","line":208,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/AppTest.php\nLine 706: $this->setAccessible($middlewareDispatcherProperty);","file":"tests/AppTest.php","line":706,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 739: $this->setAccessible($middlewareDispatcherProperty);","file":"tests/AppTest.php","line":739,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 769: $this->setAccessible($middlewareDispatcherProperty);","file":"tests/AppTest.php","line":769,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 172: AppFactory::setMiddlewareDispatcher($middlewareDispatcherProphecy->reveal());","file":"tests/Factory/AppFactoryTest.php","line":172,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Investigate why the method used to attach middleware to a collection of routes doesn't seem to allow for chaining or is not returning the expected object type.","query":"add middleware group","file":"Slim/Interfaces/RouteGroupInterface.php","symbol":"add","line":26,"lang":"en","candidates":[{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 22: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":22,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 26: public function add($middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":26,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 29: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":29,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 31: public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":31,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 74: public function add($middleware): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":74,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 83: public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":83,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 866: public function testAddMiddlewareOnRouteGroup(): void","file":"tests/AppTest.php","line":866,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 948: public function testAddMiddlewareOnTwoRouteGroup(): void","file":"tests/AppTest.php","line":948,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 287: public function testAddMiddlewareOnGroup()","file":"tests/Routing/RouteTest.php","line":287,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"해당 미들웨어가 인터페이스를 구현하지 않았을 때 예외가 발생하는지 테스트해야 합니다. 컨테이너에서 해당 미들웨어를 가져오면 stdClass가 반환되도록 설정했습니다.","query":"test middleware interface exception","file":"tests/MiddlewareDispatcherTest.php","symbol":"testResolveThrowsExceptionWhenResolvableDoesNotImplementMiddlewareInterface","line":279,"lang":"ko","candidates":[{"text":"File: tests/AppTest.php\nLine 1068: public function testAddMiddlewareAsStringNotImplementingInterfaceThrowsException(): void","file":"tests/AppTest.php","line":1068,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 279: public function testResolveThrowsExceptionWhenResolvableDoesNotImplementMiddlewareInterface(): void","file":"tests/MiddlewareDispatcherTest.php","line":279,"lexical":0.65,"target":true},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 470: public function testThrowsExceptionForDeferredNonMiddlewareInterfaceClasses(): void","file":"tests/MiddlewareDispatcherTest.php","line":470,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 373: public function testAddMiddlewareAsStringNotImplementingInterfaceThrowsException()","file":"tests/Routing/RouteTest.php","line":373,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"trouve l'implémentation qui écrit les messages de log via error_log","query":"error_log log","file":"Slim/Logger.php","symbol":"Logger","line":19,"lang":"fr","candidates":[{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 279: * Wraps the error_log function so that this can be easily tested","file":"Slim/Handlers/ErrorHandler.php","line":279,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Logger.php\nLine 17: use function error_log;","file":"Slim/Logger.php","line":17,"lexical":0.6000000000000001,"target":true},{"text":"File: Slim/Logger.php\nLine 30: error_log((string) $message);","file":"Slim/Logger.php","line":30,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/AppTest.php\nLine 60: ini_set('error_log', tempnam(sys_get_temp_dir(), 'slim'));","file":"tests/AppTest.php","line":60,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"I'm trying to figure out how to change the way a path handler is executed. Where can I find the method that allows me to define a custom execution logic for a specific endpoint?","query":"set invocation strategy","file":"Slim/Interfaces/RouteInterface.php","symbol":"setInvocationStrategy","line":28,"lang":"en","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 30: * Set default route invocation strategy","file":"Slim/Interfaces/RouteCollectorInterface.php","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 32: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 26: * Set route invocation strategy","file":"Slim/Interfaces/RouteInterface.php","line":26,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 28: public function setInvocationStrategy(InvocationStrategyInterface $invocationStrategy): RouteInterface;","file":"Slim/Interfaces/RouteInterface.php","line":28,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 159: public function setInvocationStrategy(InvocationStrategyInterface $invocationStrategy): RouteInterface","file":"Slim/Routing/Route.php","line":159,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 120: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface","file":"Slim/Routing/RouteCollector.php","line":120,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1284: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1284,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1330: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseNamedArgs());","file":"tests/AppTest.php","line":1330,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1651: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1651,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 197: public function testSetInvocationStrategy()","file":"tests/Routing/RouteTest.php","line":197,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 214: $route->setInvocationStrategy($strategyProphecy->reveal());","file":"tests/Routing/RouteTest.php","line":214,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 672: $route->setInvocationStrategy($strategy);","file":"tests/Routing/RouteTest.php","line":672,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 709: $route->setInvocationStrategy($strategy);","file":"tests/Routing/RouteTest.php","line":709,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Wo wird die Methode aufgerufen, die eine Exception wirft, weil die Trennung des Streams noch nicht implementiert ist?","query":"throw Exception not implemented","file":"tests/Mocks/SmallChunksStream.php","symbol":"detach","line":45,"lang":"de","candidates":[{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 52: throw new Exception('not implemented');","file":"tests/Mocks/SlowPokeStream.php","line":52,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 62: throw new Exception('not implemented');","file":"tests/Mocks/SlowPokeStream.php","line":62,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 67: throw new Exception('not implemented');","file":"tests/Mocks/SlowPokeStream.php","line":67,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 100: throw new Exception('not implemented');","file":"tests/Mocks/SlowPokeStream.php","line":100,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 105: throw new Exception('not implemented');","file":"tests/Mocks/SlowPokeStream.php","line":105,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 110: throw new Exception('not implemented');","file":"tests/Mocks/SlowPokeStream.php","line":110,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 47: throw new Exception('not implemented');","file":"tests/Mocks/SmallChunksStream.php","line":47,"lexical":0.5,"target":true},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 57: throw new Exception('not implemented');","file":"tests/Mocks/SmallChunksStream.php","line":57,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 62: throw new Exception('not implemented');","file":"tests/Mocks/SmallChunksStream.php","line":62,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 95: throw new Exception('not implemented');","file":"tests/Mocks/SmallChunksStream.php","line":95,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 100: throw new Exception('not implemented');","file":"tests/Mocks/SmallChunksStream.php","line":100,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 105: throw new Exception('not implemented');","file":"tests/Mocks/SmallChunksStream.php","line":105,"lexical":0.5,"target":false}]} {"site":"project_search","repo":"slim","task":"Estoy intentando implementar una lógica personalizada para el manejo de respuestas de las rutas. ¿Podrías mostrarme cómo recuperar el identificador único que se asigna al recurso que coincide con la petición actual?","query":"return route identifier","file":"Slim/Routing/RoutingResults.php","symbol":"getRouteIdentifier","line":82,"lang":"es","candidates":[{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 72: return [self::FOUND, $routeIdentifier, []];","file":"Slim/Routing/FastRouteDispatcher.php","line":72,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 224: return $this->routes[$identifier];","file":"Slim/Routing/RouteCollector.php","line":224,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteResolver.php\nLine 54: return $this->routeCollector->lookupRoute($identifier);","file":"Slim/Routing/RouteResolver.php","line":54,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RoutingResults.php\nLine 84: return $this->routeIdentifier;","file":"Slim/Routing/RoutingResults.php","line":84,"lexical":0.44999999999999996,"target":true}]} {"site":"project_search","repo":"slim","task":"라우트 미들웨어 구현체 검색","query":"routing middleware","file":"Slim/Middleware/RoutingMiddleware.php","symbol":"RoutingMiddleware","line":25,"lang":"ko","candidates":[{"text":"File: CHANGELOG.md\nLine 322: - [2819](https://github.com/slimphp/Slim/pull/2819) Added description to addRoutingMiddleware()","file":"CHANGELOG.md","line":322,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 27: use Slim\\Middleware\\RoutingMiddleware;","file":"Slim/App.php","line":27,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 119: * Add the Slim built-in routing middleware to the app middleware stack","file":"Slim/App.php","line":119,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 121: * This method can be used to control middleware order and is not required for default routing operation.","file":"Slim/App.php","line":121,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 123: * @return RoutingMiddleware","file":"Slim/App.php","line":123,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 125: public function addRoutingMiddleware(): RoutingMiddleware","file":"Slim/App.php","line":125,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 127: $routingMiddleware = new RoutingMiddleware(","file":"Slim/App.php","line":127,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 131: $this->add($routingMiddleware);","file":"Slim/App.php","line":131,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 132: return $routingMiddleware;","file":"Slim/App.php","line":132,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 25: class RoutingMiddleware implements MiddlewareInterface","file":"Slim/Middleware/RoutingMiddleware.php","line":25,"lexical":0.6000000000000001,"target":true},{"text":"File: Slim/Routing/RouteRunner.php\nLine 21: use Slim\\Middleware\\RoutingMiddleware;","file":"Slim/Routing/RouteRunner.php","line":21,"lexical":0.5,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 51: * defined middleware stack. In the event that the user did not perform routing","file":"Slim/Routing/RouteRunner.php","line":51,"lexical":0.5,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 61: $routingMiddleware = new RoutingMiddleware($this->routeResolver, $this->routeParser);","file":"Slim/Routing/RouteRunner.php","line":61,"lexical":0.5,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 62: $request = $routingMiddleware->performRouting($request);","file":"Slim/Routing/RouteRunner.php","line":62,"lexical":0.5,"target":false},{"text":"File: UPGRADING.md\nLine 10: * [2398] - Error handling was extracted into its own middleware. Add `RoutingMiddleware` to your middleware pipeline to handle errors by default. See PR for more information.","file":"UPGRADING.md","line":10,"lexical":0.39999999999999997,"target":false},{"text":"File: UPGRADING.md\nLine 13: * [2288] - If you were using `determineRouteBeforeAppMiddleware`, you need to add the `Middleware\\RoutingMiddleware` middleware to your application just before your call `run()` to maintain the previous behaviour.","file":"UPGRADING.md","line":13,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 39: use Slim\\Middleware\\RoutingMiddleware;","file":"tests/AppTest.php","line":39,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 693: public function testAddRoutingMiddleware(): void","file":"tests/AppTest.php","line":693,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 701: // Add the routing middleware.","file":"tests/AppTest.php","line":701,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 702: $routingMiddleware = $app->addRoutingMiddleware();","file":"tests/AppTest.php","line":702,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 704: // Check that the routing middleware really has been added to the tip of the app middleware stack.","file":"tests/AppTest.php","line":704,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 719: $this->assertSame($routingMiddleware, $middlewareProperty->getValue($tip));","file":"tests/AppTest.php","line":719,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 720: $this->assertInstanceOf(RoutingMiddleware::class, $routingMiddleware);","file":"tests/AppTest.php","line":720,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 24: use Slim\\Middleware\\RoutingMiddleware;","file":"tests/Middleware/ErrorMiddlewareTest.php","line":24,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 42: $routingMiddleware = new RoutingMiddleware(","file":"tests/Middleware/ErrorMiddlewareTest.php","line":42,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 46: $app->add($routingMiddleware);","file":"tests/Middleware/ErrorMiddlewareTest.php","line":46,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 79: $routingMiddleware = new RoutingMiddleware(","file":"tests/Middleware/ErrorMiddlewareTest.php","line":79,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 83: $app->add($routingMiddleware);","file":"tests/Middleware/ErrorMiddlewareTest.php","line":83,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 23: use Slim\\Middleware\\RoutingMiddleware;","file":"tests/Middleware/RoutingMiddlewareTest.php","line":23,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 31: class RoutingMiddlewareTest extends TestCase","file":"tests/Middleware/RoutingMiddlewareTest.php","line":31,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 65: $routingMiddleware = new RoutingMiddleware($routeResolver, $routeParser);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":65,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 74: $middlewareDispatcher->addMiddleware($routingMiddleware);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":74,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"trouve la méthode pour instancier un nouvel objet de routage dans les tests","query":"create route test","file":"tests/Routing/RouteTest.php","symbol":"RouteTest","line":43,"lang":"fr","candidates":[{"text":"File: tests/AppTest.php\nLine 118: public function testCreatesRouteCollectorWhenNullWithInjectedContainer(): void","file":"tests/AppTest.php","line":118,"lexical":0.65,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 44: * Test cached routes file is created & that it holds our routes.","file":"tests/Routing/DispatcherTest.php","line":44,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 43: public function testCanCreateInstanceWithoutRoute(): void","file":"tests/Routing/RouteContextTest.php","line":43,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"ルーティングパターンのテストデータを提供している箇所を探して","query":"route patterns provider","file":"tests/AppTest.php","symbol":"routePatternsProvider","line":382,"lang":"ja","candidates":[{"text":"File: tests/AppTest.php\nLine 382: public static function routePatternsProvider(): array","file":"tests/AppTest.php","line":382,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/AppTest.php\nLine 395: * @dataProvider routePatternsProvider","file":"tests/AppTest.php","line":395,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 397: #[\\PHPUnit\\Framework\\Attributes\\DataProvider('routePatternsProvider')]","file":"tests/AppTest.php","line":397,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"O método que deveria resetar o ponteiro de leitura em fluxos de dados fragmentados está lançando uma exceção de erro por não ter sido implementado.","query":"throw Exception not implemented","file":"tests/Mocks/SmallChunksStream.php","symbol":"rewind","line":93,"lang":"pt","candidates":[{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 52: throw new Exception('not implemented');","file":"tests/Mocks/SlowPokeStream.php","line":52,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 62: throw new Exception('not implemented');","file":"tests/Mocks/SlowPokeStream.php","line":62,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 67: throw new Exception('not implemented');","file":"tests/Mocks/SlowPokeStream.php","line":67,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 100: throw new Exception('not implemented');","file":"tests/Mocks/SlowPokeStream.php","line":100,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 105: throw new Exception('not implemented');","file":"tests/Mocks/SlowPokeStream.php","line":105,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 110: throw new Exception('not implemented');","file":"tests/Mocks/SlowPokeStream.php","line":110,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 47: throw new Exception('not implemented');","file":"tests/Mocks/SmallChunksStream.php","line":47,"lexical":0.5,"target":true},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 57: throw new Exception('not implemented');","file":"tests/Mocks/SmallChunksStream.php","line":57,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 62: throw new Exception('not implemented');","file":"tests/Mocks/SmallChunksStream.php","line":62,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 95: throw new Exception('not implemented');","file":"tests/Mocks/SmallChunksStream.php","line":95,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 100: throw new Exception('not implemented');","file":"tests/Mocks/SmallChunksStream.php","line":100,"lexical":0.5,"target":false},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 105: throw new Exception('not implemented');","file":"tests/Mocks/SmallChunksStream.php","line":105,"lexical":0.5,"target":false}]} {"site":"project_search","repo":"slim","task":"미들웨어 스택에 커널을 설정하는 메서드 찾아줘","query":"seed middleware stack","file":"Slim/MiddlewareDispatcher.php","symbol":"seedMiddlewareStack","line":63,"lang":"ko","candidates":[{"text":"File: Slim/App.php\nLine 76: $middlewareDispatcher->seedMiddlewareStack($routeRunner);","file":"Slim/App.php","line":76,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 40: * Seed the middleware stack with the inner request handler","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":40,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 42: public function seedMiddlewareStack(RequestHandlerInterface $kernel): void;","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":42,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 55: $this->seedMiddlewareStack($kernel);","file":"Slim/MiddlewareDispatcher.php","line":55,"lexical":0.65,"target":true},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 63: public function seedMiddlewareStack(RequestHandlerInterface $kernel): void","file":"Slim/MiddlewareDispatcher.php","line":63,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 143: ->seedMiddlewareStack(Argument::any())","file":"tests/AppTest.php","line":143,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"미들웨어 인터페이스를 구현하지 않은 문자열을 추가할 때 예외가 발생하는지 확인하는 테스트 찾아줘","query":"middleware exception test","file":"tests/AppTest.php","symbol":"testAddMiddlewareAsStringNotImplementingInterfaceThrowsException","line":1068,"lang":"ko","candidates":[{"text":"File: tests/AppTest.php\nLine 1068: public function testAddMiddlewareAsStringNotImplementingInterfaceThrowsException(): void","file":"tests/AppTest.php","line":1068,"lexical":0.65,"target":true},{"text":"File: tests/CallableResolverTest.php\nLine 439: public function testMiddlewareMethodNotFoundThrowException(): void","file":"tests/CallableResolverTest.php","line":439,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 475: public function testMiddlewareFunctionNotFoundThrowException(): void","file":"tests/CallableResolverTest.php","line":475,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 508: public function testMiddlewareClassNotFoundThrowException(): void","file":"tests/CallableResolverTest.php","line":508,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 541: public function testMiddlewareCallableClassNotFoundThrowException(): void","file":"tests/CallableResolverTest.php","line":541,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 279: public function testResolveThrowsExceptionWhenResolvableDoesNotImplementMiddlewareInterface(): void","file":"tests/MiddlewareDispatcherTest.php","line":279,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 470: public function testThrowsExceptionForDeferredNonMiddlewareInterfaceClasses(): void","file":"tests/MiddlewareDispatcherTest.php","line":470,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 373: public function testAddMiddlewareAsStringNotImplementingInterfaceThrowsException()","file":"tests/Routing/RouteTest.php","line":373,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"我需要获取当前路由的唯一标识符。请提供一个方法来返回该路由的ID。","query":"route unique identifier","file":"Slim/Interfaces/RouteInterface.php","symbol":"getIdentifier","line":76,"lang":"zh","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 83: * Lookup a route via the route's unique identifier","file":"Slim/Interfaces/RouteCollectorInterface.php","line":83,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 74: * Get the route's unique identifier","file":"Slim/Interfaces/RouteInterface.php","line":74,"lexical":0.65,"target":true}]} {"site":"project_search","repo":"slim","task":"허용된 메소드 목록을 가져오는 함수 찾아줘","query":"allowed methods array","file":"Slim/Exception/HttpMethodNotAllowedException.php","symbol":"getAllowedMethods","line":38,"lang":"ko","candidates":[{"text":"File: Slim/Exception/HttpMethodNotAllowedException.php\nLine 20: protected array $allowedMethods = [];","file":"Slim/Exception/HttpMethodNotAllowedException.php","line":20,"lexical":0.65,"target":true},{"text":"File: Slim/Exception/HttpMethodNotAllowedException.php\nLine 38: public function getAllowedMethods(): array","file":"Slim/Exception/HttpMethodNotAllowedException.php","line":38,"lexical":0.65,"target":false},{"text":"File: Slim/Exception/HttpMethodNotAllowedException.php\nLine 46: public function setAllowedMethods(array $methods): self","file":"Slim/Exception/HttpMethodNotAllowedException.php","line":46,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 27: public function getAllowedMethods(string $uri): array;","file":"Slim/Interfaces/DispatcherInterface.php","line":27,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 73: public function getAllowedMethods(string $uri): array","file":"Slim/Routing/Dispatcher.php","line":73,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 25: private array $allowedMethods = [];","file":"Slim/Routing/FastRouteDispatcher.php","line":25,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 92: public function getAllowedMethods(string $uri): array","file":"Slim/Routing/FastRouteDispatcher.php","line":92,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 114: return $this->allowedMethods = array_keys($allowedMethods);","file":"Slim/Routing/FastRouteDispatcher.php","line":114,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RoutingResults.php\nLine 104: public function getAllowedMethods(): array","file":"Slim/Routing/RoutingResults.php","line":104,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"find where to register a new implementation for creating psr 17 message objects","query":"psr 17 factory","file":"Slim/Interfaces/Psr17FactoryProviderInterface.php","symbol":"addFactory","line":26,"lang":"en","candidates":[{"text":"File: CHANGELOG.md\nLine 167: - [3120: Add a new PSR-17 factory to Psr17FactoryProvider](https://github.com/slimphp/Slim/pull/3120) thanks to @solventt","file":"CHANGELOG.md","line":167,"lexical":0.44999999999999996,"target":false},{"text":"File: CHANGELOG.md\nLine 193: - [3106: Use PSR-17 factory from Guzzle/psr7 2.0](https://github.com/slimphp/Slim/pull/3106) thanks to @t0mmy742","file":"CHANGELOG.md","line":193,"lexical":0.44999999999999996,"target":false},{"text":"File: CHANGELOG.md\nLine 302: - [2912](https://github.com/slimphp/Slim/pull/2912) Add Laminas PSR17 Factory","file":"CHANGELOG.md","line":302,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 18: use Slim\\Factory\\Psr17\\Psr17Factory;","file":"Slim/Factory/AppFactory.php","line":18,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 19: use Slim\\Factory\\Psr17\\Psr17FactoryProvider;","file":"Slim/Factory/AppFactory.php","line":19,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 20: use Slim\\Factory\\Psr17\\SlimHttpPsr17Factory;","file":"Slim/Factory/AppFactory.php","line":20,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 23: use Slim\\Interfaces\\Psr17FactoryProviderInterface;","file":"Slim/Factory/AppFactory.php","line":23,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 30: protected static ?Psr17FactoryProviderInterface $psr17FactoryProvider = null;","file":"Slim/Factory/AppFactory.php","line":30,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 136: $psr17FactoryProvider = static::$psr17FactoryProvider ?? new Psr17FactoryProvider();","file":"Slim/Factory/AppFactory.php","line":136,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 138: /** @var Psr17Factory $psr17factory */","file":"Slim/Factory/AppFactory.php","line":138,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 139: foreach ($psr17FactoryProvider->getFactories() as $psr17factory) {","file":"Slim/Factory/AppFactory.php","line":139,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 140: if ($psr17factory::isResponseFactoryAvailable()) {","file":"Slim/Factory/AppFactory.php","line":140,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 141: $responseFactory = $psr17factory::getResponseFactory();","file":"Slim/Factory/AppFactory.php","line":141,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 143: if (static::$streamFactory || $psr17factory::isStreamFactoryAvailable()) {","file":"Slim/Factory/AppFactory.php","line":143,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 144: $streamFactory = static::$streamFactory ?? $psr17factory::getStreamFactory();","file":"Slim/Factory/AppFactory.php","line":144,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 153: \"Could not detect any PSR-17 ResponseFactory implementations. \" .","file":"Slim/Factory/AppFactory.php","line":153,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 165: && SlimHttpPsr17Factory::isResponseFactoryAvailable()","file":"Slim/Factory/AppFactory.php","line":165,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 167: return SlimHttpPsr17Factory::createDecoratedResponseFactory($responseFactory, $streamFactory);","file":"Slim/Factory/AppFactory.php","line":167,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 173: public static function setPsr17FactoryProvider(Psr17FactoryProviderInterface $psr17FactoryProvider): void","file":"Slim/Factory/AppFactory.php","line":173,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 175: static::$psr17FactoryProvider = $psr17FactoryProvider;","file":"Slim/Factory/AppFactory.php","line":175,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/GuzzlePsr17Factory.php\nLine 11: namespace Slim\\Factory\\Psr17;","file":"Slim/Factory/Psr17/GuzzlePsr17Factory.php","line":11,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/GuzzlePsr17Factory.php\nLine 13: class GuzzlePsr17Factory extends Psr17Factory","file":"Slim/Factory/Psr17/GuzzlePsr17Factory.php","line":13,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 11: namespace Slim\\Factory\\Psr17;","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":11,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 13: class HttpSoftPsr17Factory extends Psr17Factory","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":13,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 11: namespace Slim\\Factory\\Psr17;","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":11,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 13: class LaminasDiactorosPsr17Factory extends Psr17Factory","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":13,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 5: namespace Slim\\Factory\\Psr17;","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":5,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 9: class NyholmPsr17Factory extends Psr17Factory","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":9,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 11: protected static string $responseFactoryClass = 'Nyholm\\Psr7\\Factory\\Psr17Factory';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":11,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 12: protected static string $streamFactoryClass = 'Nyholm\\Psr7\\Factory\\Psr17Factory';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":12,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 22: * Nyholm Psr17Factory implements all factories in one unified","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":22,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 23: * factory which implements all of the PSR-17 factory interfaces","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":23,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Je cherche la méthode qui permet de simuler le passage d'une requête à travers un enchaînement de gestionnaires sans modifier le contenu. Peux-tu me montrer comment elle renvoie simplement la réponse du suivant ?","query":"middleware request handler","file":"tests/Mocks/MockMiddlewareSlimCallable.php","symbol":"custom","line":24,"lang":"fr","candidates":[{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 17: interface MiddlewareDispatcherInterface extends RequestHandlerInterface","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":17,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 40: * Seed the middleware stack with the inner request handler","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":40,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 42: public function seedMiddlewareStack(RequestHandlerInterface $kernel): void;","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":42,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 63: public function seedMiddlewareStack(RequestHandlerInterface $kernel): void","file":"Slim/MiddlewareDispatcher.php","line":63,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 116: $this->tip = new class ($middleware, $next) implements RequestHandlerInterface {","file":"Slim/MiddlewareDispatcher.php","line":116,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 121: public function __construct(MiddlewareInterface $middleware, RequestHandlerInterface $next)","file":"Slim/MiddlewareDispatcher.php","line":121,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 263: $this->tip = new class ($middleware, $next) implements RequestHandlerInterface {","file":"Slim/MiddlewareDispatcher.php","line":263,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 274: public function __construct(callable $middleware, RequestHandlerInterface $next)","file":"Slim/MiddlewareDispatcher.php","line":274,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 265: public function testMiddlewareResolutionToAPsrRequestHandlerClass(): void","file":"tests/CallableResolverTest.php","line":265,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 271: $resolver->resolveMiddleware(RequestHandlerTest::class);","file":"tests/CallableResolverTest.php","line":271,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 294: public function testMiddlewareObjPsrRequestHandlerClass(): void","file":"tests/CallableResolverTest.php","line":294,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 333: public function testMiddlewareObjPsrRequestHandlerClassInContainer(): void","file":"tests/CallableResolverTest.php","line":333,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 344: $resolver->resolveMiddleware('a_requesthandler');","file":"tests/CallableResolverTest.php","line":344,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 352: $callableMiddleware = $resolver->resolveMiddleware(RequestHandlerTest::class . ':custom');","file":"tests/CallableResolverTest.php","line":352,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 363: $this->assertInstanceOf(RequestHandlerTest::class, $callableMiddleware[0]);","file":"tests/CallableResolverTest.php","line":363,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 393: $callableRouteMiddleware($request, $this->createMock(RequestHandlerInterface::class));","file":"tests/CallableResolverTest.php","line":393,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 158: $middleware->process($request, $requestHandler);","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":158,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 174: $middleware->process($request, $requestHandler);","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":174,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 191: $middleware->process($request, $this->createRequestHandler());","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":191,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 152: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":152,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 185: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":185,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 223: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":223,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 301: $middleware->setDefaultErrorHandler((function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":301,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 24: $middleware = (function (Request $request, RequestHandler $handler) use ($responseFactory) {","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":24,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 46: $middleware = (function (Request $request, RequestHandler $handler) use ($responseFactory) {","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":46,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 69: $middleware = (function (Request $request, RequestHandler $handler) use ($responseFactory) {","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":69,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 93: $middleware = (function (Request $request, RequestHandler $handler) use ($responseFactory) {","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":93,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 114: $middleware = (function (Request $request, RequestHandler $handler) use ($responseFactory) {","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":114,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 56: $middleware = function ($request, $handler) use ($responseFactory) {","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":56,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 81: $middleware = function ($request, $handler) use ($responseFactory) {","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":81,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 106: $middleware = (function ($request, $handler) {","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":106,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 90: $middlewareDispatcher = $this->createMiddlewareDispatcher($requestHandler, null);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":90,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"retornar o método http usado na requisição","query":"get method","file":"Slim/Routing/RoutingResults.php","symbol":"getMethod","line":67,"lang":"pt","candidates":[{"text":"File: CHANGELOG.md\nLine 18: - Cache only the last getAllowedMethods() lookup (#3468)","file":"CHANGELOG.md","line":18,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 218: $method = strtoupper($request->getMethod());","file":"Slim/App.php","line":218,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Exception/HttpException.php\nLine 19: * @method int getCode()","file":"Slim/Exception/HttpException.php","line":19,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Exception/HttpMethodNotAllowedException.php\nLine 38: public function getAllowedMethods(): array","file":"Slim/Exception/HttpMethodNotAllowedException.php","line":38,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 128: $this->method = $request->getMethod();","file":"Slim/Handlers/ErrorHandler.php","line":128,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 304: $allowedMethods = implode(', ', $this->exception->getAllowedMethods());","file":"Slim/Handlers/ErrorHandler.php","line":304,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 18: * Get routing results for a given request method and uri","file":"Slim/Interfaces/DispatcherInterface.php","line":18,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 23: * Get allowed methods for a given uri","file":"Slim/Interfaces/DispatcherInterface.php","line":23,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 27: public function getAllowedMethods(string $uri): array;","file":"Slim/Interfaces/DispatcherInterface.php","line":27,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 31: * Get route methods","file":"Slim/Interfaces/RouteInterface.php","line":31,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 35: public function getMethods(): array;","file":"Slim/Interfaces/RouteInterface.php","line":35,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Middleware/MethodOverrideMiddleware.php\nLine 26: $methodHeader = $request->getHeaderLine('X-Http-Method-Override');","file":"Slim/Middleware/MethodOverrideMiddleware.php","line":26,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Middleware/MethodOverrideMiddleware.php\nLine 30: } elseif (strtoupper($request->getMethod()) === 'POST') {","file":"Slim/Middleware/MethodOverrideMiddleware.php","line":30,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 80: $exception->setAllowedMethods($routingResults->getAllowedMethods());","file":"Slim/Middleware/RoutingMiddleware.php","line":80,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 95: $request->getMethod()","file":"Slim/Middleware/RoutingMiddleware.php","line":95,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 34: $r->addRoute($route->getMethods(), $basePath . $route->getPattern(), $route->getIdentifier());","file":"Slim/Routing/Dispatcher.php","line":34,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 73: public function getAllowedMethods(string $uri): array","file":"Slim/Routing/Dispatcher.php","line":73,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 76: return $dispatcher->getAllowedMethods($uri);","file":"Slim/Routing/Dispatcher.php","line":76,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 54: if (!empty($this->getAllowedMethods($uri))) {","file":"Slim/Routing/FastRouteDispatcher.php","line":54,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 92: public function getAllowedMethods(string $uri): array","file":"Slim/Routing/FastRouteDispatcher.php","line":92,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 168: public function getMethods(): array","file":"Slim/Routing/Route.php","line":168,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/RoutingResults.php\nLine 67: public function getMethod(): string","file":"Slim/Routing/RoutingResults.php","line":67,"lexical":0.39999999999999997,"target":true},{"text":"File: Slim/Routing/RoutingResults.php\nLine 104: public function getAllowedMethods(): array","file":"Slim/Routing/RoutingResults.php","line":104,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/RoutingResults.php\nLine 106: return $this->dispatcher->getAllowedMethods($this->uri);","file":"Slim/Routing/RoutingResults.php","line":106,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 74: * Getter methods","file":"tests/AppTest.php","line":74,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 175: public function testGetPostPutPatchDeleteOptionsMethods(string $method): void","file":"tests/AppTest.php","line":175,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 190: $requestProphecy->getMethod()->willReturn($method);","file":"tests/AppTest.php","line":190,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 230: $requestProphecy->getMethod()->willReturn($method);","file":"tests/AppTest.php","line":230,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 282: $requestProphecy->getMethod()->willReturn($method);","file":"tests/AppTest.php","line":282,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 326: $requestProphecy->getMethod()->willReturn('GET');","file":"tests/AppTest.php","line":326,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 365: $requestProphecy->getMethod()->willReturn('GET');","file":"tests/AppTest.php","line":365,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 557: * The very tail of the sequence uses the $app->get() method","file":"tests/AppTest.php","line":557,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"find the method that retrieves a list of permitted http verbs for a specific path","query":"get allowed methods","file":"Slim/Interfaces/DispatcherInterface.php","symbol":"getAllowedMethods","line":27,"lang":"en","candidates":[{"text":"File: CHANGELOG.md\nLine 18: - Cache only the last getAllowedMethods() lookup (#3468)","file":"CHANGELOG.md","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Exception/HttpMethodNotAllowedException.php\nLine 38: public function getAllowedMethods(): array","file":"Slim/Exception/HttpMethodNotAllowedException.php","line":38,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 304: $allowedMethods = implode(', ', $this->exception->getAllowedMethods());","file":"Slim/Handlers/ErrorHandler.php","line":304,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 23: * Get allowed methods for a given uri","file":"Slim/Interfaces/DispatcherInterface.php","line":23,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 27: public function getAllowedMethods(string $uri): array;","file":"Slim/Interfaces/DispatcherInterface.php","line":27,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 80: $exception->setAllowedMethods($routingResults->getAllowedMethods());","file":"Slim/Middleware/RoutingMiddleware.php","line":80,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 73: public function getAllowedMethods(string $uri): array","file":"Slim/Routing/Dispatcher.php","line":73,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 76: return $dispatcher->getAllowedMethods($uri);","file":"Slim/Routing/Dispatcher.php","line":76,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 54: if (!empty($this->getAllowedMethods($uri))) {","file":"Slim/Routing/FastRouteDispatcher.php","line":54,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 92: public function getAllowedMethods(string $uri): array","file":"Slim/Routing/FastRouteDispatcher.php","line":92,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RoutingResults.php\nLine 104: public function getAllowedMethods(): array","file":"Slim/Routing/RoutingResults.php","line":104,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RoutingResults.php\nLine 106: return $this->dispatcher->getAllowedMethods($this->uri);","file":"Slim/Routing/RoutingResults.php","line":106,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 40: public function testHttpNotAllowedExceptionGetAllowedMethods()","file":"tests/Exception/HttpExceptionTest.php","line":40,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 45: $exception->setAllowedMethods(['GET']);","file":"tests/Exception/HttpExceptionTest.php","line":45,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 46: $this->assertSame(['GET'], $exception->getAllowedMethods());","file":"tests/Exception/HttpExceptionTest.php","line":46,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 50: $this->assertSame([], $exception->getAllowedMethods());","file":"tests/Exception/HttpExceptionTest.php","line":50,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 100: public function testGetAllowedMethods()","file":"tests/Routing/DispatcherTest.php","line":100,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 113: $results = $dispatcher->getAllowedMethods('/');","file":"tests/Routing/DispatcherTest.php","line":113,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 140: $this->assertSame($methods, $results->getAllowedMethods());","file":"tests/Routing/DispatcherTest.php","line":140,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 100: public function testGetAllowedMethods($method, $uri, $callback, $allowedMethods)","file":"tests/Routing/FastRouteDispatcherTest.php","line":100,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 105: $results = $dispatcher->getAllowedMethods($uri);","file":"tests/Routing/FastRouteDispatcherTest.php","line":105,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 110: public function testGetAllowedMethodsReusesLastUriOnly()","file":"tests/Routing/FastRouteDispatcherTest.php","line":110,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 118: $this->assertSame(['GET'], $dispatcher->getAllowedMethods('/user'));","file":"tests/Routing/FastRouteDispatcherTest.php","line":118,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 119: $this->assertSame(['POST'], $dispatcher->getAllowedMethods('/post'));","file":"tests/Routing/FastRouteDispatcherTest.php","line":119,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 122: $this->assertSame(['GET'], $dispatcher->getAllowedMethods('/user'));","file":"tests/Routing/FastRouteDispatcherTest.php","line":122,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 571: $allowedMethods = ['GET'];","file":"tests/Routing/FastRouteDispatcherTest.php","line":571,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 586: $allowedMethods = ['GET', 'POST', 'PUT'];","file":"tests/Routing/FastRouteDispatcherTest.php","line":586,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 601: $allowedMethods = ['GET', 'POST', 'PUT', 'PATCH'];","file":"tests/Routing/FastRouteDispatcherTest.php","line":601,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Estoy revisando cómo se procesan las peticiones entrantes para ver si puedo añadir un nuevo formato. ¿Dónde se gestiona la conversión automática del contenido del cuerpo de la solicitud según el tipo de medios?","query":"parse body middleware","file":"Slim/Middleware/BodyParsingMiddleware.php","symbol":"BodyParsingMiddleware","line":36,"lang":"es","candidates":[{"text":"File: Slim/App.php\nLine 170: public function addBodyParsingMiddleware(array $bodyParsers = []): BodyParsingMiddleware","file":"Slim/App.php","line":170,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 172: $bodyParsingMiddleware = new BodyParsingMiddleware($bodyParsers);","file":"Slim/App.php","line":172,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 172: $middleware = new BodyParsingMiddleware($parsers);","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":172,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 188: $middleware = new BodyParsingMiddleware($parsers);","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":188,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 201: $this->assertFalse($middleware->hasBodyParser('text/foo'));","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":201,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 203: $middleware->registerBodyParser('text/foo', $parser);","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":203,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 204: $this->assertTrue($middleware->hasBodyParser('text/foo'));","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":204,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 206: $this->assertSame($parser, $middleware->getBodyParser('text/foo'));","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":206,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 214: $middleware->getBodyParser('text/foo');","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":214,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"我想看看有没有地方可以手动把路由收集器注入到应用程序实例里。帮我找一下那个用来设置路由收集器的静态方法。","query":"set route collector","file":"Slim/Factory/AppFactory.php","symbol":"setRouteCollector","line":198,"lang":"zh","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 198: public static function setRouteCollector(RouteCollectorInterface $routeCollector): void","file":"Slim/Factory/AppFactory.php","line":198,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 32: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":32,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 45: public function setCacheFile(string $cacheFile): RouteCollectorInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":45,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 55: public function setBasePath(string $basePath): RouteCollectorInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":55,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 40: * Set the RouteCollectorProxy's base path","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":40,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 43: public function setBasePath(string $basePath): RouteCollectorProxyInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":43,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 120: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface","file":"Slim/Routing/RouteCollector.php","line":120,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 137: public function setCacheFile(string $cacheFile): RouteCollectorInterface","file":"Slim/Routing/RouteCollector.php","line":137,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 166: public function setBasePath(string $basePath): RouteCollectorInterface","file":"Slim/Routing/RouteCollector.php","line":166,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 99: public function setBasePath(string $basePath): RouteCollectorProxyInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":99,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 101: $this->routeCollector->setBasePath($basePath);","file":"Slim/Routing/RouteCollectorProxy.php","line":101,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 1284: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1284,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1330: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseNamedArgs());","file":"tests/AppTest.php","line":1330,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1651: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1651,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 170: AppFactory::setRouteCollector($routeCollectorProphecy->reveal());","file":"tests/Factory/AppFactoryTest.php","line":170,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 58: $routeCollector->setCacheFile($cacheFile);","file":"tests/Routing/DispatcherTest.php","line":58,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 66: $routeCollector2->setCacheFile($cacheFile);","file":"tests/Routing/DispatcherTest.php","line":66,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 112: $routeCollectorProxy->setBasePath($basePath);","file":"tests/Routing/RouteCollectorProxyTest.php","line":112,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 117: $routeCollectorProxy->setBasePath('/new/base/path');","file":"tests/Routing/RouteCollectorProxyTest.php","line":117,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 51: $routeCollector->setBasePath($basePath);","file":"tests/Routing/RouteCollectorTest.php","line":51,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 115: $routeCollector->setBasePath('/base/path');","file":"tests/Routing/RouteCollectorTest.php","line":115,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 166: $routeCollector->setCacheFile($this->cacheFile);","file":"tests/Routing/RouteCollectorTest.php","line":166,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 186: $routeCollector->setCacheFile($cacheFile);","file":"tests/Routing/RouteCollectorTest.php","line":186,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 105: $routeCollector->setBasePath('/app');","file":"tests/Routing/RouteParserTest.php","line":105,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 134: $routeCollector->setBasePath('/app');","file":"tests/Routing/RouteParserTest.php","line":134,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"mostra como agrupar rotas com um padrão e um callback","query":"route group pattern","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","symbol":"group","line":118,"lang":"pt","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 93: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":93,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 118: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":118,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 40: * Get the RouteGroup's pattern","file":"Slim/Interfaces/RouteGroupInterface.php","line":40,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 230: public function group(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollector.php","line":230,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 232: $routeGroup = $this->createGroup($pattern, $callable);","file":"Slim/Routing/RouteCollector.php","line":232,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 244: protected function createGroup(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollector.php","line":244,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 247: return new RouteGroup($pattern, $callable, $this->callableResolver, $routeCollectorProxy);","file":"Slim/Routing/RouteCollector.php","line":247,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 175: public function group(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":175,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 179: return $this->routeCollector->group($pattern, $callable);","file":"Slim/Routing/RouteCollectorProxy.php","line":179,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 577: public function testRouteGroupPattern(): void","file":"tests/AppTest.php","line":577,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 456: $routeCollectorProxy->group($pattern, $callable);","file":"tests/Routing/RouteCollectorProxyTest.php","line":456,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Onde está o teste que verifica o comportamento de limpeza das fábricas de mensagens PSR-17 e que precisa rodar em um processo separado para não afetar os outros?","query":"Psr17 setFactories","file":"tests/Factory/Psr17/Psr17FactoryProviderTest.php","symbol":"testGetSetFactories","line":21,"lang":"pt","candidates":[{"text":"File: tests/Factory/AppFactoryTest.php\nLine 72: Psr17FactoryProvider::setFactories([$psr17factory]);","file":"tests/Factory/AppFactoryTest.php","line":72,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 89: Psr17FactoryProvider::setFactories([SlimPsr17Factory::class]);","file":"tests/Factory/AppFactoryTest.php","line":89,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 107: Psr17FactoryProvider::setFactories([SlimPsr17Factory::class]);","file":"tests/Factory/AppFactoryTest.php","line":107,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 114: * @runInSeparateProcess - Psr17FactoryProvider::setFactories breaks other tests","file":"tests/Factory/AppFactoryTest.php","line":114,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 121: Psr17FactoryProvider::setFactories([]);","file":"tests/Factory/AppFactoryTest.php","line":121,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 128: $psr17FactoryProvider::setFactories([SlimPsr17Factory::class]);","file":"tests/Factory/AppFactoryTest.php","line":128,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 137: * @runInSeparateProcess - Psr17FactoryProvider::setFactories breaks other tests","file":"tests/Factory/AppFactoryTest.php","line":137,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 142: Psr17FactoryProvider::setFactories([MockPsr17FactoryWithoutStreamFactory::class]);","file":"tests/Factory/AppFactoryTest.php","line":142,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryProviderTest.php\nLine 19: * @runInSeparateProcess - Psr17FactoryProvider::setFactories breaks other tests","file":"tests/Factory/Psr17/Psr17FactoryProviderTest.php","line":19,"lexical":0.6000000000000001,"target":true},{"text":"File: tests/Factory/Psr17/Psr17FactoryProviderTest.php\nLine 24: Psr17FactoryProvider::setFactories([]);","file":"tests/Factory/Psr17/Psr17FactoryProviderTest.php","line":24,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryProviderTest.php\nLine 31: * @runInSeparateProcess - Psr17FactoryProvider::setFactories breaks other tests","file":"tests/Factory/Psr17/Psr17FactoryProviderTest.php","line":31,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryProviderTest.php\nLine 36: Psr17FactoryProvider::setFactories(['Factory 1']);","file":"tests/Factory/Psr17/Psr17FactoryProviderTest.php","line":36,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 53: Psr17FactoryProvider::setFactories([$psr17factory]);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":53,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 64: Psr17FactoryProvider::setFactories([SlimPsr17Factory::class]);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":64,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 74: * @runInSeparateProcess - Psr17FactoryProvider::setFactories breaks other tests","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":74,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 81: Psr17FactoryProvider::setFactories([]);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":81,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 88: $psr17FactoryProvider::setFactories([SlimPsr17Factory::class]);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":88,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"O método que processa a requisição HTTP atual, passando-a para a pilha de middlewares e retornando a resposta final.","query":"handle middleware process","file":"Slim/MiddlewareDispatcher.php","symbol":"handle","line":127,"lang":"pt","candidates":[{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 158: $middleware->process($request, $requestHandler);","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":158,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 174: $middleware->process($request, $requestHandler);","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":174,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 191: $middleware->process($request, $this->createRequestHandler());","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":191,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"这个构造函数里怎么初始化读取量的?","query":"amountToRead SIZE","file":"tests/Mocks/SlowPokeStream.php","symbol":"__construct","line":32,"lang":"zh","candidates":[{"text":"File: Slim/ResponseEmitter.php\nLine 96: $amountToRead = $body->getSize();","file":"Slim/ResponseEmitter.php","line":96,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/ResponseEmitter.php\nLine 101: $length = min($this->responseChunkSize, $amountToRead);","file":"Slim/ResponseEmitter.php","line":101,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 34: $this->amountToRead = self::SIZE;","file":"tests/Mocks/SlowPokeStream.php","line":34,"lexical":0.39999999999999997,"target":true},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 93: $size = min($this->amountToRead, self::CHUNK_SIZE, $length);","file":"tests/Mocks/SlowPokeStream.php","line":93,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 94: $this->amountToRead -= $size;","file":"tests/Mocks/SlowPokeStream.php","line":94,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 33: $this->amountToRead = self::SIZE;","file":"tests/Mocks/SmallChunksStream.php","line":33,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 87: $size = min($this->amountToRead, self::CHUNK_SIZE, $length);","file":"tests/Mocks/SmallChunksStream.php","line":87,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 88: $this->amountToRead -= $size;","file":"tests/Mocks/SmallChunksStream.php","line":88,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"查找处理请求异常并返回响应的拦截方法定义","query":"error handler interface","file":"Slim/Interfaces/ErrorHandlerInterface.php","symbol":"__invoke","line":19,"lang":"zh","candidates":[{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 25: use Slim\\Interfaces\\ErrorHandlerInterface;","file":"Slim/Handlers/ErrorHandler.php","line":25,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 48: class ErrorHandler implements ErrorHandlerInterface","file":"Slim/Handlers/ErrorHandler.php","line":48,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/ErrorHandlerInterface.php\nLine 17: interface ErrorHandlerInterface","file":"Slim/Interfaces/ErrorHandlerInterface.php","line":17,"lexical":0.65,"target":true},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 22: use Slim\\Interfaces\\ErrorHandlerInterface;","file":"Slim/Middleware/ErrorMiddleware.php","line":22,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 44: * @var ErrorHandlerInterface[]|callable[]|string[]","file":"Slim/Middleware/ErrorMiddleware.php","line":44,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 49: * @var ErrorHandlerInterface[]|callable[]|string[]","file":"Slim/Middleware/ErrorMiddleware.php","line":49,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 54: * @var ErrorHandlerInterface|callable|string|null","file":"Slim/Middleware/ErrorMiddleware.php","line":54,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 143: * The callable signature MUST match the ErrorHandlerInterface","file":"Slim/Middleware/ErrorMiddleware.php","line":143,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 146: * @see ErrorHandlerInterface","file":"Slim/Middleware/ErrorMiddleware.php","line":146,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 168: * The callable signature MUST match the ErrorHandlerInterface","file":"Slim/Middleware/ErrorMiddleware.php","line":168,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 176: * @param string|callable|ErrorHandlerInterface $handler","file":"Slim/Middleware/ErrorMiddleware.php","line":176,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 178: * @see ErrorHandlerInterface","file":"Slim/Middleware/ErrorMiddleware.php","line":178,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 205: * @param string|callable|ErrorHandlerInterface $handler","file":"Slim/Middleware/ErrorMiddleware.php","line":205,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 152: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":152,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 185: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":185,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 223: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":223,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 301: $middleware->setDefaultErrorHandler((function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":301,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"registrar un manejador de errores para uno o varios tipos con soporte para subclases","query":"set error handler","file":"Slim/Middleware/ErrorMiddleware.php","symbol":"setErrorHandler","line":190,"lang":"es","candidates":[{"text":"File: CHANGELOG.md\nLine 349: - [2801](https://github.com/slimphp/Slim/pull/2801) Add `setLogErrorRenderer()` method to `ErrorHandler`","file":"CHANGELOG.md","line":349,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 272: $error .= 'set \"displayErrorDetails\" to true in the ErrorHandler constructor.';","file":"Slim/Handlers/ErrorHandler.php","line":272,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 141: * Set callable as the default Slim application error handler.","file":"Slim/Middleware/ErrorMiddleware.php","line":141,"lexical":0.65,"target":true},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 158: public function setDefaultErrorHandler($handler): self","file":"Slim/Middleware/ErrorMiddleware.php","line":158,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 190: public function setErrorHandler($typeOrTypes, $handler, bool $handleSubclasses = false): self","file":"Slim/Middleware/ErrorMiddleware.php","line":190,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 204: * Used internally to avoid code repetition when passing multiple exceptions to setErrorHandler().","file":"Slim/Middleware/ErrorMiddleware.php","line":204,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 237: $reflectionProperty->setValue($handler, $newErrorRenderers);","file":"tests/Handlers/ErrorHandlerTest.php","line":237,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 269: $reflectionProperty->setValue($handler, $errorRenderers);","file":"tests/Handlers/ErrorHandlerTest.php","line":269,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 300: $reflectionProperty->setValue($handler, $errorRenderers);","file":"tests/Handlers/ErrorHandlerTest.php","line":300,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 350: $handler->setDefaultErrorRenderer('text/plain', PlainTextErrorRenderer::class);","file":"tests/Handlers/ErrorHandlerTest.php","line":350,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 398: 'set \"displayErrorDetails\" to true in the ErrorHandler constructor',","file":"tests/Handlers/ErrorHandlerTest.php","line":398,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 425: 'set \"displayErrorDetails\" to true in the ErrorHandler constructor',","file":"tests/Handlers/ErrorHandlerTest.php","line":425,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 448: $handler->setLogErrorRenderer(HtmlErrorRenderer::class);","file":"tests/Handlers/ErrorHandlerTest.php","line":448,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 454: 'set \"displayErrorDetails\" to true in the ErrorHandler constructor',","file":"tests/Handlers/ErrorHandlerTest.php","line":454,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 501: $handler->setLogErrorRenderer('logErrorRenderer');","file":"tests/Handlers/ErrorHandlerTest.php","line":501,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 505: $displayErrorDetailsProperty->setValue($handler, true);","file":"tests/Handlers/ErrorHandlerTest.php","line":505,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 35: public function testSetErrorHandler()","file":"tests/Middleware/ErrorMiddlewareTest.php","line":35,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 63: $errorMiddleware->setErrorHandler($exception, $handler);","file":"tests/Middleware/ErrorMiddlewareTest.php","line":63,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 72: public function testSetDefaultErrorHandler()","file":"tests/Middleware/ErrorMiddlewareTest.php","line":72,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 99: $errorMiddleware->setDefaultErrorHandler($handler);","file":"tests/Middleware/ErrorMiddlewareTest.php","line":99,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 108: public function testSetDefaultErrorHandlerThrowsException()","file":"tests/Middleware/ErrorMiddlewareTest.php","line":108,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 125: $errorMiddleware->setDefaultErrorHandler('Uncallable');","file":"tests/Middleware/ErrorMiddlewareTest.php","line":125,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 152: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":152,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 157: $middleware->setDefaultErrorHandler((function () {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":157,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 185: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":185,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 191: $middleware->setDefaultErrorHandler((function () {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":191,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 223: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":223,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 229: $middleware->setDefaultErrorHandler((function () {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":229,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 267: $middleware->setErrorHandler([LogicException::class, InvalidArgumentException::class], $handler->bindTo($this));","file":"tests/Middleware/ErrorMiddlewareTest.php","line":267,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 269: $middleware->setDefaultErrorHandler((function () {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":269,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 301: $middleware->setDefaultErrorHandler((function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":301,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"RouteCollectorProxy에서 getRouteCollector 메서드가 생성자 주입받은 인스턴스를 정확하게 반환하는지 확인하는 테스트를 작성해 주세요.","query":"getRouteCollector instance","file":"tests/Routing/RouteCollectorProxyTest.php","symbol":"testGetRouteCollectorReturnsInjectedInstance","line":78,"lang":"ko","candidates":[{"text":"File: tests/AppTest.php\nLine 105: public function testGetRouteCollectorReturnsInjectedInstance(): void","file":"tests/AppTest.php","line":105,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 78: public function testGetRouteCollectorReturnsInjectedInstance()","file":"tests/Routing/RouteCollectorProxyTest.php","line":78,"lexical":0.39999999999999997,"target":true}]} {"site":"project_search","repo":"slim","task":"Estoy intentando entender cómo se envuelve automáticamente el creador de peticiones para añadir funcionalidades de Slim. ¿En qué parte se comprueba si está habilitada la detección automática de decoradores?","query":"server request decorator","file":"Slim/Factory/ServerRequestCreatorFactory.php","symbol":"attemptServerRequestCreatorDecoration","line":61,"lang":"es","candidates":[{"text":"File: README.md\nLine 39: The `ServerRequest` and `Response` object decorators are automatically detected and applied by the internal factories. If you have installed Slim-Http and wish to turn off automatic object decoration then you can use the following statements:","file":"README.md","line":39,"lexical":0.44999999999999996,"target":false},{"text":"File: README.md\nLine 47: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"README.md","line":47,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 23: protected static string $serverRequestDecoratorClass = 'Slim\\Http\\ServerRequest';","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":23,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 35: if (!static::isServerRequestDecoratorAvailable()) {","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":35,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 36: throw new RuntimeException('The Slim-Http ServerRequest decorator is not available.');","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":36,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 43: $decoratedServerRequest = new static::$serverRequestDecoratorClass($request)","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":43,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 52: public static function isServerRequestDecoratorAvailable(): bool","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":52,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 54: return class_exists(static::$serverRequestDecoratorClass);","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":54,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 66: && SlimHttpServerRequestCreator::isServerRequestDecoratorAvailable()","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":66,"lexical":0.65,"target":true},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 35: $serverRequestDecoratorClassProperty = new ReflectionProperty(","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":35,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 37: 'serverRequestDecoratorClass'","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":37,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 39: $this->setAccessible($serverRequestDecoratorClassProperty);","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":39,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 40: $serverRequestDecoratorClassProperty->setValue($slimHttpServerRequestCreator, ServerRequest::class);","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":40,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 62: $this->expectExceptionMessage('The Slim-Http ServerRequest decorator is not available.');","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":62,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 68: $serverRequestDecoratorClassProperty = new ReflectionProperty(","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":68,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 70: 'serverRequestDecoratorClass'","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":70,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 72: $this->setAccessible($serverRequestDecoratorClassProperty);","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":72,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 73: $serverRequestDecoratorClassProperty->setValue($slimHttpServerRequestCreator, '');","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":73,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 96: $reflectionClass->setStaticPropertyValue('serverRequestDecoratorClass', stdClass::class);","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":96,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 54: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":54,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 65: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(true);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":65,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 91: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":91,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 102: public function testSetServerRequestCreatorWithoutDecorators()","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":102,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 104: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":104,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 124: public function testSetServerRequestCreatorWithDecorators()","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":124,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 126: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(true);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":126,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Como renderizar uma exceção como string com base nas configurações de exibição de detalhes?","query":"exception error renderer","file":"Slim/Interfaces/ErrorRendererInterface.php","symbol":"ErrorRendererInterface","line":15,"lang":"pt","candidates":[{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 268: $error = $renderer($this->exception, $this->logErrorDetails);","file":"Slim/Handlers/ErrorHandler.php","line":268,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 309: $body = call_user_func($renderer, $this->exception, $this->displayErrorDetails);","file":"Slim/Handlers/ErrorHandler.php","line":309,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 77: public function testHTMLErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":77,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 101: public function testHTMLErrorRendererEscapesHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":101,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 205: public function testJSONErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":205,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 244: public function testXMLErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":244,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 307: public function testPlainTextErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":307,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"¿Cómo se pasan los parámetros de la ruta al callback de un endpoint?","query":"route arguments callback","file":"Slim/Handlers/Strategies/RequestResponse.php","symbol":"RequestResponse","line":20,"lang":"es","candidates":[{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 18: * Default route callback strategy with route parameters as an array of arguments.","file":"Slim/Handlers/Strategies/RequestResponse.php","line":18,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 20: * Route callback strategy with route parameters as individual arguments.","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 19: * Route callback strategy with route parameters as individual arguments.","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":19,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"ルーティングの設定で、コールバックを解決するためのインターフェースを取得する方法を確認したいです。このメソッドが何を返しているのか教えてください。","query":"get callable resolver","file":"Slim/Routing/Route.php","symbol":"getCallableResolver","line":143,"lang":"ja","candidates":[{"text":"File: Slim/App.php\nLine 152: $this->getCallableResolver(),","file":"Slim/App.php","line":152,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 88: $callableResolverFromContainer = $container->get(CallableResolverInterface::class)","file":"Slim/Factory/AppFactory.php","line":88,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 25: public function getCallableResolver(): CallableResolverInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":25,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 143: public function getCallableResolver(): CallableResolverInterface","file":"Slim/Routing/Route.php","line":143,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 66: public function getCallableResolver(): CallableResolverInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":66,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 86: public function testGetCallableResolverReturnsInjectedInstance(): void","file":"tests/AppTest.php","line":86,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 92: $this->assertSame($callableResolverProphecy->reveal(), $app->getCallableResolver());","file":"tests/AppTest.php","line":92,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 102: $this->assertEquals($callableResolver, $app->getCallableResolver());","file":"tests/AppTest.php","line":102,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 188: $app->getCallableResolver()","file":"tests/Factory/AppFactoryTest.php","line":188,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 245: $app->getCallableResolver()","file":"tests/Factory/AppFactoryTest.php","line":245,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 323: ->get(CallableResolverInterface::class)","file":"tests/Factory/AppFactoryTest.php","line":323,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 362: $this->assertSame($app->getCallableResolver(), $callableResolverProphecy->reveal());","file":"tests/Factory/AppFactoryTest.php","line":362,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 43: $callableResolverProperty = $class->getProperty('callableResolver');","file":"tests/Handlers/ErrorHandlerTest.php","line":43,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 45: $callableResolverProperty->setValue($handler, $this->getCallableResolver());","file":"tests/Handlers/ErrorHandlerTest.php","line":45,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 110: $handler = new ErrorHandler($this->getCallableResolver(), $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":110,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 127: $handler = new ErrorHandler($this->getCallableResolver(), $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":127,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 155: $handler = new ErrorHandler($this->getCallableResolver(), $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":155,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 184: $handler = new ErrorHandler($this->getCallableResolver(), $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":184,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 336: $handler = new ErrorHandler($this->getCallableResolver(), $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":336,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 349: $handler = new ErrorHandler($this->getCallableResolver(), $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":349,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 368: $handler = new ErrorHandler($this->getCallableResolver(), $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":368,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 389: $this->getCallableResolver(),","file":"tests/Handlers/ErrorHandlerTest.php","line":389,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 416: $this->getCallableResolver(),","file":"tests/Handlers/ErrorHandlerTest.php","line":416,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 443: $this->getCallableResolver(),","file":"tests/Handlers/ErrorHandlerTest.php","line":443,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 469: $handler = new ErrorHandler($this->getCallableResolver(), $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":469,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 39: $callableResolver = $app->getCallableResolver();","file":"tests/Middleware/ErrorMiddlewareTest.php","line":39,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 76: $callableResolver = $app->getCallableResolver();","file":"tests/Middleware/ErrorMiddlewareTest.php","line":76,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 114: $callableResolver = $app->getCallableResolver();","file":"tests/Middleware/ErrorMiddlewareTest.php","line":114,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 133: $callableResolver = $app->getCallableResolver();","file":"tests/Middleware/ErrorMiddlewareTest.php","line":133,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 136: $middleware = new ErrorMiddleware($callableResolver, $this->getResponseFactory(), false, false, false, $logger);","file":"tests/Middleware/ErrorMiddlewareTest.php","line":136,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 146: $callableResolver = $app->getCallableResolver();","file":"tests/Middleware/ErrorMiddlewareTest.php","line":146,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 148: $middleware = new ErrorMiddleware($callableResolver, $this->getResponseFactory(), false, false, false, $logger);","file":"tests/Middleware/ErrorMiddlewareTest.php","line":148,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"라우트에 미들웨어를 추가하는 테스트 메서드를 찾아주세요.","query":"test add middleware route","file":"tests/AppTest.php","symbol":"testAddMiddlewareOnRoute","line":786,"lang":"ko","candidates":[{"text":"File: tests/AppTest.php\nLine 786: public function testAddMiddlewareOnRoute(): void","file":"tests/AppTest.php","line":786,"lexical":0.65,"target":true},{"text":"File: tests/AppTest.php\nLine 866: public function testAddMiddlewareOnRouteGroup(): void","file":"tests/AppTest.php","line":866,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 948: public function testAddMiddlewareOnTwoRouteGroup(): void","file":"tests/AppTest.php","line":948,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"获取指定 uri 允许的所有 http 方法","query":"get allowed methods uri","file":"Slim/Routing/FastRouteDispatcher.php","symbol":"getAllowedMethods","line":92,"lang":"zh","candidates":[{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 23: * Get allowed methods for a given uri","file":"Slim/Interfaces/DispatcherInterface.php","line":23,"lexical":0.5,"target":false},{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 27: public function getAllowedMethods(string $uri): array;","file":"Slim/Interfaces/DispatcherInterface.php","line":27,"lexical":0.5,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 73: public function getAllowedMethods(string $uri): array","file":"Slim/Routing/Dispatcher.php","line":73,"lexical":0.5,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 76: return $dispatcher->getAllowedMethods($uri);","file":"Slim/Routing/Dispatcher.php","line":76,"lexical":0.5,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 54: if (!empty($this->getAllowedMethods($uri))) {","file":"Slim/Routing/FastRouteDispatcher.php","line":54,"lexical":0.5,"target":true},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 92: public function getAllowedMethods(string $uri): array","file":"Slim/Routing/FastRouteDispatcher.php","line":92,"lexical":0.5,"target":false},{"text":"File: Slim/Routing/RoutingResults.php\nLine 106: return $this->dispatcher->getAllowedMethods($this->uri);","file":"Slim/Routing/RoutingResults.php","line":106,"lexical":0.5,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 100: public function testGetAllowedMethods($method, $uri, $callback, $allowedMethods)","file":"tests/Routing/FastRouteDispatcherTest.php","line":100,"lexical":0.5,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 105: $results = $dispatcher->getAllowedMethods($uri);","file":"tests/Routing/FastRouteDispatcherTest.php","line":105,"lexical":0.5,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 110: public function testGetAllowedMethodsReusesLastUriOnly()","file":"tests/Routing/FastRouteDispatcherTest.php","line":110,"lexical":0.5,"target":false}]} {"site":"project_search","repo":"slim","task":"HTTP 메서드와 URI를 받아서 매칭되는 경로를 찾는 로직을 구현 중인데, HEAD 요청일 때 GET으로 대체하거나 와일드카드 경로를 시도하는 부분의 흐름을 설명해줘. 결과값으로 반환되는 배열의 구조도 같이 알려줘.","query":"dispatch http method","file":"Slim/Routing/FastRouteDispatcher.php","symbol":"dispatch","line":33,"lang":"ko","candidates":[{"text":"File: CHANGELOG.md\nLine 133: - [3271: prevent multiple entries of same methode in FastRouteDispatcher](https://github.com/slimphp/Slim/pull/3271) thanks to @papparazzo","file":"CHANGELOG.md","line":133,"lexical":0.44999999999999996,"target":false},{"text":"File: CHANGELOG.md\nLine 369: - [#2779](https://github.com/slimphp/Slim/pull/2774) Add support for Slim callables `Class:method` resolution & Container Closure auto-binding in `MiddlewareDispatcher`","file":"CHANGELOG.md","line":369,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 33: public function dispatch($httpMethod, $uri): array","file":"Slim/Routing/FastRouteDispatcher.php","line":33,"lexical":0.65,"target":true},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 77: $result = $this->dispatchVariableRoute($this->variableRouteData[$httpMethod], $uri);","file":"Slim/Routing/FastRouteDispatcher.php","line":77,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"testar execução sem passar requisição de servidor","query":"test without server request","file":"tests/AppTest.php","symbol":"testRunWithoutPassingInServerRequest","line":1728,"lang":"pt","candidates":[{"text":"File: tests/AppTest.php\nLine 1728: public function testRunWithoutPassingInServerRequest(): void","file":"tests/AppTest.php","line":1728,"lexical":0.65,"target":true},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 102: public function testSetServerRequestCreatorWithoutDecorators()","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":102,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Il semble impossible de définir une stratégie d'exécution par défaut pour les routes lors de la configuration du collecteur, ce qui empêche de modifier le comportement global de l'appel des contrôleurs.","query":"default invocation strategy","file":"Slim/Routing/RouteCollector.php","symbol":"setDefaultInvocationStrategy","line":120,"lang":"fr","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 25: * Get default route invocation strategy","file":"Slim/Interfaces/RouteCollectorInterface.php","line":25,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 27: public function getDefaultInvocationStrategy(): InvocationStrategyInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":27,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 30: * Set default route invocation strategy","file":"Slim/Interfaces/RouteCollectorInterface.php","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 32: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 45: protected InvocationStrategyInterface $defaultInvocationStrategy;","file":"Slim/Routing/RouteCollector.php","line":45,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Routing/RouteCollector.php\nLine 92: ?InvocationStrategyInterface $defaultInvocationStrategy = null,","file":"Slim/Routing/RouteCollector.php","line":92,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 99: $this->defaultInvocationStrategy = $defaultInvocationStrategy ?? new RequestResponse();","file":"Slim/Routing/RouteCollector.php","line":99,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 113: * Get default route invocation strategy","file":"Slim/Routing/RouteCollector.php","line":113,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 115: public function getDefaultInvocationStrategy(): InvocationStrategyInterface","file":"Slim/Routing/RouteCollector.php","line":115,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 117: return $this->defaultInvocationStrategy;","file":"Slim/Routing/RouteCollector.php","line":117,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 120: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface","file":"Slim/Routing/RouteCollector.php","line":120,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 122: $this->defaultInvocationStrategy = $strategy;","file":"Slim/Routing/RouteCollector.php","line":122,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 296: $this->defaultInvocationStrategy,","file":"Slim/Routing/RouteCollector.php","line":296,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1284: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1284,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1330: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseNamedArgs());","file":"tests/AppTest.php","line":1330,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1651: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1651,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 106: $this->assertSame($invocationStrategyProphecy->reveal(), $routeCollector->getDefaultInvocationStrategy());","file":"tests/Routing/RouteCollectorTest.php","line":106,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"現在のURIで許可されているHTTPメソッドの一覧を取得している箇所はどこですか?","query":"getAllowedMethods uri","file":"Slim/Routing/RoutingResults.php","symbol":"getAllowedMethods","line":104,"lang":"ja","candidates":[{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 27: public function getAllowedMethods(string $uri): array;","file":"Slim/Interfaces/DispatcherInterface.php","line":27,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 73: public function getAllowedMethods(string $uri): array","file":"Slim/Routing/Dispatcher.php","line":73,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 76: return $dispatcher->getAllowedMethods($uri);","file":"Slim/Routing/Dispatcher.php","line":76,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 54: if (!empty($this->getAllowedMethods($uri))) {","file":"Slim/Routing/FastRouteDispatcher.php","line":54,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 92: public function getAllowedMethods(string $uri): array","file":"Slim/Routing/FastRouteDispatcher.php","line":92,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/RoutingResults.php\nLine 106: return $this->dispatcher->getAllowedMethods($this->uri);","file":"Slim/Routing/RoutingResults.php","line":106,"lexical":0.39999999999999997,"target":true},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 100: public function testGetAllowedMethods($method, $uri, $callback, $allowedMethods)","file":"tests/Routing/FastRouteDispatcherTest.php","line":100,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 105: $results = $dispatcher->getAllowedMethods($uri);","file":"tests/Routing/FastRouteDispatcherTest.php","line":105,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 110: public function testGetAllowedMethodsReusesLastUriOnly()","file":"tests/Routing/FastRouteDispatcherTest.php","line":110,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"Estoy revisando cómo se preparan las pruebas unitarias para la resolución de funciones. ¿Podrías explicarme por qué se está definiendo una función anónima dentro de este método de configuración estática?","query":"setUpBeforeClass function","file":"tests/CallableResolverTest.php","symbol":"setUpBeforeClass","line":28,"lang":"es","candidates":[{"text":"File: tests/AppTest.php\nLine 58: public static function setupBeforeClass(): void","file":"tests/AppTest.php","line":58,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 28: public static function setUpBeforeClass(): void","file":"tests/CallableResolverTest.php","line":28,"lexical":0.39999999999999997,"target":true},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 30: public static function setUpBeforeClass(): void","file":"tests/MiddlewareDispatcherTest.php","line":30,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"ミドルウェアの実行回数をレスポンスのボディに含めて返すモックの挙動を確認したいです。リクエストを処理した際に、静的なカウンターを使用して、何回目の呼び出しであるかをテキスト形式で応答に書き込む仕組みになっています。","query":"middleware mock count","file":"tests/Mocks/MiddlewareTest.php","symbol":"process","line":26,"lang":"ja","candidates":[{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 266: MockMiddlewareWithoutConstructor::$CalledCount = 0;","file":"tests/MiddlewareDispatcherTest.php","line":266,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 275: $this->assertSame(1, MockMiddlewareWithoutConstructor::$CalledCount);","file":"tests/MiddlewareDispatcherTest.php","line":275,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"verificar se o renderizador de erros está registrado corretamente para um mime type específico","query":"error renderer test","file":"tests/Handlers/ErrorHandlerTest.php","symbol":"testRegisterErrorRenderer","line":334,"lang":"pt","candidates":[{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 32: class AbstractErrorRendererTest extends TestCase","file":"tests/Error/AbstractErrorRendererTest.php","line":32,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 34: public function testHTMLErrorRendererDisplaysErrorDetails()","file":"tests/Error/AbstractErrorRendererTest.php","line":34,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 47: public function testHTMLErrorRendererNoErrorDetails()","file":"tests/Error/AbstractErrorRendererTest.php","line":47,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 60: public function testHTMLErrorRendererRenderFragmentMethod()","file":"tests/Error/AbstractErrorRendererTest.php","line":60,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 77: public function testHTMLErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":77,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 101: public function testHTMLErrorRendererEscapesHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":101,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 140: public function testJSONErrorRendererDisplaysErrorDetails()","file":"tests/Error/AbstractErrorRendererTest.php","line":140,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 156: public function testJSONErrorRendererDoesNotDisplayErrorDetails()","file":"tests/Error/AbstractErrorRendererTest.php","line":156,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 166: public function testJSONErrorRendererSubstitutesInvalidUtf8()","file":"tests/Error/AbstractErrorRendererTest.php","line":166,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 183: public function testJSONErrorRendererDisplaysPreviousError()","file":"tests/Error/AbstractErrorRendererTest.php","line":183,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 205: public function testJSONErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":205,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 227: public function testXMLErrorRendererDisplaysErrorDetails()","file":"tests/Error/AbstractErrorRendererTest.php","line":227,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 244: public function testXMLErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":244,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 263: public function testPlainTextErrorRendererFormatFragmentMethod()","file":"tests/Error/AbstractErrorRendererTest.php","line":263,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 285: public function testPlainTextErrorRendererDisplaysErrorDetails()","file":"tests/Error/AbstractErrorRendererTest.php","line":285,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 296: public function testPlainTextErrorRendererNotDisplaysErrorDetails()","file":"tests/Error/AbstractErrorRendererTest.php","line":296,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 307: public function testPlainTextErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":307,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 68: // Test the default error renderer","file":"tests/Handlers/ErrorHandlerTest.php","line":68,"lexical":0.65,"target":true},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 334: public function testRegisterErrorRenderer()","file":"tests/Handlers/ErrorHandlerTest.php","line":334,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 347: public function testSetDefaultErrorRenderer()","file":"tests/Handlers/ErrorHandlerTest.php","line":347,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 434: public function testWriteToErrorLogDoesNotShowTipIfErrorLogRendererIsNotPlainText()","file":"tests/Handlers/ErrorHandlerTest.php","line":434,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 463: public function testDefaultErrorRenderer()","file":"tests/Handlers/ErrorHandlerTest.php","line":463,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 479: public function testLogErrorRenderer()","file":"tests/Handlers/ErrorHandlerTest.php","line":479,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Bug: A função auxiliar definida dentro de um método estático de configuração está causando problemas de escopo ou redefinição durante a execução da suíte de testes.","query":"test process request","file":"tests/MiddlewareDispatcherTest.php","symbol":"MiddlewareDispatcherTest","line":28,"lang":"pt","candidates":[{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 99: * @runInSeparateProcess - ServerRequestCreatorFactory::setServerRequestCreator breaks other tests","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":99,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 121: * @runInSeparateProcess - ServerRequestCreatorFactory::setServerRequestCreator breaks other tests","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":121,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 32: function testProcessRequest(ServerRequestInterface $request, RequestHandlerInterface $handler)","file":"tests/MiddlewareDispatcherTest.php","line":32,"lexical":0.65,"target":true},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 60: $middlewareDispatcher->addDeferred(__NAMESPACE__ . '\\testProcessRequest');","file":"tests/MiddlewareDispatcherTest.php","line":60,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 146: ['NamedFunction', __NAMESPACE__ . '\\testProcessRequest'],","file":"tests/MiddlewareDispatcherTest.php","line":146,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"我想了解如何向这个应用实例中注册中间件。你能解释一下这个方法支持哪些参数类型吗?","query":"add middleware","file":"Slim/App.php","symbol":"add","line":102,"lang":"zh","candidates":[{"text":"File: CHANGELOG.md\nLine 143: - [3191: Adding property types to Middleware classes](https://github.com/slimphp/Slim/pull/3191) thanks to @ashleycoles","file":"CHANGELOG.md","line":143,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 322: - [2819](https://github.com/slimphp/Slim/pull/2819) Added description to addRoutingMiddleware()","file":"CHANGELOG.md","line":322,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 348: - [2798](https://github.com/slimphp/Slim/pull/2798) Add PSR-7 Agnostic Body Parsing Middleware","file":"CHANGELOG.md","line":348,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 352: - [2817](https://github.com/slimphp/Slim/pull/2817) Add the ability to pass in a custom `MiddlewareDispatcherInterface` to the `App`","file":"CHANGELOG.md","line":352,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 369: - [#2779](https://github.com/slimphp/Slim/pull/2774) Add support for Slim callables `Class:method` resolution & Container Closure auto-binding in `MiddlewareDispatcher`","file":"CHANGELOG.md","line":369,"lexical":0.39999999999999997,"target":false},{"text":"File: README.md\nLine 76: // Add error middleware","file":"README.md","line":76,"lexical":0.39999999999999997,"target":false},{"text":"File: README.md\nLine 77: $app->addErrorMiddleware(true, true, true);","file":"README.md","line":77,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 102: public function add($middleware): self","file":"Slim/App.php","line":102,"lexical":0.39999999999999997,"target":true},{"text":"File: Slim/App.php\nLine 104: $this->middlewareDispatcher->add($middleware);","file":"Slim/App.php","line":104,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 112: public function addMiddleware(MiddlewareInterface $middleware): self","file":"Slim/App.php","line":112,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 114: $this->middlewareDispatcher->addMiddleware($middleware);","file":"Slim/App.php","line":114,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 119: * Add the Slim built-in routing middleware to the app middleware stack","file":"Slim/App.php","line":119,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 125: public function addRoutingMiddleware(): RoutingMiddleware","file":"Slim/App.php","line":125,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 131: $this->add($routingMiddleware);","file":"Slim/App.php","line":131,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 136: * Add the Slim built-in error middleware to the app middleware stack","file":"Slim/App.php","line":136,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 145: public function addErrorMiddleware(","file":"Slim/App.php","line":145,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 159: $this->add($errorMiddleware);","file":"Slim/App.php","line":159,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 164: * Add the Slim body parsing middleware to the app middleware stack","file":"Slim/App.php","line":164,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 170: public function addBodyParsingMiddleware(array $bodyParsers = []): BodyParsingMiddleware","file":"Slim/App.php","line":170,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 173: $this->add($bodyParsingMiddleware);","file":"Slim/App.php","line":173,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 20: * Add a new middleware to the stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":20,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 28: public function add($middleware): self;","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":28,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 31: * Add a new middleware to the stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":31,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 37: public function addMiddleware(MiddlewareInterface $middleware): self;","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":37,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 22: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":22,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 26: public function add($middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":26,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 29: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":29,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 31: public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":31,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 109: public function add($middleware): self;","file":"Slim/Interfaces/RouteInterface.php","line":109,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 111: public function addMiddleware(MiddlewareInterface $middleware): self;","file":"Slim/Interfaces/RouteInterface.php","line":111,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 77: * Add a new middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":77,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 85: public function add($middleware): MiddlewareDispatcherInterface","file":"Slim/MiddlewareDispatcher.php","line":85,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"ルート引数を可変長引数として展開してコールバックに渡す処理において、定義されているパラメータがすべて個別の引数として渡されるようになっているか確認してください。","query":"route arguments callable","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","symbol":"__invoke","line":30,"lang":"ja","candidates":[{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 39: return $callable($request, $response, $routeArguments);","file":"Slim/Handlers/Strategies/RequestResponse.php","line":39,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 38: return $callable($request, $response, ...array_values($routeArguments));","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":38,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 37: return $callable($request, $response, ...$routeArguments);","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":37,"lexical":0.44999999999999996,"target":true}]} {"site":"project_search","repo":"slim","task":"Estoy intentando organizar las rutas por prefijos y necesito ver cómo se gestionan los middlewares para un conjunto de endpoints. ¿Dónde está definida la estructura que permite añadir capas de ejecución y obtener el patrón de la URL para estos grupos?","query":"route group middleware","file":"Slim/Interfaces/RouteGroupInterface.php","symbol":"RouteGroupInterface","line":17,"lang":"es","candidates":[{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 22: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":22,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 26: public function add($middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":26,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 29: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":29,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 31: public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":31,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 37: public function appendMiddlewareToDispatcher(MiddlewareDispatcher $dispatcher): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":37,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 318: $this->appendGroupMiddlewareToRoute();","file":"Slim/Routing/Route.php","line":318,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 327: protected function appendGroupMiddlewareToRoute(): void","file":"Slim/Routing/Route.php","line":327,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 74: public function add($middleware): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":74,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 83: public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":83,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 93: public function appendMiddlewareToDispatcher(MiddlewareDispatcher $dispatcher): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":93,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 866: public function testAddMiddlewareOnRouteGroup(): void","file":"tests/AppTest.php","line":866,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 948: public function testAddMiddlewareOnTwoRouteGroup(): void","file":"tests/AppTest.php","line":948,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"¿Cómo se prueba que se puede forzar el tipo de contenido en las respuestas del manejador de errores?","query":"force content type test","file":"tests/Handlers/ErrorHandlerTest.php","symbol":"testForceContentType","line":104,"lang":"es","candidates":[{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 102: * Test if we can force the content type of all error handler responses.","file":"tests/Handlers/ErrorHandlerTest.php","line":102,"lexical":0.65,"target":true},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 104: public function testForceContentType()","file":"tests/Handlers/ErrorHandlerTest.php","line":104,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 151: * Test that a forced content type still wins over per-request negotiation.","file":"tests/Handlers/ErrorHandlerTest.php","line":151,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 153: public function testForcedContentTypeWinsOverSubsequentNegotiation()","file":"tests/Handlers/ErrorHandlerTest.php","line":153,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 180: * Test that forceContentType(null) restores Accept-header negotiation.","file":"tests/Handlers/ErrorHandlerTest.php","line":180,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 182: public function testForceContentTypeNullRestoresNegotiation()","file":"tests/Handlers/ErrorHandlerTest.php","line":182,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"获取缓存文件路径","query":"cache file path","file":"Slim/Routing/RouteCollector.php","symbol":"getCacheFile","line":129,"lang":"zh","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 35: * Get path to FastRoute cache file","file":"Slim/Interfaces/RouteCollectorInterface.php","line":35,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 40: * Set path to FastRoute cache file","file":"Slim/Interfaces/RouteCollectorInterface.php","line":40,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 53: * Path to fast route cache file. Set to null to disable route caching","file":"Slim/Routing/RouteCollector.php","line":53,"lexical":0.44999999999999996,"target":true}]} {"site":"project_search","repo":"slim","task":"检查一下路由解析逻辑,目前它似乎只是简单地通过判断目标对象是否实现了请求处理接口来决定它是否是一个路由。如果我传入的是一个其他类型的可调用对象,这种判断方式会不会导致逻辑错误?","query":"instanceof RequestHandlerInterface","file":"Slim/CallableResolver.php","symbol":"isRoute","line":110,"lang":"zh","candidates":[{"text":"File: Slim/CallableResolver.php\nLine 112: return $toResolve instanceof RequestHandlerInterface;","file":"Slim/CallableResolver.php","line":112,"lexical":0.39999999999999997,"target":true},{"text":"File: Slim/Routing/Route.php\nLine 355: && $callable[0] instanceof RequestHandlerInterface","file":"Slim/Routing/Route.php","line":355,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 1989: $this->assertInstanceOf(RequestHandlerInterface::class, $app);","file":"tests/AppTest.php","line":1989,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"I'm looking at how the main request handler is initialized. Where is the constructor that takes the resolver, the parser, and the optional collector proxy?","query":"RouteResolver RouteParser","file":"Slim/Routing/RouteRunner.php","symbol":"__construct","line":37,"lang":"en","candidates":[{"text":"File: Slim/App.php\nLine 71: $routeRunner = new RouteRunner($this->routeResolver, $this->routeCollector->getRouteParser(), $this);","file":"Slim/App.php","line":71,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 31: public function __construct(RouteResolverInterface $routeResolver, RouteParserInterface $routeParser)","file":"Slim/Middleware/RoutingMiddleware.php","line":31,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 61: $routingMiddleware = new RoutingMiddleware($this->routeResolver, $this->routeParser);","file":"Slim/Routing/RouteRunner.php","line":61,"lexical":0.39999999999999997,"target":true},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 65: $routingMiddleware = new RoutingMiddleware($routeResolver, $routeParser);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":65,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 83: $routingMiddleware = new RoutingMiddleware($routeResolver, $routeParser);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":83,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 120: $routingMiddleware = new RoutingMiddleware($routeResolver, $routeParser);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":120,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 187: $middleware = new RoutingMiddleware($routeResolver, $routeParser);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":187,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteRunnerTest.php\nLine 48: $dispatcher = new RouteRunner($routeResolver, $routeParser);","file":"tests/Routing/RouteRunnerTest.php","line":48,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"Slimのエラーレンダラーインターフェースで、発生した例外とエラー詳細の表示フラグを受け取ってHTMLを生成するメソッドを実装してください。","query":"render error exception","file":"Slim/Interfaces/ErrorRendererInterface.php","symbol":"__invoke","line":17,"lang":"ja","candidates":[{"text":"File: Slim/Error/Renderers/HtmlErrorRenderer.php\nLine 44: return $this->renderHtmlBody($this->getErrorTitle($exception), $html);","file":"Slim/Error/Renderers/HtmlErrorRenderer.php","line":44,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 268: $error = $renderer($this->exception, $this->logErrorDetails);","file":"Slim/Handlers/ErrorHandler.php","line":268,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 309: $body = call_user_func($renderer, $this->exception, $this->displayErrorDetails);","file":"Slim/Handlers/ErrorHandler.php","line":309,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 77: public function testHTMLErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":77,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 101: public function testHTMLErrorRendererEscapesHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":101,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 205: public function testJSONErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":205,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 244: public function testXMLErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":244,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 307: public function testPlainTextErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":307,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Je cherche la méthode qui renvoie l'usine de requêtes serveur pour les tests PSR-7. J'ai besoin de savoir comment obtenir l'instance de ServerRequestFactoryInterface.","query":"get server request factory","file":"tests/Providers/PSR7ObjectProviderInterface.php","symbol":"getServerRequestFactory","line":30,"lang":"fr","candidates":[{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 48: $serverRequestCreator = $psr17Factory::getServerRequestCreator();","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":48,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 41: MockPsr17Factory::getServerRequestCreator();","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":41,"lexical":0.65,"target":false},{"text":"File: tests/Providers/PSR7ObjectProvider.php\nLine 62: ->getServerRequestFactory()","file":"tests/Providers/PSR7ObjectProvider.php","line":62,"lexical":0.5,"target":false},{"text":"File: tests/Providers/PSR7ObjectProvider.php\nLine 69: public function getServerRequestFactory(): ServerRequestFactoryInterface","file":"tests/Providers/PSR7ObjectProvider.php","line":69,"lexical":0.5,"target":false},{"text":"File: tests/Providers/PSR7ObjectProviderInterface.php\nLine 30: public function getServerRequestFactory(): ServerRequestFactoryInterface;","file":"tests/Providers/PSR7ObjectProviderInterface.php","line":30,"lexical":0.5,"target":true},{"text":"File: tests/TestCase.php\nLine 37: protected function getServerRequestFactory(): ServerRequestFactoryInterface","file":"tests/TestCase.php","line":37,"lexical":0.5,"target":false},{"text":"File: tests/TestCase.php\nLine 40: return $psr7ObjectProvider->getServerRequestFactory();","file":"tests/TestCase.php","line":40,"lexical":0.5,"target":false}]} {"site":"project_search","repo":"slim","task":"라우트 리졸버 인스턴스 가져오는 메서드 찾아줘","query":"get route resolver","file":"Slim/App.php","symbol":"getRouteResolver","line":85,"lang":"ko","candidates":[{"text":"File: Slim/App.php\nLine 71: $routeRunner = new RouteRunner($this->routeResolver, $this->routeCollector->getRouteParser(), $this);","file":"Slim/App.php","line":71,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/App.php\nLine 85: public function getRouteResolver(): RouteResolverInterface","file":"Slim/App.php","line":85,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 128: $this->getRouteResolver(),","file":"Slim/App.php","line":128,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 102: $routeResolverFromContainer = $container->get(RouteResolverInterface::class)","file":"Slim/Factory/AppFactory.php","line":102,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 198: $app->getRouteResolver()","file":"tests/Factory/AppFactoryTest.php","line":198,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 255: $app->getRouteResolver()","file":"tests/Factory/AppFactoryTest.php","line":255,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 343: ->get(RouteResolverInterface::class)","file":"tests/Factory/AppFactoryTest.php","line":343,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 364: $this->assertSame($app->getRouteResolver(), $routeResolverProphecy->reveal());","file":"tests/Factory/AppFactoryTest.php","line":364,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 43: $app->getRouteResolver(),","file":"tests/Middleware/ErrorMiddlewareTest.php","line":43,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 80: $app->getRouteResolver(),","file":"tests/Middleware/ErrorMiddlewareTest.php","line":80,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 156: $results = $routeResolver->computeRoutingResults('/download/Foo%20Bar', 'GET');","file":"tests/Routing/DispatcherTest.php","line":156,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 160: $results = $routeResolver->computeRoutingResults('/download/%252e%252e%252fetc%252fpasswd', 'GET');","file":"tests/Routing/DispatcherTest.php","line":160,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 56: $routeCollectorProxy->getCallableResolver()","file":"tests/Routing/RouteCollectorProxyTest.php","line":56,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 170: $this->assertSame($callableResolverProphecy->reveal(), $route->getCallableResolver());","file":"tests/Routing/RouteTest.php","line":170,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 404: $route = new Route(['GET'], '/', $deferred, $responseFactory, $callableResolver);","file":"tests/Routing/RouteTest.php","line":404,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Verifique se a chamada ao método `getPattern()` em um grupo de rotas retorna exatamente o prefixo definido na criação do grupo.","query":"route group pattern","file":"tests/AppTest.php","symbol":"testRouteGroupPattern","line":577,"lang":"pt","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 93: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":93,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 118: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":118,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 40: * Get the RouteGroup's pattern","file":"Slim/Interfaces/RouteGroupInterface.php","line":40,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 230: public function group(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollector.php","line":230,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 232: $routeGroup = $this->createGroup($pattern, $callable);","file":"Slim/Routing/RouteCollector.php","line":232,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 244: protected function createGroup(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollector.php","line":244,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 247: return new RouteGroup($pattern, $callable, $this->callableResolver, $routeCollectorProxy);","file":"Slim/Routing/RouteCollector.php","line":247,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 175: public function group(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":175,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 179: return $this->routeCollector->group($pattern, $callable);","file":"Slim/Routing/RouteCollectorProxy.php","line":179,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 577: public function testRouteGroupPattern(): void","file":"tests/AppTest.php","line":577,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 456: $routeCollectorProxy->group($pattern, $callable);","file":"tests/Routing/RouteCollectorProxyTest.php","line":456,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"라우트 파라미터를 요청 속성에 추가하는 PSR-15 요청 핸들러 구현체를 찾아주세요.","query":"RequestHandler strategy","file":"Slim/Handlers/Strategies/RequestHandler.php","symbol":"RequestHandler","line":20,"lang":"ko","candidates":[{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 15: use Slim\\Interfaces\\RequestHandlerInvocationStrategyInterface;","file":"Slim/Handlers/Strategies/RequestHandler.php","line":15,"lexical":0.6000000000000001,"target":true},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 18: * PSR-15 RequestHandler invocation strategy","file":"Slim/Handlers/Strategies/RequestHandler.php","line":18,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 20: class RequestHandler implements RequestHandlerInvocationStrategyInterface","file":"Slim/Handlers/Strategies/RequestHandler.php","line":20,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RequestHandlerInvocationStrategyInterface.php\nLine 13: interface RequestHandlerInvocationStrategyInterface extends InvocationStrategyInterface","file":"Slim/Interfaces/RequestHandlerInvocationStrategyInterface.php","line":13,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 24: use Slim\\Interfaces\\RequestHandlerInvocationStrategyInterface;","file":"Slim/Routing/Route.php","line":24,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 356: && !in_array(RequestHandlerInvocationStrategyInterface::class, $strategyImplements)","file":"Slim/Routing/Route.php","line":356,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 358: $strategy = new RequestHandler();","file":"Slim/Routing/Route.php","line":358,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/MockCustomRequestHandlerInvocationStrategy.php\nLine 15: use Slim\\Interfaces\\RequestHandlerInvocationStrategyInterface;","file":"tests/Mocks/MockCustomRequestHandlerInvocationStrategy.php","line":15,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Mocks/MockCustomRequestHandlerInvocationStrategy.php\nLine 17: class MockCustomRequestHandlerInvocationStrategy implements RequestHandlerInvocationStrategyInterface","file":"tests/Mocks/MockCustomRequestHandlerInvocationStrategy.php","line":17,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 33: use Slim\\Tests\\Mocks\\MockCustomRequestHandlerInvocationStrategy;","file":"tests/Routing/RouteTest.php","line":33,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 608: public function testInvokeUsesRequestHandlerStrategyForRequestHandlers()","file":"tests/Routing/RouteTest.php","line":608,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 640: ->get(RequestHandlerTest::class)::$strategy;","file":"tests/Routing/RouteTest.php","line":640,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 642: $this->assertSame(RequestHandler::class, $strategy);","file":"tests/Routing/RouteTest.php","line":642,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 645: public function testInvokeUsesUserSetStrategyForRequestHandlers()","file":"tests/Routing/RouteTest.php","line":645,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 671: $strategy = new MockCustomRequestHandlerInvocationStrategy();","file":"tests/Routing/RouteTest.php","line":671,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 680: public function testRequestHandlerStrategyAppendsRouteArgumentsAsAttributesToRequest()","file":"tests/Routing/RouteTest.php","line":680,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 708: $strategy = new RequestHandler(true);","file":"tests/Routing/RouteTest.php","line":708,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"Can you show me the mock implementation used to simulate how a route handler is executed during testing?","query":"mock invocation strategy","file":"tests/Mocks/InvocationStrategyTest.php","symbol":"InvocationStrategyTest","line":17,"lang":"en","candidates":[{"text":"File: tests/Mocks/MockCustomRequestHandlerInvocationStrategy.php\nLine 17: class MockCustomRequestHandlerInvocationStrategy implements RequestHandlerInvocationStrategyInterface","file":"tests/Mocks/MockCustomRequestHandlerInvocationStrategy.php","line":17,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 32: use Slim\\Tests\\Mocks\\InvocationStrategyTest;","file":"tests/Routing/RouteTest.php","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 33: use Slim\\Tests\\Mocks\\MockCustomRequestHandlerInvocationStrategy;","file":"tests/Routing/RouteTest.php","line":33,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 671: $strategy = new MockCustomRequestHandlerInvocationStrategy();","file":"tests/Routing/RouteTest.php","line":671,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"ajouter un groupe de routes","query":"route group","file":"Slim/Interfaces/RouteCollectorInterface.php","symbol":"group","line":93,"lang":"fr","candidates":[{"text":"File: CHANGELOG.md\nLine 122: - [3245: New ability to override RouteGroupInterface in the Route class](https://github.com/slimphp/Slim/pull/3245) thanks to @githubjeka","file":"CHANGELOG.md","line":122,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 90: * Add route group","file":"Slim/Interfaces/RouteCollectorInterface.php","line":90,"lexical":0.6000000000000001,"target":true},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 93: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":93,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 111: * Route Groups","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":111,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 118: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":118,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 17: interface RouteGroupInterface","file":"Slim/Interfaces/RouteGroupInterface.php","line":17,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 19: public function collectRoutes(): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":19,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 22: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":22,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 26: public function add($middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":26,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 29: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":29,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 31: public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":31,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 37: public function appendMiddlewareToDispatcher(MiddlewareDispatcher $dispatcher): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":37,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 40: * Get the RouteGroup's pattern","file":"Slim/Interfaces/RouteGroupInterface.php","line":40,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 7: use FastRoute\\DataGenerator\\GroupCountBased;","file":"Slim/Routing/Dispatcher.php","line":7,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 13: use FastRoute\\Dispatcher\\GroupCountBased;","file":"Slim/Routing/FastRouteDispatcher.php","line":13,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 15: class FastRouteDispatcher extends GroupCountBased","file":"Slim/Routing/FastRouteDispatcher.php","line":15,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 25: use Slim\\Interfaces\\RouteGroupInterface;","file":"Slim/Routing/Route.php","line":25,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 60: * Parent route groups","file":"Slim/Routing/Route.php","line":60,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 62: * @var RouteGroupInterface[]","file":"Slim/Routing/Route.php","line":62,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 117: * @param RouteGroupInterface[] $groups The parent route groups","file":"Slim/Routing/Route.php","line":117,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 265: * @return RouteGroupInterface[]","file":"Slim/Routing/Route.php","line":265,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 318: $this->appendGroupMiddlewareToRoute();","file":"Slim/Routing/Route.php","line":318,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 327: protected function appendGroupMiddlewareToRoute(): void","file":"Slim/Routing/Route.php","line":327,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 21: use Slim\\Interfaces\\RouteGroupInterface;","file":"Slim/Routing/RouteCollector.php","line":21,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 33: * RouteCollector is used to collect routes and route groups","file":"Slim/Routing/RouteCollector.php","line":33,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 72: * Route groups","file":"Slim/Routing/RouteCollector.php","line":72,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 74: * @var RouteGroupInterface[]","file":"Slim/Routing/RouteCollector.php","line":74,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 76: protected array $routeGroups = [];","file":"Slim/Routing/RouteCollector.php","line":76,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 230: public function group(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollector.php","line":230,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 232: $routeGroup = $this->createGroup($pattern, $callable);","file":"Slim/Routing/RouteCollector.php","line":232,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 233: $this->routeGroups[] = $routeGroup;","file":"Slim/Routing/RouteCollector.php","line":233,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 235: $routeGroup->collectRoutes();","file":"Slim/Routing/RouteCollector.php","line":235,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"Necesito una forma de reemplazar la implementación predeterminada del creador de solicitudes del servidor en Slim. ¿Cómo configuro o establezco un creador personalizado para que la fábrica lo utilice en lugar del comportamiento por defecto?","query":"server request creator factory","file":"Slim/Factory/ServerRequestCreatorFactory.php","symbol":"setServerRequestCreator","line":79,"lang":"es","candidates":[{"text":"File: README.md\nLine 44: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"README.md","line":44,"lexical":0.5,"target":false},{"text":"File: README.md\nLine 47: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"README.md","line":47,"lexical":0.5,"target":false},{"text":"File: Slim/App.php\nLine 20: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"Slim/App.php","line":20,"lexical":0.5,"target":false},{"text":"File: Slim/App.php\nLine 189: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"Slim/App.php","line":189,"lexical":0.5,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'Laminas\\Diactoros\\ServerRequestFactory';","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":17,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'Slim\\Psr7\\Factory\\ServerRequestFactory';","file":"Slim/Factory/Psr17/SlimPsr17Factory.php","line":17,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 16: use Slim\\Factory\\Psr17\\SlimHttpServerRequestCreator;","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":16,"lexical":0.65,"target":true},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 21: class ServerRequestCreatorFactory","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":21,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 47: if ($psr17Factory::isServerRequestCreatorAvailable()) {","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":47,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 48: $serverRequestCreator = $psr17Factory::getServerRequestCreator();","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":48,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 41: MockPsr17Factory::getServerRequestCreator();","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":41,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 17: use Slim\\Factory\\Psr17\\SlimHttpServerRequestCreator;","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":17,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 82: 'Slim\\\\Factory\\\\Psr17\\\\SlimHttpServerRequestCreator could not instantiate a decorated server request.'","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":82,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 24: use Slim\\Factory\\Psr17\\SlimHttpServerRequestCreator;","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":24,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 26: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":26,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 32: class ServerRequestCreatorFactoryTest extends TestCase","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":32,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 54: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":54,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 56: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":56,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 65: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(true);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":65,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 67: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":67,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 82: ServerRequestCreatorFactory::create();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":82,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 90: ServerRequestCreatorFactory::setPsr17FactoryProvider($psr17FactoryProvider);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":90,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 91: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":91,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 93: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":93,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 99: * @runInSeparateProcess - ServerRequestCreatorFactory::setServerRequestCreator breaks other tests","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":99,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 104: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":104,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 113: ServerRequestCreatorFactory::setServerRequestCreator($serverRequestCreatorProphecy->reveal());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":113,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 115: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":115,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 121: * @runInSeparateProcess - ServerRequestCreatorFactory::setServerRequestCreator breaks other tests","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":121,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 126: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(true);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":126,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 135: ServerRequestCreatorFactory::setServerRequestCreator($serverRequestCreatorProphecy->reveal());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":135,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 137: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":137,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"I'm looking at how the application handles incoming requests and routing. Can you explain how the logic handles a HEAD request if the initial match fails?","query":"HEAD GET fallback","file":"Slim/Routing/FastRouteDispatcher.php","symbol":"FastRouteDispatcher","line":15,"lang":"en","candidates":[{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 40: // For HEAD requests, attempt fallback to GET","file":"Slim/Routing/FastRouteDispatcher.php","line":40,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 278: // 7 ----- Test GET method fallback on HEAD route miss ------------------------------------>","file":"tests/Routing/FastRouteDispatcherTest.php","line":278,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 295: // 8 ----- Test GET method fallback on HEAD route miss ------------------------------------>","file":"tests/Routing/FastRouteDispatcherTest.php","line":295,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 306: // 9 ----- Test GET method fallback on HEAD route miss ------------------------------------>","file":"tests/Routing/FastRouteDispatcherTest.php","line":306,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Estoy probando la lógica de los objetos que se pueden ejecutar como funciones. ¿Dónde tengo la clase de prueba que simula un objeto con un contador interno?","query":"mock call count","file":"tests/Mocks/InvokableTest.php","symbol":"InvokableTest","line":13,"lang":"es","candidates":[{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 266: MockMiddlewareWithoutConstructor::$CalledCount = 0;","file":"tests/MiddlewareDispatcherTest.php","line":266,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 275: $this->assertSame(1, MockMiddlewareWithoutConstructor::$CalledCount);","file":"tests/MiddlewareDispatcherTest.php","line":275,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Necesito verificar que el método determineStatusCode devuelva el código de estado correcto para excepciones HTTP.\nActualmente estoy escribiendo pruebas unitarias para el controlador de errores.","query":"test status code","file":"tests/Handlers/ErrorHandlerTest.php","symbol":"testDetermineStatusCode","line":75,"lang":"es","candidates":[{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 75: public function testDetermineStatusCode()","file":"tests/Handlers/ErrorHandlerTest.php","line":75,"lexical":0.65,"target":true},{"text":"File: tests/ResponseEmitterTest.php\nLine 173: public function testIsResponseEmptyWithNonEmptyBodyAndTriggeringStatusCode(): void","file":"tests/ResponseEmitterTest.php","line":173,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"帮我找一下验证纯文本错误渲染器能否正确显示异常详情及嵌套异常内容的测试用例。","query":"plaintext error test","file":"tests/Error/AbstractErrorRendererTest.php","symbol":"testPlainTextErrorRendererDisplaysErrorDetails","line":285,"lang":"zh","candidates":[{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 263: public function testPlainTextErrorRendererFormatFragmentMethod()","file":"tests/Error/AbstractErrorRendererTest.php","line":263,"lexical":0.65,"target":true},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 285: public function testPlainTextErrorRendererDisplaysErrorDetails()","file":"tests/Error/AbstractErrorRendererTest.php","line":285,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 296: public function testPlainTextErrorRendererNotDisplaysErrorDetails()","file":"tests/Error/AbstractErrorRendererTest.php","line":296,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 307: public function testPlainTextErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":307,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 434: public function testWriteToErrorLogDoesNotShowTipIfErrorLogRendererIsNotPlainText()","file":"tests/Handlers/ErrorHandlerTest.php","line":434,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Es gibt ein Problem: Wenn die Instanziierung der Fabrik für die Antwort fehlschlägt, wird eine Laufzeitexception geworfen, anstatt das Problem sauber zu handhaben oder eine alternative Lösung anzubieten. Bitte prüfe die Implementierung der statischen Methode, die die Fabrik für die HTTP-Antworten bereitstellt.","query":"response factory exception","file":"Slim/Interfaces/Psr17FactoryInterface.php","symbol":"getResponseFactory","line":22,"lang":"de","candidates":[{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 41: throw new RuntimeException(get_called_class() . ' could not instantiate a response factory.');","file":"Slim/Factory/Psr17/Psr17Factory.php","line":41,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 34: throw new RuntimeException(get_called_class() . ' could not instantiate a decorated response factory.');","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":34,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 97: public function testDetermineResponseFactoryThrowsRuntimeExceptionIfDecoratedNotInstanceOfResponseInterface()","file":"tests/Factory/AppFactoryTest.php","line":97,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 117: public function testDetermineResponseFactoryThrowsRuntimeException()","file":"tests/Factory/AppFactoryTest.php","line":117,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 19: public function testGetResponseFactoryThrowsRuntimeException()","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":19,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 22: $this->expectExceptionMessage('Slim\\\\Tests\\\\Mocks\\\\MockPsr17Factory could not instantiate a response factory.');","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":22,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Verify that the system correctly catches unexpected exceptions thrown during the request lifecycle and triggers the configured fallback mechanism instead of crashing the application.","query":"middleware error handler","file":"tests/Middleware/ErrorMiddlewareTest.php","symbol":"testErrorHandlerHandlesThrowables","line":288,"lang":"en","candidates":[{"text":"File: CHANGELOG.md\nLine 232: - [2942: Fix PHPdoc for error handlers in ErrorMiddleware ](https://github.com/slimphp/Slim/pull/2942) thanks to @TiMESPLiNTER","file":"CHANGELOG.md","line":232,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 63: $errorMiddleware->setErrorHandler($exception, $handler);","file":"tests/Middleware/ErrorMiddlewareTest.php","line":63,"lexical":0.65,"target":true},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 99: $errorMiddleware->setDefaultErrorHandler($handler);","file":"tests/Middleware/ErrorMiddlewareTest.php","line":99,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 125: $errorMiddleware->setDefaultErrorHandler('Uncallable');","file":"tests/Middleware/ErrorMiddlewareTest.php","line":125,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 126: $errorMiddleware->getDefaultErrorHandler();","file":"tests/Middleware/ErrorMiddlewareTest.php","line":126,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 138: $handler = $middleware->getErrorHandler($exception);","file":"tests/Middleware/ErrorMiddlewareTest.php","line":138,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 152: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":152,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 157: $middleware->setDefaultErrorHandler((function () {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":157,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 185: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":185,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 191: $middleware->setDefaultErrorHandler((function () {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":191,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 223: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":223,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 229: $middleware->setDefaultErrorHandler((function () {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":229,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 267: $middleware->setErrorHandler([LogicException::class, InvalidArgumentException::class], $handler->bindTo($this));","file":"tests/Middleware/ErrorMiddlewareTest.php","line":267,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 269: $middleware->setDefaultErrorHandler((function () {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":269,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 301: $middleware->setDefaultErrorHandler((function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":301,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"How do I retrieve the standard way the application handles calling routes?","query":"default route strategy","file":"Slim/Interfaces/RouteCollectorInterface.php","symbol":"getDefaultInvocationStrategy","line":27,"lang":"en","candidates":[{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 18: * Default route callback strategy with route parameters as an array of arguments.","file":"Slim/Handlers/Strategies/RequestResponse.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 25: * Get default route invocation strategy","file":"Slim/Interfaces/RouteCollectorInterface.php","line":25,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 30: * Set default route invocation strategy","file":"Slim/Interfaces/RouteCollectorInterface.php","line":30,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 32: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":32,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 113: * Get default route invocation strategy","file":"Slim/Routing/RouteCollector.php","line":113,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 120: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface","file":"Slim/Routing/RouteCollector.php","line":120,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 1284: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1284,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1330: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseNamedArgs());","file":"tests/AppTest.php","line":1330,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1651: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1651,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 106: $this->assertSame($invocationStrategyProphecy->reveal(), $routeCollector->getDefaultInvocationStrategy());","file":"tests/Routing/RouteCollectorTest.php","line":106,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"我想看看怎么在一个路由定义里同时绑定多种 HTTP 请求方法。能帮我找一下那个支持传入方法数组并映射到回调函数的接口定义吗?","query":"map array methods","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","symbol":"map","line":108,"lang":"zh","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 102: public function map(array $methods, string $pattern, $handler): RouteInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":102,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 108: public function map(array $methods, string $pattern, $callable): RouteInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":108,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Routing/RouteCollector.php\nLine 268: public function map(array $methods, string $pattern, $handler): RouteInterface","file":"Slim/Routing/RouteCollector.php","line":268,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 165: public function map(array $methods, string $pattern, $callable): RouteInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":165,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"I'm trying to implement custom PSR-17 middleware handling. Where is the logic that wraps standard response builders with extra functionality?","query":"decorated response factory","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","symbol":"SlimHttpPsr17Factory","line":17,"lang":"en","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 167: return SlimHttpPsr17Factory::createDecoratedResponseFactory($responseFactory, $streamFactory);","file":"Slim/Factory/AppFactory.php","line":167,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 19: protected static string $responseFactoryClass = 'Slim\\Http\\Factory\\DecoratedResponseFactory';","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":19,"lexical":0.65,"target":true},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 24: public static function createDecoratedResponseFactory(","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":24,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 30: $decoratedResponseFactory = new static::$responseFactoryClass($responseFactory, $streamFactory)","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":30,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 34: throw new RuntimeException(get_called_class() . ' could not instantiate a decorated response factory.');","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":34,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 37: return $decoratedResponseFactory;","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":37,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 32: use Slim\\Http\\Factory\\DecoratedResponseFactory;","file":"tests/Factory/AppFactoryTest.php","line":32,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 50: $reflectionClass->setStaticPropertyValue('responseFactoryClass', DecoratedResponseFactory::class);","file":"tests/Factory/AppFactoryTest.php","line":50,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 87: public function testDetermineResponseFactoryReturnsDecoratedFactory()","file":"tests/Factory/AppFactoryTest.php","line":87,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 94: $this->assertInstanceOf(DecoratedResponseFactory::class, $app->getResponseFactory());","file":"tests/Factory/AppFactoryTest.php","line":94,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 97: public function testDetermineResponseFactoryThrowsRuntimeExceptionIfDecoratedNotInstanceOfResponseInterface()","file":"tests/Factory/AppFactoryTest.php","line":97,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 101: 'Slim\\\\Factory\\\\Psr17\\\\SlimHttpPsr17Factory could not instantiate a decorated response factory.'","file":"tests/Factory/AppFactoryTest.php","line":101,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 263: public function testResponseAndStreamFactoryIsBeingInjectedInDecoratedResponseFactory()","file":"tests/Factory/AppFactoryTest.php","line":263,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 284: $streamFactoryProperty = new ReflectionProperty(DecoratedResponse::class, 'streamFactory');","file":"tests/Factory/AppFactoryTest.php","line":284,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Die Methode, die eine HTTP-Anfrage entgegennimmt und die Antwort unverändert zurückgibt, scheint in den Tests keine tatsächliche Logik auszuführen oder den Status zu verändern.","query":"request response return","file":"tests/AppTest.php","symbol":"foo","line":1433,"lang":"de","candidates":[{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 39: return $callable($request, $response, $routeArguments);","file":"Slim/Handlers/Strategies/RequestResponse.php","line":39,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 38: return $callable($request, $response, ...array_values($routeArguments));","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":38,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 37: return $callable($request, $response, ...$routeArguments);","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":37,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 362: return $strategy($callable, $request, $response, $this->arguments);","file":"Slim/Routing/Route.php","line":362,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1769: public function testHandleReturnsEmptyResponseBodyWithHeadRequestMethod(): void","file":"tests/AppTest.php","line":1769,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 27: * of the returned response, so that we can then inspect that request.","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":27,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 32: return new class ($response) implements RequestHandlerInterface {","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 344: $kernelProphecy->handle(Argument::type(ServerRequestInterface::class))->willReturn($responseProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":344,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"创建一个包含指定内容的流对象","query":"create stream contents","file":"tests/Providers/PSR7ObjectProviderInterface.php","symbol":"createStream","line":61,"lang":"zh","candidates":[{"text":"File: tests/Providers/PSR7ObjectProvider.php\nLine 98: public function createStream(string $contents = ''): StreamInterface","file":"tests/Providers/PSR7ObjectProvider.php","line":98,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Providers/PSR7ObjectProvider.php\nLine 102: ->createStream($contents);","file":"tests/Providers/PSR7ObjectProvider.php","line":102,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Providers/PSR7ObjectProviderInterface.php\nLine 61: public function createStream(string $contents = ''): StreamInterface;","file":"tests/Providers/PSR7ObjectProviderInterface.php","line":61,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/TestCase.php\nLine 120: protected function createStream(string $contents = ''): StreamInterface","file":"tests/TestCase.php","line":120,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/TestCase.php\nLine 123: return $psr7ObjectProvider->createStream($contents);","file":"tests/TestCase.php","line":123,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Check that the newly created RouteCollector instance returns the exact InvocationStrategyInterface instance passed to its constructor when getDefaultInvocationStrategy() is called.","query":"RouteCollector default strategy","file":"tests/Routing/RouteCollectorTest.php","symbol":"testGetRouteInvocationStrategy","line":92,"lang":"en","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 32: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":32,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 120: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface","file":"Slim/Routing/RouteCollector.php","line":120,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 1284: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1284,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1330: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseNamedArgs());","file":"tests/AppTest.php","line":1330,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1651: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1651,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 106: $this->assertSame($invocationStrategyProphecy->reveal(), $routeCollector->getDefaultInvocationStrategy());","file":"tests/Routing/RouteCollectorTest.php","line":106,"lexical":0.65,"target":true}]} {"site":"project_search","repo":"slim","task":"我想看看在定义路由组的时候,有没有一个方法可以用来获取当前的路由组实例,方便我做嵌套调用。请帮我找一下这个接口里定义的相关方法。","query":"collect routes","file":"Slim/Interfaces/RouteGroupInterface.php","symbol":"collectRoutes","line":19,"lang":"zh","candidates":[{"text":"File: CHANGELOG.md\nLine 163: - [3235: Persist routes indexed by name in RouteCollector for improved performance.](https://github.com/slimphp/Slim/pull/3235) thanks to @BusterNeece","file":"CHANGELOG.md","line":163,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 19: public function collectRoutes(): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":19,"lexical":0.39999999999999997,"target":true},{"text":"File: Slim/Routing/Dispatcher.php\nLine 33: foreach ($this->routeCollector->getRoutes() as $route) {","file":"Slim/Routing/Dispatcher.php","line":33,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 33: * RouteCollector is used to collect routes and route groups","file":"Slim/Routing/RouteCollector.php","line":33,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 235: $routeGroup->collectRoutes();","file":"Slim/Routing/RouteCollector.php","line":235,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 60: public function collectRoutes(): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":60,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 65: $routes = $routeCollector->getRoutes();","file":"tests/Routing/RouteCollectorTest.php","line":65,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 121: $routes = $routeCollector->getRoutes();","file":"tests/Routing/RouteCollectorTest.php","line":121,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 125: $routes = $routeCollector->getRoutes();","file":"tests/Routing/RouteCollectorTest.php","line":125,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"Je suis en train de créer un mock pour l'interface `RequestHandlerInterface` afin de tester le comportement du gestionnaire de requêtes. Ce mock doit : 1. Compter le nombre de fois où la méthode `handle` est appelée via une variable statique `$CalledCount`. 2. Détecter la classe qui a initié l'appel à `handle` en examinant la pile d'exécution (`debug_backtrace`) et stocker ce nom dans une variable statique `$strategy`. 3. Retourner une réponse PSR-7 standard avec un en-tête `Content-Type` défini sur `text/plain` et un corps contenant le compteur d'appels actuel.","query":"mock request handler test","file":"tests/Mocks/RequestHandlerTest.php","symbol":"RequestHandlerTest","line":20,"lang":"fr","candidates":[{"text":"File: tests/CallableResolverTest.php\nLine 22: use Slim\\Tests\\Mocks\\RequestHandlerTest;","file":"tests/CallableResolverTest.php","line":22,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 250: $this->expectExceptionMessage('Slim\\\\Tests\\\\Mocks\\\\RequestHandlerTest is not resolvable');","file":"tests/CallableResolverTest.php","line":250,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 268: $this->expectExceptionMessage('Slim\\\\Tests\\\\Mocks\\\\RequestHandlerTest is not resolvable');","file":"tests/CallableResolverTest.php","line":268,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 24: use Slim\\Tests\\Mocks\\MockRequestHandler;","file":"tests/MiddlewareDispatcherTest.php","line":24,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 33: use Slim\\Tests\\Mocks\\MockCustomRequestHandlerInvocationStrategy;","file":"tests/Routing/RouteTest.php","line":33,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 36: use Slim\\Tests\\Mocks\\RequestHandlerTest;","file":"tests/Routing/RouteTest.php","line":36,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"检查路由处理策略是否将路由参数作为属性添加到请求中","query":"route attributes request","file":"tests/Routing/RouteTest.php","symbol":"testRequestHandlerStrategyAppendsRouteArgumentsAsAttributesToRequest","line":680,"lang":"zh","candidates":[{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 22: protected bool $appendRouteArgumentsToRequestAttributes;","file":"Slim/Handlers/Strategies/RequestHandler.php","line":22,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 24: public function __construct(bool $appendRouteArgumentsToRequestAttributes = false)","file":"Slim/Handlers/Strategies/RequestHandler.php","line":24,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 26: $this->appendRouteArgumentsToRequestAttributes = $appendRouteArgumentsToRequestAttributes;","file":"Slim/Handlers/Strategies/RequestHandler.php","line":26,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 40: if ($this->appendRouteArgumentsToRequestAttributes) {","file":"Slim/Handlers/Strategies/RequestHandler.php","line":40,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 1592: public function testCurrentRequestAttributesAreNotLostWhenAddingRouteArguments(): void","file":"tests/AppTest.php","line":1592,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1633: public function testCurrentRequestAttributesAreNotLostWhenAddingRouteArgumentsRequestResponseArg(): void","file":"tests/AppTest.php","line":1633,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 45: $serverRequest = $this->createServerRequestWithRouteAttributes();","file":"tests/Routing/RouteContextTest.php","line":45,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 59: $serverRequest = $this->createServerRequestWithRouteAttributes();","file":"tests/Routing/RouteContextTest.php","line":59,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 73: public static function requiredRouteContextRequestAttributes(): array","file":"tests/Routing/RouteContextTest.php","line":73,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 82: * @dataProvider requiredRouteContextRequestAttributes","file":"tests/Routing/RouteContextTest.php","line":82,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 85: #[\\PHPUnit\\Framework\\Attributes\\DataProvider('requiredRouteContextRequestAttributes')]","file":"tests/Routing/RouteContextTest.php","line":85,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 90: $serverRequest = $this->createServerRequestWithRouteAttributes()->withoutAttribute($attribute);","file":"tests/Routing/RouteContextTest.php","line":90,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 95: private function createServerRequestWithRouteAttributes(): ServerRequestInterface","file":"tests/Routing/RouteContextTest.php","line":95,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 680: public function testRequestHandlerStrategyAppendsRouteArgumentsAsAttributesToRequest()","file":"tests/Routing/RouteTest.php","line":680,"lexical":0.65,"target":true}]} {"site":"project_search","repo":"slim","task":"我正在写关于中间件注入的测试用例。能帮我找一下那个通过延迟解析容器来添加中间件的测试逻辑吗?","query":"middleware deferred resolution","file":"tests/AppTest.php","symbol":"testAddMiddlewareUsingDeferredResolution","line":658,"lang":"zh","candidates":[{"text":"File: tests/AppTest.php\nLine 658: public function testAddMiddlewareUsingDeferredResolution(): void","file":"tests/AppTest.php","line":658,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/Routing/RouteTest.php\nLine 358: public function testAddMiddlewareUsingDeferredResolution()","file":"tests/Routing/RouteTest.php","line":358,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"DIコンテナを渡さずにオブジェクトを解決しようとした時に、期待通りの例外が発生するか確認しているテストはどこ?","query":"not resolvable exception","file":"tests/CallableResolverTest.php","symbol":"testObjMiddlewareClass","line":367,"lang":"ja","candidates":[{"text":"File: Slim/CallableResolver.php\nLine 165: throw new RuntimeException(sprintf('%s is not resolvable', $formatedToResolve));","file":"Slim/CallableResolver.php","line":165,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 250: $this->expectExceptionMessage('Slim\\\\Tests\\\\Mocks\\\\RequestHandlerTest is not resolvable');","file":"tests/CallableResolverTest.php","line":250,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/CallableResolverTest.php\nLine 268: $this->expectExceptionMessage('Slim\\\\Tests\\\\Mocks\\\\RequestHandlerTest is not resolvable');","file":"tests/CallableResolverTest.php","line":268,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 277: $this->expectExceptionMessage('{} is not resolvable');","file":"tests/CallableResolverTest.php","line":277,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 297: $this->expectExceptionMessage('{} is not resolvable');","file":"tests/CallableResolverTest.php","line":297,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 307: $this->expectExceptionMessage('a_requesthandler is not resolvable');","file":"tests/CallableResolverTest.php","line":307,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 336: $this->expectExceptionMessage('a_requesthandler is not resolvable');","file":"tests/CallableResolverTest.php","line":336,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 370: $this->expectExceptionMessage('{} is not resolvable');","file":"tests/CallableResolverTest.php","line":370,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 380: $this->expectExceptionMessage('{} is not resolvable');","file":"tests/CallableResolverTest.php","line":380,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 414: $this->expectExceptionMessage('callable_service:notFound is not resolvable');","file":"tests/CallableResolverTest.php","line":414,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 428: $this->expectExceptionMessage('callable_service:notFound is not resolvable');","file":"tests/CallableResolverTest.php","line":428,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 442: $this->expectExceptionMessage('callable_service:notFound is not resolvable');","file":"tests/CallableResolverTest.php","line":442,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 167: $this->expectExceptionMessage('Middleware MiddlewareInterfaceNotImplemented is not resolvable');","file":"tests/MiddlewareDispatcherTest.php","line":167,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 279: public function testResolveThrowsExceptionWhenResolvableDoesNotImplementMiddlewareInterface(): void","file":"tests/MiddlewareDispatcherTest.php","line":279,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 282: $this->expectExceptionMessage('MiddlewareInterfaceNotImplemented is not resolvable');","file":"tests/MiddlewareDispatcherTest.php","line":282,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 307: $this->expectExceptionMessageMatches('/(Middleware|Callable) Unresolvable::class does not exist/');","file":"tests/MiddlewareDispatcherTest.php","line":307,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 320: $this->expectExceptionMessageMatches('/(Middleware|Callable) Unresolvable::class does not exist/');","file":"tests/MiddlewareDispatcherTest.php","line":320,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Je cherche la méthode qui assemble les variables globales du serveur pour générer une instance de requête PSR-7. Peux-tu me montrer comment elle appelle le créateur via un rappel ?","query":"globals server request","file":"Slim/Factory/Psr17/ServerRequestCreator.php","symbol":"createServerRequestFromGlobals","line":38,"lang":"fr","candidates":[{"text":"File: Slim/App.php\nLine 190: $request = $serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/App.php","line":190,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/GuzzlePsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/GuzzlePsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'createFromGlobals';","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 14: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":14,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/ServerRequestCreator.php\nLine 38: public function createServerRequestFromGlobals(): ServerRequestInterface","file":"Slim/Factory/Psr17/ServerRequestCreator.php","line":38,"lexical":0.65,"target":true},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 33: public function createServerRequestFromGlobals(): ServerRequestInterface","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":33,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 39: $request = $this->serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":39,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'createFromGlobals';","file":"Slim/Factory/Psr17/SlimPsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/ServerRequestCreatorInterface.php\nLine 17: public function createServerRequestFromGlobals(): ServerRequestInterface;","file":"Slim/Interfaces/ServerRequestCreatorInterface.php","line":17,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 43: public function testCreateServerRequestFromGlobals()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":43,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 50: ->createServerRequestFromGlobals()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":50,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 56: $this->assertInstanceOf(ServerRequest::class, $slimHttpServerRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":56,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 59: public function testCreateServerRequestFromGlobalsThrowsRuntimeException()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":59,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 75: $slimHttpServerRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":75,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 78: public function testCreateServerRequestFromGlobalsThrowsRuntimeExceptionIfNotInstanceOfServerRequestInterface()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":78,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 89: ->createServerRequestFromGlobals()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":89,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 98: $slimHttpServerRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":98,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 57: $serverRequest = $serverRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":57,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 70: $this->assertInstanceOf(ServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":70,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 95: $this->assertInstanceOf(SlimServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":95,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 109: ->createServerRequestFromGlobals()","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":109,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 117: $this->assertSame($serverRequestProphecy->reveal(), $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":117,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 131: ->createServerRequestFromGlobals()","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":131,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 139: $this->assertInstanceOf(ServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":139,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Preciso preparar a rota antes de executá-la, passando os argumentos esperados para o método. Isso é necessário para configurar o contexto correto da rota antes da execução.","query":"prepare route arguments","file":"Slim/Interfaces/RouteInterface.php","symbol":"prepare","line":118,"lang":"pt","candidates":[{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 72: ->prepare($routeArguments);","file":"Slim/Middleware/RoutingMiddleware.php","line":72,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 293: public function prepare(array $arguments): RouteInterface","file":"Slim/Routing/Route.php","line":293,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"디스패치 중 재귀적으로 다시 실행 가능한지 테스트하는 메서드 찾아줘.","query":"recursive dispatch test","file":"tests/AppTest.php","symbol":"testCanBeReExecutedRecursivelyDuringDispatch","line":1826,"lang":"ko","candidates":[{"text":"File: tests/AppTest.php\nLine 1826: public function testCanBeReExecutedRecursivelyDuringDispatch(): void","file":"tests/AppTest.php","line":1826,"lexical":0.65,"target":true},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 507: public function testCanBeReExecutedRecursivelyDuringDispatch(): void","file":"tests/MiddlewareDispatcherTest.php","line":507,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"¿Cómo configuro y verifico que el renderizador de errores para los logs se llame correctamente?","query":"test log error renderer","file":"tests/Handlers/ErrorHandlerTest.php","symbol":"testLogErrorRenderer","line":479,"lang":"es","candidates":[{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 434: public function testWriteToErrorLogDoesNotShowTipIfErrorLogRendererIsNotPlainText()","file":"tests/Handlers/ErrorHandlerTest.php","line":434,"lexical":0.65,"target":true},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 479: public function testLogErrorRenderer()","file":"tests/Handlers/ErrorHandlerTest.php","line":479,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"这段代码定义了哪些默认的请求体解析器?","query":"default body parsers","file":"Slim/Middleware/BodyParsingMiddleware.php","symbol":"registerDefaultBodyParsers","line":97,"lang":"zh","candidates":[{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 48: $this->registerDefaultBodyParsers();","file":"Slim/Middleware/BodyParsingMiddleware.php","line":48,"lexical":0.65,"target":true},{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 97: protected function registerDefaultBodyParsers(): void","file":"Slim/Middleware/BodyParsingMiddleware.php","line":97,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"¿Cómo se ejecuta la cadena de middlewares y se devuelve la respuesta?","query":"dispatch middleware handle","file":"Slim/MiddlewareDispatcher.php","symbol":"handle","line":280,"lang":"es","candidates":[{"text":"File: Slim/App.php\nLine 209: $response = $this->middlewareDispatcher->handle($request);","file":"Slim/App.php","line":209,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 17: interface MiddlewareDispatcherInterface extends RequestHandlerInterface","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":17,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 321: return $this->middlewareDispatcher->handle($request);","file":"Slim/Routing/Route.php","line":321,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ContentLengthMiddlewareTest.php\nLine 37: $response = $middlewareDispatcher->handle($request);","file":"tests/Middleware/ContentLengthMiddlewareTest.php","line":37,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 40: $middlewareDispatcher->handle($request);","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":40,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 63: $middlewareDispatcher->handle($request);","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":63,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 87: $middlewareDispatcher->handle($request);","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":87,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 108: $middlewareDispatcher->handle($request);","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":108,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 143: $middlewareDispatcher->handle($request);","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":143,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 73: $response = $middlewareDispatcher->handle($request);","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":73,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 98: $response = $middlewareDispatcher->handle($request);","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":98,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 123: $middlewareDispatcher->handle($request);","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":123,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 75: $middlewareDispatcher->handle($request);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":75,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 90: $middlewareDispatcher = $this->createMiddlewareDispatcher($requestHandler, null);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":90,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 94: $middlewareDispatcher->handle($request);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":94,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 127: $middlewareDispatcher = $this->createMiddlewareDispatcher($requestHandler, null);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":127,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 131: $middlewareDispatcher->handle($request);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":131,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 48: $middlewareDispatcher = $this->createMiddlewareDispatcher($requestHandlerProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":48,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 51: $response = $middlewareDispatcher->handle($requestProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":51,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 59: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, null);","file":"tests/MiddlewareDispatcherTest.php","line":59,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 63: $middlewareDispatcher->handle($request);","file":"tests/MiddlewareDispatcherTest.php","line":63,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 88: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, $containerProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":88,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 92: $middlewareDispatcher->handle($request);","file":"tests/MiddlewareDispatcherTest.php","line":92,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 112: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, null, $callableResolverProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":112,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 116: $middlewareDispatcher->handle($request);","file":"tests/MiddlewareDispatcherTest.php","line":116,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 132: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, null, $callableResolverProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":132,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 136: $middlewareDispatcher->handle($request);","file":"tests/MiddlewareDispatcherTest.php","line":136,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 199: $middlewareDispatcher->handle($request);","file":"tests/MiddlewareDispatcherTest.php","line":199,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 207: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, null);","file":"tests/MiddlewareDispatcherTest.php","line":207,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 211: $middlewareDispatcher->handle($request);","file":"tests/MiddlewareDispatcherTest.php","line":211,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 233: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, $containerProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":233,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 237: $middlewareDispatcher->handle($request);","file":"tests/MiddlewareDispatcherTest.php","line":237,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"HTTP 요청 메서드가 대문자인 경우에 대해 옵션을 가져오는 로직이 잘 작동하는지 확인하는 테스트 코드를 찾고 있어요. 다양한 HTTP 메서드들을 데이터 프로바이더로 넘겨서 검증하는 부분이 어디에 있나요?","query":"test HTTP methods","file":"tests/AppTest.php","symbol":"testGetPostPutPatchDeleteOptionsMethods","line":174,"lang":"ko","candidates":[{"text":"File: CHANGELOG.md\nLine 168: - [3123: Replace deprecated setMethods() in tests](https://github.com/slimphp/Slim/pull/3123) thanks to @solventt","file":"CHANGELOG.md","line":168,"lexical":0.44999999999999996,"target":false},{"text":"File: CHANGELOG.md\nLine 242: - [2997: Add hints to methods](https://github.com/slimphp/Slim/pull/2997) thanks to @evgsavosin - [3000: Fix route controller test](https://github.com/slimphp/Slim/pull/3000) thanks to @pawel-slowik","file":"CHANGELOG.md","line":242,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 40: public function testHttpNotAllowedExceptionGetAllowedMethods()","file":"tests/Exception/HttpExceptionTest.php","line":40,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Comment où je peux récupérer la liste de tous les objets de routage ?","query":"get all routes","file":"Slim/Interfaces/RouteCollectorInterface.php","symbol":"getRoutes","line":62,"lang":"fr","candidates":[{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 111: $this->assertSame(Dispatcher::METHOD_NOT_ALLOWED, $routingResults->getRouteStatus());","file":"tests/Middleware/RoutingMiddlewareTest.php","line":111,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 158: // status when the method `getRouteStatus()` gets called.","file":"tests/Middleware/RoutingMiddlewareTest.php","line":158,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Je cherche la logique qui permet de générer l'objet de requête HTTP à partir de l'environnement serveur. Peux-tu m'expliquer comment est choisie l'implémentation utilisée pour construire cette requête ?","query":"server request factory","file":"Slim/Factory/ServerRequestCreatorFactory.php","symbol":"ServerRequestCreatorFactory","line":21,"lang":"fr","candidates":[{"text":"File: README.md\nLine 44: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"README.md","line":44,"lexical":0.44999999999999996,"target":false},{"text":"File: README.md\nLine 47: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"README.md","line":47,"lexical":0.44999999999999996,"target":false},{"text":"File: README.md\nLine 55: In order for auto-detection to work and enable you to use `AppFactory::create()` and `App::run()` without having to manually create a `ServerRequest` you need to install one of the following implementations:","file":"README.md","line":55,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 20: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"Slim/App.php","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 189: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"Slim/App.php","line":189,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'Laminas\\Diactoros\\ServerRequestFactory';","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":17,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'Slim\\Psr7\\Factory\\ServerRequestFactory';","file":"Slim/Factory/Psr17/SlimPsr17Factory.php","line":17,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 16: use Slim\\Factory\\Psr17\\SlimHttpServerRequestCreator;","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":16,"lexical":0.65,"target":true},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 21: class ServerRequestCreatorFactory","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":21,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 47: if ($psr17Factory::isServerRequestCreatorAvailable()) {","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":47,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 48: $serverRequestCreator = $psr17Factory::getServerRequestCreator();","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":48,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 41: MockPsr17Factory::getServerRequestCreator();","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":41,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 17: use Slim\\Factory\\Psr17\\SlimHttpServerRequestCreator;","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":17,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 82: 'Slim\\\\Factory\\\\Psr17\\\\SlimHttpServerRequestCreator could not instantiate a decorated server request.'","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":82,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 24: use Slim\\Factory\\Psr17\\SlimHttpServerRequestCreator;","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":24,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 26: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":26,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 32: class ServerRequestCreatorFactoryTest extends TestCase","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":32,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 37: [SlimPsr17Factory::class, SlimServerRequest::class],","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":37,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 38: [HttpSoftPsr17Factory::class, HttpSoftServerRequest::class],","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":38,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 39: [NyholmPsr17Factory::class, NyholmServerRequest::class],","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":39,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 40: [GuzzlePsr17Factory::class, GuzzleServerRequest::class],","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":40,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 41: [LaminasDiactorosPsr17Factory::class, LaminasDiactorosServerRequest::class],","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":41,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 51: public function testCreateAppWithAllImplementations(string $psr17factory, string $expectedServerRequestClass)","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":51,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 54: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":54,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 56: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":56,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 65: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(true);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":65,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 67: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":67,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 82: ServerRequestCreatorFactory::create();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":82,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 90: ServerRequestCreatorFactory::setPsr17FactoryProvider($psr17FactoryProvider);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":90,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 91: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":91,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 93: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":93,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 99: * @runInSeparateProcess - ServerRequestCreatorFactory::setServerRequestCreator breaks other tests","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":99,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"帮我看看测试用例,我想确认一下当容器中没有找到匹配项时,闭包和中间件是如何被解析的。","query":"callable resolver container","file":"tests/CallableResolverTest.php","symbol":"CallableResolverTest","line":24,"lang":"zh","candidates":[{"text":"File: Slim/App.php\nLine 65: $callableResolver ?? new CallableResolver($container),","file":"Slim/App.php","line":65,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 74: $middlewareDispatcher = new MiddlewareDispatcher($routeRunner, $this->callableResolver, $container);","file":"Slim/App.php","line":74,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 86: $callableResolver = $container->has(CallableResolverInterface::class)","file":"Slim/Factory/AppFactory.php","line":86,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 88: $callableResolverFromContainer = $container->get(CallableResolverInterface::class)","file":"Slim/Factory/AppFactory.php","line":88,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 90: ? $callableResolverFromContainer","file":"Slim/Factory/AppFactory.php","line":90,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 140: $this->middlewareDispatcher = new MiddlewareDispatcher($this, $callableResolver, $container);","file":"Slim/Routing/Route.php","line":140,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 330: $this->middlewareDispatcher = new MiddlewareDispatcher($inner, $this->callableResolver, $this->container);","file":"Slim/Routing/Route.php","line":330,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 51: $this->routeCollector = $routeCollector ?? new RouteCollector($responseFactory, $callableResolver, $container);","file":"Slim/Routing/RouteCollectorProxy.php","line":51,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 99: $callableResolver = new CallableResolver($containerProphecy->reveal());","file":"tests/AppTest.php","line":99,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 51: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":51,"lexical":0.65,"target":true},{"text":"File: tests/CallableResolverTest.php\nLine 76: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":76,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 88: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":88,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 101: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":101,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 118: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":118,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 135: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":135,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 154: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":154,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 171: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":171,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 192: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":192,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 215: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":215,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 232: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":232,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 252: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":252,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 259: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":259,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 270: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":270,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 280: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":280,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 288: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":288,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 300: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":300,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 314: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":314,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 326: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":326,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 343: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":343,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 349: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":349,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 373: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":373,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 383: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":383,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"想要获取当前路由匹配到的所有参数数组,目前应该有一个返回路由参数集合的方法。","query":"route arguments","file":"Slim/Routing/Route.php","symbol":"getArguments","line":246,"lang":"zh","candidates":[{"text":"File: CHANGELOG.md\nLine 19: - Stop decoding route arguments twice to prevent route constraint bypass ([GHSA-h377-p8x2-prf9](https://github.com/slimphp/Slim/security/advisories/GHSA-h377-p8x2-prf9))","file":"CHANGELOG.md","line":19,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 23: - The `$urlDecode` parameter of `RoutingResults::getRouteArguments()` is now ignored ([GHSA-h377-p8x2-prf9](https://github.com/slimphp/Slim/security/advisories/GHSA-h377-p8x2-prf9))","file":"CHANGELOG.md","line":23,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 22: protected bool $appendRouteArgumentsToRequestAttributes;","file":"Slim/Handlers/Strategies/RequestHandler.php","line":22,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 24: public function __construct(bool $appendRouteArgumentsToRequestAttributes = false)","file":"Slim/Handlers/Strategies/RequestHandler.php","line":24,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 26: $this->appendRouteArgumentsToRequestAttributes = $appendRouteArgumentsToRequestAttributes;","file":"Slim/Handlers/Strategies/RequestHandler.php","line":26,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 32: * @param array $routeArguments","file":"Slim/Handlers/Strategies/RequestHandler.php","line":32,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 38: array $routeArguments","file":"Slim/Handlers/Strategies/RequestHandler.php","line":38,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 40: if ($this->appendRouteArgumentsToRequestAttributes) {","file":"Slim/Handlers/Strategies/RequestHandler.php","line":40,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestHandler.php\nLine 41: foreach ($routeArguments as $k => $v) {","file":"Slim/Handlers/Strategies/RequestHandler.php","line":41,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 18: * Default route callback strategy with route parameters as an array of arguments.","file":"Slim/Handlers/Strategies/RequestResponse.php","line":18,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 26: * @param array $routeArguments","file":"Slim/Handlers/Strategies/RequestResponse.php","line":26,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 32: array $routeArguments","file":"Slim/Handlers/Strategies/RequestResponse.php","line":32,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 34: foreach ($routeArguments as $k => $v) {","file":"Slim/Handlers/Strategies/RequestResponse.php","line":34,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 39: return $callable($request, $response, $routeArguments);","file":"Slim/Handlers/Strategies/RequestResponse.php","line":39,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 20: * Route callback strategy with route parameters as individual arguments.","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":20,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 29: * @param array $routeArguments","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":29,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 35: array $routeArguments","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":35,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 38: return $callable($request, $response, ...array_values($routeArguments));","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":38,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 19: * Route callback strategy with route parameters as individual arguments.","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":19,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 28: * @param array $routeArguments","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":28,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 34: array $routeArguments","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":34,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 37: return $callable($request, $response, ...$routeArguments);","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":37,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/InvocationStrategyInterface.php\nLine 27: * @param array $routeArguments The route's placeholder arguments","file":"Slim/Interfaces/InvocationStrategyInterface.php","line":27,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/InvocationStrategyInterface.php\nLine 35: array $routeArguments","file":"Slim/Interfaces/InvocationStrategyInterface.php","line":35,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 84: * Get route arguments","file":"Slim/Interfaces/RouteInterface.php","line":84,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 93: * @deprecated 4.14.1 Use a middleware for custom route arguments now.","file":"Slim/Interfaces/RouteInterface.php","line":93,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 98: * Replace route arguments","file":"Slim/Interfaces/RouteInterface.php","line":98,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 102: * @deprecated 4.14.1 Use a middleware for custom route arguments now.","file":"Slim/Interfaces/RouteInterface.php","line":102,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 68: $routeArguments = $routingResults->getRouteArguments();","file":"Slim/Middleware/RoutingMiddleware.php","line":68,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 72: ->prepare($routeArguments);","file":"Slim/Middleware/RoutingMiddleware.php","line":72,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 76: * Route arguments parameters","file":"Slim/Routing/Route.php","line":76,"lexical":0.6000000000000001,"target":true},{"text":"File: Slim/Routing/Route.php\nLine 254: public function setArguments(array $arguments, bool $includeInSavedArguments = true): RouteInterface","file":"Slim/Routing/Route.php","line":254,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"경로를 식별자로 찾아서 해결하는 로직이 잘 작동하는지 검증하는 테스트 코드 어디 있어?","query":"resolve route test","file":"tests/Routing/RouteResolverTest.php","symbol":"testResolveRoute","line":72,"lang":"ko","candidates":[{"text":"File: tests/CallableResolverTest.php\nLine 53: $callableRoute = $resolver->resolveRoute($test);","file":"tests/CallableResolverTest.php","line":53,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 78: $callableRoute = $resolver->resolveRoute($test);","file":"tests/CallableResolverTest.php","line":78,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 90: $callableRoute = $resolver->resolveRoute(__NAMESPACE__ . '\\testAdvancedCallable');","file":"tests/CallableResolverTest.php","line":90,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 120: $callableRoute = $resolver->resolveRoute('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":120,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 137: $callableRoute = $resolver->resolveRoute([CallableTest::class, 'toCall']);","file":"tests/CallableResolverTest.php","line":137,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 159: $resolver->resolveRoute('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":159,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 176: $resolver->resolveRoute([CallableTest::class, 'toCall']);","file":"tests/CallableResolverTest.php","line":176,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 234: $callableRoute = $resolver->resolveRoute('Slim\\Tests\\Mocks\\InvokableTest');","file":"tests/CallableResolverTest.php","line":234,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 260: $callableRoute = $resolver->resolveRoute(RequestHandlerTest::class);","file":"tests/CallableResolverTest.php","line":260,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 351: $callableRoute = $resolver->resolveRoute(RequestHandlerTest::class . ':custom');","file":"tests/CallableResolverTest.php","line":351,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteResolverTest.php\nLine 24: class RouteResolverTest extends TestCase","file":"tests/Routing/RouteResolverTest.php","line":24,"lexical":0.65,"target":true},{"text":"File: tests/Routing/RouteResolverTest.php\nLine 72: public function testResolveRoute()","file":"tests/Routing/RouteResolverTest.php","line":72,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 814: public function testRouteCallableIsResolvedUsingContainerWhenCallableResolverIsPresent()","file":"tests/Routing/RouteTest.php","line":814,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Comment la méthode createServerRequestFromGlobals instancie-t-elle la requête serveur ?","query":"ServerRequestCreator createServerRequestFromGlobals","file":"Slim/Factory/Psr17/ServerRequestCreator.php","symbol":"ServerRequestCreator","line":17,"lang":"fr","candidates":[{"text":"File: Slim/App.php\nLine 190: $request = $serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/App.php","line":190,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 39: $request = $this->serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":39,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 56: $this->assertInstanceOf(ServerRequest::class, $slimHttpServerRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":56,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 75: $slimHttpServerRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":75,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 98: $slimHttpServerRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":98,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 57: $serverRequest = $serverRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":57,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 70: $this->assertInstanceOf(ServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":70,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 95: $this->assertInstanceOf(SlimServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":95,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 117: $this->assertSame($serverRequestProphecy->reveal(), $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":117,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 139: $this->assertInstanceOf(ServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":139,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"psr17ファクトリとリクエストの実装一覧を返すデータプロバイダを探して","query":"psr17 factory implementation","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","symbol":"provideImplementations","line":34,"lang":"ja","candidates":[{"text":"File: tests/Factory/AppFactoryTest.php\nLine 70: public function testCreateAppWithAllImplementations(string $psr17factory, string $expectedResponseFactoryClass)","file":"tests/Factory/AppFactoryTest.php","line":70,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 51: public function testCreateAppWithAllImplementations(string $psr17factory, string $expectedServerRequestClass)","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":51,"lexical":0.65,"target":true}]} {"site":"project_search","repo":"slim","task":"미들웨어 디스패처 생성하는 메서드 찾아줘","query":"create MiddlewareDispatcher","file":"tests/TestCase.php","symbol":"createMiddlewareDispatcher","line":78,"lang":"ko","candidates":[{"text":"File: tests/Middleware/ContentLengthMiddlewareTest.php\nLine 31: $middlewareDispatcher = $this->createMiddlewareDispatcher(","file":"tests/Middleware/ContentLengthMiddlewareTest.php","line":31,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 34: $middlewareDispatcher = $this->createMiddlewareDispatcher(","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":34,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 57: $middlewareDispatcher = $this->createMiddlewareDispatcher(","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":57,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 81: $middlewareDispatcher = $this->createMiddlewareDispatcher(","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":81,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 102: $middlewareDispatcher = $this->createMiddlewareDispatcher(","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":102,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 137: $middlewareDispatcher = $this->createMiddlewareDispatcher(","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":137,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 67: $middlewareDispatcher = $this->createMiddlewareDispatcher(","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":67,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 92: $middlewareDispatcher = $this->createMiddlewareDispatcher(","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":92,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 115: $middlewareDispatcher = $this->createMiddlewareDispatcher(","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":115,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 69: $middlewareDispatcher = $this->createMiddlewareDispatcher(","file":"tests/Middleware/RoutingMiddlewareTest.php","line":69,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 90: $middlewareDispatcher = $this->createMiddlewareDispatcher($requestHandler, null);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":90,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 127: $middlewareDispatcher = $this->createMiddlewareDispatcher($requestHandler, null);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":127,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 48: $middlewareDispatcher = $this->createMiddlewareDispatcher($requestHandlerProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":48,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 59: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, null);","file":"tests/MiddlewareDispatcherTest.php","line":59,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 88: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, $containerProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":88,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 112: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, null, $callableResolverProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":112,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 132: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, null, $callableResolverProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":132,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 191: $middlewareDispatcher = $this->createMiddlewareDispatcher(","file":"tests/MiddlewareDispatcherTest.php","line":191,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 207: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, null);","file":"tests/MiddlewareDispatcherTest.php","line":207,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 233: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, $containerProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":233,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 257: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, $containerProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":257,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 269: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, null);","file":"tests/MiddlewareDispatcherTest.php","line":269,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 297: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, $containerProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":297,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 310: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, null);","file":"tests/MiddlewareDispatcherTest.php","line":310,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 332: $middlewareDispatcher = $this->createMiddlewareDispatcher($handler, null, $callableResolverProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":332,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 348: $dispatcher = $this->createMiddlewareDispatcher($kernel, null);","file":"tests/MiddlewareDispatcherTest.php","line":348,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 435: $dispatcher = $this->createMiddlewareDispatcher($kernel, null);","file":"tests/MiddlewareDispatcherTest.php","line":435,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 460: $dispatcher = $this->createMiddlewareDispatcher($kernel, null);","file":"tests/MiddlewareDispatcherTest.php","line":460,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 479: $dispatcher = $this->createMiddlewareDispatcher($kernel, null);","file":"tests/MiddlewareDispatcherTest.php","line":479,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 496: $dispatcher = $this->createMiddlewareDispatcher($kernel, null);","file":"tests/MiddlewareDispatcherTest.php","line":496,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 531: $dispatcher = $this->createMiddlewareDispatcher($kernel, null);","file":"tests/MiddlewareDispatcherTest.php","line":531,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 572: $dispatcher = $this->createMiddlewareDispatcher($kernel, $container);","file":"tests/MiddlewareDispatcherTest.php","line":572,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"「ルーティングの getCallable メソッドが呼び出し可能なコールバックを返すことを確認するテストケースが見つからない」というバグレポートを作成してほしい。","query":"route callable test","file":"tests/Routing/RouteTest.php","symbol":"testGetCallable","line":146,"lang":"ja","candidates":[{"text":"File: tests/CallableResolverTest.php\nLine 53: $callableRoute = $resolver->resolveRoute($test);","file":"tests/CallableResolverTest.php","line":53,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 78: $callableRoute = $resolver->resolveRoute($test);","file":"tests/CallableResolverTest.php","line":78,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 90: $callableRoute = $resolver->resolveRoute(__NAMESPACE__ . '\\testAdvancedCallable');","file":"tests/CallableResolverTest.php","line":90,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 120: $callableRoute = $resolver->resolveRoute('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":120,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 137: $callableRoute = $resolver->resolveRoute([CallableTest::class, 'toCall']);","file":"tests/CallableResolverTest.php","line":137,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 159: $resolver->resolveRoute('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":159,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 176: $resolver->resolveRoute([CallableTest::class, 'toCall']);","file":"tests/CallableResolverTest.php","line":176,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 234: $callableRoute = $resolver->resolveRoute('Slim\\Tests\\Mocks\\InvokableTest');","file":"tests/CallableResolverTest.php","line":234,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 260: $callableRoute = $resolver->resolveRoute(RequestHandlerTest::class);","file":"tests/CallableResolverTest.php","line":260,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 351: $callableRoute = $resolver->resolveRoute(RequestHandlerTest::class . ':custom');","file":"tests/CallableResolverTest.php","line":351,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 359: $this->assertInstanceOf(RequestHandlerTest::class, $callableRoute[0]);","file":"tests/CallableResolverTest.php","line":359,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 530: public function testRouteCallableClassNotFoundThrowException(): void","file":"tests/CallableResolverTest.php","line":530,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 485: public function testRouteCallableDoesNotAppendEchoedOutput()","file":"tests/Routing/RouteTest.php","line":485,"lexical":0.65,"target":true},{"text":"File: tests/Routing/RouteTest.php\nLine 509: public function testRouteCallableAppendsCorrectOutputToResponse()","file":"tests/Routing/RouteTest.php","line":509,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 763: $route->setCallable('\\Slim\\Tests\\Mocks\\CallableTest:toCall'); //Then we fix it here.","file":"tests/Routing/RouteTest.php","line":763,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 802: $route->setCallable('CallableTest2:toCall'); //Then we fix it here.","file":"tests/Routing/RouteTest.php","line":802,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 814: public function testRouteCallableIsResolvedUsingContainerWhenCallableResolverIsPresent()","file":"tests/Routing/RouteTest.php","line":814,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Fehlerbericht: Beim Aufruf von getResponseFactory(), getStreamFactory() und getServerRequestCreator() in der Mock-Klasse sollte jeweils eine RuntimeException mit der entsprechenden Fehlermeldung geworfen werden, da die Instandanziierung der zugrunde liegenden Fabriken fehlschlägt.","query":"Psr17 factory exception mock","file":"tests/Factory/Psr17/Psr17FactoryTest.php","symbol":"Psr17FactoryTest","line":17,"lang":"de","candidates":[{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 22: $this->expectExceptionMessage('Slim\\\\Tests\\\\Mocks\\\\MockPsr17Factory could not instantiate a response factory.');","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":22,"lexical":0.65,"target":true},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 30: $this->expectExceptionMessage('Slim\\\\Tests\\\\Mocks\\\\MockPsr17Factory could not instantiate a stream factory.');","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":30,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 38: $this->expectExceptionMessage('Slim\\\\Tests\\\\Mocks\\\\MockPsr17Factory' .","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":38,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"I'm trying to figure out how the incoming request path and HTTP verb are passed to the dispatcher to determine which handler should run. Can you show me the logic that normalizes the URI and triggers the dispatch process?","query":"dispatch uri method","file":"Slim/Routing/RouteResolver.php","symbol":"computeRoutingResults","line":40,"lang":"en","candidates":[{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 20: public function dispatch(string $method, string $uri): RoutingResults;","file":"Slim/Interfaces/DispatcherInterface.php","line":20,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 63: public function dispatch(string $method, string $uri): RoutingResults","file":"Slim/Routing/Dispatcher.php","line":63,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 66: $results = $dispatcher->dispatch($method, $uri);","file":"Slim/Routing/Dispatcher.php","line":66,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 76: return $dispatcher->getAllowedMethods($uri);","file":"Slim/Routing/Dispatcher.php","line":76,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 33: public function dispatch($httpMethod, $uri): array","file":"Slim/Routing/FastRouteDispatcher.php","line":33,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 77: $result = $this->dispatchVariableRoute($this->variableRouteData[$httpMethod], $uri);","file":"Slim/Routing/FastRouteDispatcher.php","line":77,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteResolver.php\nLine 46: return $this->dispatcher->dispatch($method, $uri);","file":"Slim/Routing/RouteResolver.php","line":46,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Routing/RoutingResults.php\nLine 106: return $this->dispatcher->getAllowedMethods($this->uri);","file":"Slim/Routing/RoutingResults.php","line":106,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 27: public function testFoundDispatches($method, $uri, $callback, $handler, $argDict)","file":"tests/Routing/FastRouteDispatcherTest.php","line":27,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 32: $results = $dispatcher->dispatch($method, $uri);","file":"tests/Routing/FastRouteDispatcherTest.php","line":32,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 64: public function testNotFoundDispatches($method, $uri, $callback)","file":"tests/Routing/FastRouteDispatcherTest.php","line":64,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 69: $results = $dispatcher->dispatch($method, $uri);","file":"tests/Routing/FastRouteDispatcherTest.php","line":69,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 82: public function testMethodNotAllowedDispatches($method, $uri, $callback, $allowedMethods)","file":"tests/Routing/FastRouteDispatcherTest.php","line":82,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 87: $results = $dispatcher->dispatch($method, $uri);","file":"tests/Routing/FastRouteDispatcherTest.php","line":87,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 105: $results = $dispatcher->getAllowedMethods($uri);","file":"tests/Routing/FastRouteDispatcherTest.php","line":105,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"O sistema não está retornando a definição da rota atual dentro do contexto da requisição, impedindo o acesso aos dados do endpoint quando tentamos recuperar o objeto de roteamento.","query":"get route context","file":"Slim/Routing/RouteContext.php","symbol":"getRoute","line":67,"lang":"pt","candidates":[{"text":"File: Slim/Routing/RouteRunner.php\nLine 60: if ($request->getAttribute(RouteContext::ROUTING_RESULTS) === null) {","file":"Slim/Routing/RouteRunner.php","line":60,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 73: $route = $request->getAttribute(RouteContext::ROUTE);","file":"Slim/Routing/RouteRunner.php","line":73,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 192: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":192,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 232: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":232,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 284: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":284,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 328: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":328,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 367: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":367,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 638: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":638,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 855: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":855,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 937: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":937,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1057: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1057,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1100: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1100,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1131: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1131,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1172: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1172,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1213: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1213,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1254: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1254,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1296: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1296,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1345: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1345,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1386: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1386,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1411: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1411,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1452: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1452,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1490: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1490,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1532: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1532,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1580: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1580,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1621: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1621,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1663: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1663,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1717: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1717,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1814: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1814,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1973: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":1973,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 2021: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":2021,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 2036: $requestProphecy2->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":2036,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 2076: $requestProphecy->getAttribute(RouteContext::ROUTING_RESULTS)->willReturn(null);","file":"tests/AppTest.php","line":2076,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"미들웨어로 사용할 콜러블을 가져오는 로직이 어디에 구현되어 있어?","query":"resolve middleware","file":"Slim/CallableResolver.php","symbol":"resolveMiddleware","line":76,"lang":"ko","candidates":[{"text":"File: Slim/App.php\nLine 74: $middlewareDispatcher = new MiddlewareDispatcher($routeRunner, $this->callableResolver, $container);","file":"Slim/App.php","line":74,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/CallableResolver.php\nLine 76: public function resolveMiddleware($toResolve): callable","file":"Slim/CallableResolver.php","line":76,"lexical":0.6000000000000001,"target":true},{"text":"File: Slim/CallableResolver.php\nLine 78: return $this->resolveByPredicate($toResolve, [$this, 'isMiddleware'], 'process');","file":"Slim/CallableResolver.php","line":78,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/CallableResolver.php\nLine 118: private function isMiddleware($toResolve): bool","file":"Slim/CallableResolver.php","line":118,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/CallableResolver.php\nLine 120: return $toResolve instanceof MiddlewareInterface;","file":"Slim/CallableResolver.php","line":120,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/AdvancedCallableResolverInterface.php\nLine 27: public function resolveMiddleware($toResolve): callable;","file":"Slim/Interfaces/AdvancedCallableResolverInterface.php","line":27,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 176: $callable = $this->callableResolver->resolveMiddleware($this->middleware);","file":"Slim/MiddlewareDispatcher.php","line":176,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 185: $callable = $this->callableResolver->resolve($this->middleware);","file":"Slim/MiddlewareDispatcher.php","line":185,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 192: $resolved = $this->middleware;","file":"Slim/MiddlewareDispatcher.php","line":192,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 210: throw new RuntimeException(sprintf('Middleware %s does not exist', $resolved));","file":"Slim/MiddlewareDispatcher.php","line":210,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 140: $this->middlewareDispatcher = new MiddlewareDispatcher($this, $callableResolver, $container);","file":"Slim/Routing/Route.php","line":140,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 330: $this->middlewareDispatcher = new MiddlewareDispatcher($inner, $this->callableResolver, $this->container);","file":"Slim/Routing/Route.php","line":330,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 61: $routingMiddleware = new RoutingMiddleware($this->routeResolver, $this->routeParser);","file":"Slim/Routing/RouteRunner.php","line":61,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 54: $callableMiddleware = $resolver->resolveMiddleware($test);","file":"tests/CallableResolverTest.php","line":54,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 79: $callableMiddleware = $resolver->resolveMiddleware($test);","file":"tests/CallableResolverTest.php","line":79,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 91: $callableMiddleware = $resolver->resolveMiddleware(__NAMESPACE__ . '\\testAdvancedCallable');","file":"tests/CallableResolverTest.php","line":91,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 104: $callableMiddleware = $resolver->resolveMiddleware([$obj, 'toCall']);","file":"tests/CallableResolverTest.php","line":104,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 121: $callableMiddleware = $resolver->resolveMiddleware('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":121,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 138: $callableMiddleware = $resolver->resolveMiddleware([CallableTest::class, 'toCall']);","file":"tests/CallableResolverTest.php","line":138,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 163: $resolver->resolveMiddleware('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":163,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 180: $resolver->resolveMiddleware([CallableTest::class ,'toCall']);","file":"tests/CallableResolverTest.php","line":180,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 195: $callableMiddleware = $resolver->resolveMiddleware('callable_service:toCall');","file":"tests/CallableResolverTest.php","line":195,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 218: $callableMiddleware = $resolver->resolveMiddleware('an_invokable');","file":"tests/CallableResolverTest.php","line":218,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 235: $callableMiddleware = $resolver->resolveMiddleware('Slim\\Tests\\Mocks\\InvokableTest');","file":"tests/CallableResolverTest.php","line":235,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 271: $resolver->resolveMiddleware(RequestHandlerTest::class);","file":"tests/CallableResolverTest.php","line":271,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 301: $resolver->resolveMiddleware($obj);","file":"tests/CallableResolverTest.php","line":301,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 344: $resolver->resolveMiddleware('a_requesthandler');","file":"tests/CallableResolverTest.php","line":344,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 352: $callableMiddleware = $resolver->resolveMiddleware(RequestHandlerTest::class . ':custom');","file":"tests/CallableResolverTest.php","line":352,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 392: $callableRouteMiddleware = $resolver->resolveMiddleware($obj);","file":"tests/CallableResolverTest.php","line":392,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 450: $resolver->resolveMiddleware('callable_service:notFound');","file":"tests/CallableResolverTest.php","line":450,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 483: $resolver->resolveMiddleware('notFound');","file":"tests/CallableResolverTest.php","line":483,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 516: $resolver->resolveMiddleware('Unknown:notFound');","file":"tests/CallableResolverTest.php","line":516,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"我需要配置路由基础路径,以便在生成 URL 时能自动加上这个前缀。请帮我找到设置这个基础路径的方法。","query":"set base path","file":"Slim/Interfaces/RouteCollectorInterface.php","symbol":"setBasePath","line":55,"lang":"zh","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 53: * Set the base path used in pathFor()","file":"Slim/Interfaces/RouteCollectorInterface.php","line":53,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 55: public function setBasePath(string $basePath): RouteCollectorInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":55,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 40: * Set the RouteCollectorProxy's base path","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":40,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 43: public function setBasePath(string $basePath): RouteCollectorProxyInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":43,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 164: * Set the base path used in urlFor()","file":"Slim/Routing/RouteCollector.php","line":164,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 166: public function setBasePath(string $basePath): RouteCollectorInterface","file":"Slim/Routing/RouteCollector.php","line":166,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 99: public function setBasePath(string $basePath): RouteCollectorProxyInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":99,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 101: $this->routeCollector->setBasePath($basePath);","file":"Slim/Routing/RouteCollectorProxy.php","line":101,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 98: public function testGetSetBasePath()","file":"tests/Routing/RouteCollectorProxyTest.php","line":98,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 112: $routeCollectorProxy->setBasePath($basePath);","file":"tests/Routing/RouteCollectorProxyTest.php","line":112,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 117: $routeCollectorProxy->setBasePath('/new/base/path');","file":"tests/Routing/RouteCollectorProxyTest.php","line":117,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 43: public function testGetSetBasePath()","file":"tests/Routing/RouteCollectorTest.php","line":43,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 51: $routeCollector->setBasePath($basePath);","file":"tests/Routing/RouteCollectorTest.php","line":51,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 115: $routeCollector->setBasePath('/base/path');","file":"tests/Routing/RouteCollectorTest.php","line":115,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 105: $routeCollector->setBasePath('/app');","file":"tests/Routing/RouteParserTest.php","line":105,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 134: $routeCollector->setBasePath('/app');","file":"tests/Routing/RouteParserTest.php","line":134,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"¿Dónde se inicializa la pila de capas intermedias con el manejador de peticiones interno?","query":"seed middleware stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","symbol":"seedMiddlewareStack","line":42,"lang":"es","candidates":[{"text":"File: Slim/App.php\nLine 76: $middlewareDispatcher->seedMiddlewareStack($routeRunner);","file":"Slim/App.php","line":76,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 40: * Seed the middleware stack with the inner request handler","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":40,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 42: public function seedMiddlewareStack(RequestHandlerInterface $kernel): void;","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":42,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 55: $this->seedMiddlewareStack($kernel);","file":"Slim/MiddlewareDispatcher.php","line":55,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 63: public function seedMiddlewareStack(RequestHandlerInterface $kernel): void","file":"Slim/MiddlewareDispatcher.php","line":63,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 143: ->seedMiddlewareStack(Argument::any())","file":"tests/AppTest.php","line":143,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"目前的路由收集器接口缺少一个用于指定路由缓存文件路径的方法,这会导致无法在生产环境下通过文件缓存来优化路由匹配性能。需要增加一个能够设置缓存文件路径并返回接口实例的方法,同时要处理文件路径非法或写入失败的异常情况。","query":"route cache path","file":"Slim/Interfaces/RouteCollectorInterface.php","symbol":"setCacheFile","line":45,"lang":"zh","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 35: * Get path to FastRoute cache file","file":"Slim/Interfaces/RouteCollectorInterface.php","line":35,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 40: * Set path to FastRoute cache file","file":"Slim/Interfaces/RouteCollectorInterface.php","line":40,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 53: * Path to fast route cache file. Set to null to disable route caching","file":"Slim/Routing/RouteCollector.php","line":53,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"グループ化されたミドルウェアを個別のルートに適用する際、既存のディスパッチャを新しいものに置き換えて、グループ内のミドルウェアを逆順に再適用しようとしています。この処理が正しく行われているか確認してください。","query":"group middleware route","file":"Slim/Routing/Route.php","symbol":"appendGroupMiddlewareToRoute","line":327,"lang":"ja","candidates":[{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 22: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":22,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 26: public function add($middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":26,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 29: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":29,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 31: public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":31,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 37: public function appendMiddlewareToDispatcher(MiddlewareDispatcher $dispatcher): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":37,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 318: $this->appendGroupMiddlewareToRoute();","file":"Slim/Routing/Route.php","line":318,"lexical":0.65,"target":true},{"text":"File: Slim/Routing/Route.php\nLine 327: protected function appendGroupMiddlewareToRoute(): void","file":"Slim/Routing/Route.php","line":327,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 74: public function add($middleware): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":74,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 83: public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":83,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 93: public function appendMiddlewareToDispatcher(MiddlewareDispatcher $dispatcher): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":93,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 866: public function testAddMiddlewareOnRouteGroup(): void","file":"tests/AppTest.php","line":866,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 948: public function testAddMiddlewareOnTwoRouteGroup(): void","file":"tests/AppTest.php","line":948,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"获取路由分组模式的方法","query":"route group pattern","file":"Slim/Interfaces/RouteGroupInterface.php","symbol":"getPattern","line":42,"lang":"zh","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 93: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":93,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 118: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":118,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 40: * Get the RouteGroup's pattern","file":"Slim/Interfaces/RouteGroupInterface.php","line":40,"lexical":0.65,"target":true},{"text":"File: Slim/Routing/RouteCollector.php\nLine 230: public function group(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollector.php","line":230,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 232: $routeGroup = $this->createGroup($pattern, $callable);","file":"Slim/Routing/RouteCollector.php","line":232,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 244: protected function createGroup(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollector.php","line":244,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 247: return new RouteGroup($pattern, $callable, $this->callableResolver, $routeCollectorProxy);","file":"Slim/Routing/RouteCollector.php","line":247,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 175: public function group(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":175,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 179: return $this->routeCollector->group($pattern, $callable);","file":"Slim/Routing/RouteCollectorProxy.php","line":179,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 577: public function testRouteGroupPattern(): void","file":"tests/AppTest.php","line":577,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 456: $routeCollectorProxy->group($pattern, $callable);","file":"tests/Routing/RouteCollectorProxyTest.php","line":456,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"devuelve una fábrica de respuestas válida o lanza una excepción","query":"get response factory","file":"Slim/Factory/Psr17/Psr17Factory.php","symbol":"getResponseFactory","line":35,"lang":"es","candidates":[{"text":"File: Slim/App.php\nLine 153: $this->getResponseFactory(),","file":"Slim/App.php","line":153,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 220: $emptyBody = $this->responseFactory->createResponse()->getBody();","file":"Slim/App.php","line":220,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 81: $responseFactoryFromContainer = $container->get(ResponseFactoryInterface::class)","file":"Slim/Factory/AppFactory.php","line":81,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 141: $responseFactory = $psr17factory::getResponseFactory();","file":"Slim/Factory/AppFactory.php","line":141,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 35: public static function getResponseFactory(): ResponseFactoryInterface","file":"Slim/Factory/Psr17/Psr17Factory.php","line":35,"lexical":0.65,"target":true},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 41: throw new RuntimeException(get_called_class() . ' could not instantiate a response factory.');","file":"Slim/Factory/Psr17/Psr17Factory.php","line":41,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 34: throw new RuntimeException(get_called_class() . ' could not instantiate a decorated response factory.');","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":34,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/Psr17FactoryInterface.php\nLine 22: public static function getResponseFactory(): ResponseFactoryInterface;","file":"Slim/Interfaces/Psr17FactoryInterface.php","line":22,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 23: public function getResponseFactory(): ResponseFactoryInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":23,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 58: public function getResponseFactory(): ResponseFactoryInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":58,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 82: $responseFactory = $responseFactoryProperty->getValue($routeCollector);","file":"tests/Factory/AppFactoryTest.php","line":82,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 94: $this->assertInstanceOf(DecoratedResponseFactory::class, $app->getResponseFactory());","file":"tests/Factory/AppFactoryTest.php","line":94,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 147: $this->assertInstanceOf(SlimResponseFactory::class, $app->getResponseFactory());","file":"tests/Factory/AppFactoryTest.php","line":147,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 178: $app->getResponseFactory()","file":"tests/Factory/AppFactoryTest.php","line":178,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 235: $app->getResponseFactory()","file":"tests/Factory/AppFactoryTest.php","line":235,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 281: $responseFactory = $app->getResponseFactory();","file":"tests/Factory/AppFactoryTest.php","line":281,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 287: $this->assertSame($streamFactoryProphecy->reveal(), $streamFactoryProperty->getValue($response));","file":"tests/Factory/AppFactoryTest.php","line":287,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 313: ->get(ResponseFactoryInterface::class)","file":"tests/Factory/AppFactoryTest.php","line":313,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 360: $this->assertSame($app->getResponseFactory(), $responseFactoryProphecy->reveal());","file":"tests/Factory/AppFactoryTest.php","line":360,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 19: public function testGetResponseFactoryThrowsRuntimeException()","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":19,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 24: MockPsr17Factory::getResponseFactory();","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":24,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 81: $reflectionProperty = $class->getProperty('responseFactory');","file":"tests/Handlers/ErrorHandlerTest.php","line":81,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 83: $reflectionProperty->setValue($handler, $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":83,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 110: $handler = new ErrorHandler($this->getCallableResolver(), $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":110,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 127: $handler = new ErrorHandler($this->getCallableResolver(), $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":127,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 155: $handler = new ErrorHandler($this->getCallableResolver(), $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":155,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 184: $handler = new ErrorHandler($this->getCallableResolver(), $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":184,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 231: $reflectionProperty = $class->getProperty('responseFactory');","file":"tests/Handlers/ErrorHandlerTest.php","line":231,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 233: $reflectionProperty->setValue($handler, $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":233,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 263: $reflectionProperty = $class->getProperty('responseFactory');","file":"tests/Handlers/ErrorHandlerTest.php","line":263,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 265: $reflectionProperty->setValue($handler, $this->getResponseFactory());","file":"tests/Handlers/ErrorHandlerTest.php","line":265,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 294: $reflectionProperty = $class->getProperty('responseFactory');","file":"tests/Handlers/ErrorHandlerTest.php","line":294,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"创建用于测试序列中间件行为的模拟类,该类在请求头中添加前缀标识并在处理请求后添加后缀标识","query":"mock sequence middleware","file":"tests/Mocks/MockSequenceMiddleware.php","symbol":"MockSequenceMiddleware","line":18,"lang":"zh","candidates":[{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 25: use Slim\\Tests\\Mocks\\MockSequenceMiddleware;","file":"tests/MiddlewareDispatcherTest.php","line":25,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 420: MockSequenceMiddleware::$id = '2';","file":"tests/MiddlewareDispatcherTest.php","line":420,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 438: $dispatcher->addDeferred(MockSequenceMiddleware::class);","file":"tests/MiddlewareDispatcherTest.php","line":438,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 457: MockSequenceMiddleware::$hasBeenInstantiated = false;","file":"tests/MiddlewareDispatcherTest.php","line":457,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 461: $dispatcher->addDeferred(MockSequenceMiddleware::class);","file":"tests/MiddlewareDispatcherTest.php","line":461,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 465: $this->assertFalse(MockSequenceMiddleware::$hasBeenInstantiated);","file":"tests/MiddlewareDispatcherTest.php","line":465,"lexical":0.65,"target":false},{"text":"File: tests/Mocks/MockSequenceMiddleware.php\nLine 18: class MockSequenceMiddleware implements MiddlewareInterface","file":"tests/Mocks/MockSequenceMiddleware.php","line":18,"lexical":0.65,"target":true}]} {"site":"project_search","repo":"slim","task":"リクエストメソッドとパスからルーティング結果を取得する処理を探して","query":"dispatch routing result","file":"Slim/Routing/Dispatcher.php","symbol":"dispatch","line":63,"lang":"ja","candidates":[{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 20: public function dispatch(string $method, string $uri): RoutingResults;","file":"Slim/Interfaces/DispatcherInterface.php","line":20,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 63: public function dispatch(string $method, string $uri): RoutingResults","file":"Slim/Routing/Dispatcher.php","line":63,"lexical":0.65,"target":true},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 111: $this->assertSame(Dispatcher::METHOD_NOT_ALLOWED, $routingResults->getRouteStatus());","file":"tests/Middleware/RoutingMiddlewareTest.php","line":111,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 148: $this->assertSame(Dispatcher::NOT_FOUND, $routingResults->getRouteStatus());","file":"tests/Middleware/RoutingMiddlewareTest.php","line":148,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"에러 메시지를 렌더링할 때 기본으로 사용할 콘텐츠 타입과 렌더러 함수(또는 클래스)를 설정하는 로직을 찾아주세요. 이 설정이 적용되면 에러 발생 시 해당 렌더러가 기본 동작으로 사용됩니다.","query":"default error renderer","file":"Slim/Handlers/ErrorHandler.php","symbol":"setDefaultErrorRenderer","line":244,"lang":"ko","candidates":[{"text":"File: Slim/Error/Renderers/HtmlErrorRenderer.php\nLine 25: * Default Slim application HTML Error Renderer","file":"Slim/Error/Renderers/HtmlErrorRenderer.php","line":25,"lexical":0.65,"target":false},{"text":"File: Slim/Error/Renderers/JsonErrorRenderer.php\nLine 24: * Default Slim application JSON Error Renderer","file":"Slim/Error/Renderers/JsonErrorRenderer.php","line":24,"lexical":0.65,"target":false},{"text":"File: Slim/Error/Renderers/PlainTextErrorRenderer.php\nLine 21: * Default Slim application Plain Text Error Renderer","file":"Slim/Error/Renderers/PlainTextErrorRenderer.php","line":21,"lexical":0.65,"target":false},{"text":"File: Slim/Error/Renderers/XmlErrorRenderer.php\nLine 21: * Default Slim application XML Error Renderer","file":"Slim/Error/Renderers/XmlErrorRenderer.php","line":21,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 50: protected string $defaultErrorRendererContentType = 'text/html';","file":"Slim/Handlers/ErrorHandler.php","line":50,"lexical":0.65,"target":true},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 55: protected $defaultErrorRenderer = HtmlErrorRenderer::class;","file":"Slim/Handlers/ErrorHandler.php","line":55,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 221: $renderer = $this->defaultErrorRenderer;","file":"Slim/Handlers/ErrorHandler.php","line":221,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 239: * Set the default error renderer","file":"Slim/Handlers/ErrorHandler.php","line":239,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 241: * @param string $contentType The content type of the default error renderer","file":"Slim/Handlers/ErrorHandler.php","line":241,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 242: * @param ErrorRendererInterface|string|callable $errorRenderer The default error renderer","file":"Slim/Handlers/ErrorHandler.php","line":242,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 244: public function setDefaultErrorRenderer(string $contentType, $errorRenderer): void","file":"Slim/Handlers/ErrorHandler.php","line":244,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 246: $this->defaultErrorRendererContentType = $contentType;","file":"Slim/Handlers/ErrorHandler.php","line":246,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 247: $this->defaultErrorRenderer = $errorRenderer;","file":"Slim/Handlers/ErrorHandler.php","line":247,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 300: $response = $response->withHeader('Content-type', $this->defaultErrorRendererContentType);","file":"Slim/Handlers/ErrorHandler.php","line":300,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 68: // Test the default error renderer","file":"tests/Handlers/ErrorHandlerTest.php","line":68,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 347: public function testSetDefaultErrorRenderer()","file":"tests/Handlers/ErrorHandlerTest.php","line":347,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 350: $handler->setDefaultErrorRenderer('text/plain', PlainTextErrorRenderer::class);","file":"tests/Handlers/ErrorHandlerTest.php","line":350,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 353: $reflectionProperty = $reflectionClass->getProperty('defaultErrorRenderer');","file":"tests/Handlers/ErrorHandlerTest.php","line":353,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 355: $defaultErrorRenderer = $reflectionProperty->getValue($handler);","file":"tests/Handlers/ErrorHandlerTest.php","line":355,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 357: $defaultErrorRendererContentTypeProperty = $reflectionClass->getProperty('defaultErrorRendererContentType');","file":"tests/Handlers/ErrorHandlerTest.php","line":357,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 358: $this->setAccessible($defaultErrorRendererContentTypeProperty);","file":"tests/Handlers/ErrorHandlerTest.php","line":358,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 359: $defaultErrorRendererContentType = $defaultErrorRendererContentTypeProperty->getValue($handler);","file":"tests/Handlers/ErrorHandlerTest.php","line":359,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 361: $this->assertSame(PlainTextErrorRenderer::class, $defaultErrorRenderer);","file":"tests/Handlers/ErrorHandlerTest.php","line":361,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 362: $this->assertSame('text/plain', $defaultErrorRendererContentType);","file":"tests/Handlers/ErrorHandlerTest.php","line":362,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 463: public function testDefaultErrorRenderer()","file":"tests/Handlers/ErrorHandlerTest.php","line":463,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"라우팅 관련 속성들이 포함된 서버 요청 객체를 생성하는 테스트용 헬퍼 메서드에서, 라우트 객체와 파서, 그리고 결과 데이터들이 요청 속성에 올바르게 주입되어 있는지 확인이 필요합니다.","query":"createServerRequest route attributes","file":"tests/Routing/RouteContextTest.php","symbol":"createServerRequestWithRouteAttributes","line":95,"lang":"ko","candidates":[{"text":"File: tests/Routing/RouteContextTest.php\nLine 45: $serverRequest = $this->createServerRequestWithRouteAttributes();","file":"tests/Routing/RouteContextTest.php","line":45,"lexical":0.65,"target":true},{"text":"File: tests/Routing/RouteContextTest.php\nLine 59: $serverRequest = $this->createServerRequestWithRouteAttributes();","file":"tests/Routing/RouteContextTest.php","line":59,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 90: $serverRequest = $this->createServerRequestWithRouteAttributes()->withoutAttribute($attribute);","file":"tests/Routing/RouteContextTest.php","line":90,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 95: private function createServerRequestWithRouteAttributes(): ServerRequestInterface","file":"tests/Routing/RouteContextTest.php","line":95,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"このメソッドは例外の説明を設定するためのもの?","query":"set description","file":"Slim/Exception/HttpException.php","symbol":"setDescription","line":60,"lang":"ja","candidates":[{"text":"File: Slim/Exception/HttpException.php\nLine 60: public function setDescription(string $description): self","file":"Slim/Exception/HttpException.php","line":60,"lexical":0.39999999999999997,"target":true},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 34: $exception->setDescription('Description');","file":"tests/Exception/HttpExceptionTest.php","line":34,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"애플리케이션 인스턴스를 생성할 때 사용할 라우팅 해결 로직을 직접 지정하고 싶어요. 외부에서 정의한 라우터 인터페이스를 정적으로 주입할 수 있는 메서드가 어디에 있나요?","query":"set route resolver","file":"Slim/Factory/AppFactory.php","symbol":"setRouteResolver","line":203,"lang":"ko","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 203: public static function setRouteResolver(RouteResolverInterface $routeResolver): void","file":"Slim/Factory/AppFactory.php","line":203,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 171: AppFactory::setRouteResolver($routeResolverProphecy->reveal());","file":"tests/Factory/AppFactoryTest.php","line":171,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"¿Cómo se maneja la respuesta cuando se lanza una excepción de método no permitido?","query":"HttpMethodNotAllowedException Allow","file":"tests/Handlers/ErrorHandlerTest.php","symbol":"testOptions","line":365,"lang":"es","candidates":[{"text":"File: CHANGELOG.md\nLine 329: - [2855](https://github.com/slimphp/Slim/pull/2855) Add list of allowed methods to HttpMethodNotAllowedException","file":"CHANGELOG.md","line":329,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Exception/HttpMethodNotAllowedException.php\nLine 15: class HttpMethodNotAllowedException extends HttpSpecializedException","file":"Slim/Exception/HttpMethodNotAllowedException.php","line":15,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 23: use Slim\\Exception\\HttpMethodNotAllowedException;","file":"Slim/Handlers/ErrorHandler.php","line":23,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 303: if ($this->exception instanceof HttpMethodNotAllowedException) {","file":"Slim/Handlers/ErrorHandler.php","line":303,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 175: * ie: [HttpNotFoundException::class, HttpMethodNotAllowedException::class]","file":"Slim/Middleware/ErrorMiddleware.php","line":175,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 18: use Slim\\Exception\\HttpMethodNotAllowedException;","file":"Slim/Middleware/RoutingMiddleware.php","line":18,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 39: * @throws HttpMethodNotAllowedException","file":"Slim/Middleware/RoutingMiddleware.php","line":39,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 54: * @throws HttpMethodNotAllowedException","file":"Slim/Middleware/RoutingMiddleware.php","line":54,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 79: $exception = new HttpMethodNotAllowedException($request);","file":"Slim/Middleware/RoutingMiddleware.php","line":79,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 16: use Slim\\Exception\\HttpMethodNotAllowedException;","file":"Slim/Routing/RouteRunner.php","line":16,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 55: * @throws HttpMethodNotAllowedException","file":"Slim/Routing/RouteRunner.php","line":55,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 28: use Slim\\Exception\\HttpMethodNotAllowedException;","file":"tests/AppTest.php","line":28,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 1087: $this->expectException(HttpMethodNotAllowedException::class);","file":"tests/AppTest.php","line":1087,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 14: use Slim\\Exception\\HttpMethodNotAllowedException;","file":"tests/Exception/HttpExceptionTest.php","line":14,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 44: $exception = new HttpMethodNotAllowedException($request);","file":"tests/Exception/HttpExceptionTest.php","line":44,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 49: $exception = new HttpMethodNotAllowedException($request);","file":"tests/Exception/HttpExceptionTest.php","line":49,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 24: use Slim\\Exception\\HttpMethodNotAllowedException;","file":"tests/Handlers/ErrorHandlerTest.php","line":24,"lexical":0.39999999999999997,"target":true},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 369: $exception = new HttpMethodNotAllowedException($request);","file":"tests/Handlers/ErrorHandlerTest.php","line":369,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 19: use Slim\\Exception\\HttpMethodNotAllowedException;","file":"tests/Middleware/RoutingMiddlewareTest.php","line":19,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 96: } catch (HttpMethodNotAllowedException $exception) {","file":"tests/Middleware/RoutingMiddlewareTest.php","line":96,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"ルーティングの振り分け処理を司るクラスのユニットテストを探しています。特に、特定のメソッドをリフレクションで呼び出して、期待される実装クラスが生成されるか検証している箇所を教えてください。","query":"routing dispatcher test","file":"tests/Routing/DispatcherTest.php","symbol":"DispatcherTest","line":28,"lang":"ja","candidates":[{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 111: $this->assertSame(Dispatcher::METHOD_NOT_ALLOWED, $routingResults->getRouteStatus());","file":"tests/Middleware/RoutingMiddlewareTest.php","line":111,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 148: $this->assertSame(Dispatcher::NOT_FOUND, $routingResults->getRouteStatus());","file":"tests/Middleware/RoutingMiddlewareTest.php","line":148,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"I'm trying to register a new endpoint for fetching resources. Which method should I use to map a URI pattern to a specific callback or controller action?","query":"add GET route","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","symbol":"get","line":51,"lang":"en","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 46: * Add GET route","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":46,"lexical":0.65,"target":true},{"text":"File: Slim/Routing/Dispatcher.php\nLine 34: $r->addRoute($route->getMethods(), $basePath . $route->getPattern(), $route->getIdentifier());","file":"Slim/Routing/Dispatcher.php","line":34,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 114: $r->addRoute('GET', '/user', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":114,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 131: $r->addRoute('GET', '/foo/{test}/{test:\\d+}', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":131,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 141: $r->addRoute('GET', '/user/{id}', 'handler0'); // oops, forgot \\d+ restriction ;)","file":"tests/Routing/FastRouteDispatcherTest.php","line":141,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 142: $r->addRoute('GET', '/user/{name}', 'handler1');","file":"tests/Routing/FastRouteDispatcherTest.php","line":142,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 152: $r->addRoute('GET', '/user', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":152,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 153: $r->addRoute('GET', '/user', 'handler1');","file":"tests/Routing/FastRouteDispatcherTest.php","line":153,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 168: $r->addRoute('GET', '/user/{name}', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":168,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 169: $r->addRoute('GET', '/user/nikic', 'handler1');","file":"tests/Routing/FastRouteDispatcherTest.php","line":169,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 179: $r->addRoute('GET', '/{lang:(en|de)}', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":179,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 190: $r->addRoute('GET', '/resource/123/456', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":190,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 203: $r->addRoute('GET', '/handler0', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":203,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 204: $r->addRoute('GET', '/handler1', 'handler1');","file":"tests/Routing/FastRouteDispatcherTest.php","line":204,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 205: $r->addRoute('GET', '/handler2', 'handler2');","file":"tests/Routing/FastRouteDispatcherTest.php","line":205,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 218: $r->addRoute('GET', '/user/{name}/{id:[0-9]+}', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":218,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 219: $r->addRoute('GET', '/user/{id:[0-9]+}', 'handler1');","file":"tests/Routing/FastRouteDispatcherTest.php","line":219,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 220: $r->addRoute('GET', '/user/{name}', 'handler2');","file":"tests/Routing/FastRouteDispatcherTest.php","line":220,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 266: $r->addRoute('GET', '/user/{id:[0-9]+}', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":266,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 267: $r->addRoute('GET', '/user/12345/extension', 'handler1');","file":"tests/Routing/FastRouteDispatcherTest.php","line":267,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 268: $r->addRoute('GET', '/user/{id:[0-9]+}.{extension}', 'handler2');","file":"tests/Routing/FastRouteDispatcherTest.php","line":268,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 281: $r->addRoute('GET', '/user/{name}', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":281,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 282: $r->addRoute('GET', '/user/{name}/{id:[0-9]+}', 'handler1');","file":"tests/Routing/FastRouteDispatcherTest.php","line":282,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 283: $r->addRoute('GET', '/static0', 'handler2');","file":"tests/Routing/FastRouteDispatcherTest.php","line":283,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 284: $r->addRoute('GET', '/static1', 'handler3');","file":"tests/Routing/FastRouteDispatcherTest.php","line":284,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 331: $r->addRoute('GET', '/user/{name}', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":331,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 345: $r->addRoute('GET', '/user/{name}', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":345,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 360: $r->addRoute('GET', '/user/{name}', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":360,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 361: $r->addRoute('GET', '/user/{name}/edit', 'handler1');","file":"tests/Routing/FastRouteDispatcherTest.php","line":361,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 374: $r->addRoute(['GET', 'POST'], '/user', 'handlerGetPost');","file":"tests/Routing/FastRouteDispatcherTest.php","line":374,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 388: $r->addRoute('GET', '/{entity}.json', 'handler1');","file":"tests/Routing/FastRouteDispatcherTest.php","line":388,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 396: $r->addRoute('GET', '', 'handler0');","file":"tests/Routing/FastRouteDispatcherTest.php","line":396,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Como é instanciada a classe que define o mapeamento entre um padrão de URL, os métodos HTTP e a ação a ser executada?","query":"pattern callable pattern","file":"Slim/Routing/Route.php","symbol":"__construct","line":120,"lang":"pt","candidates":[{"text":"File: Slim/CallableResolver.php\nLine 34: public static string $callablePattern = '!^([^\\:]+)\\:([a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*)$!';","file":"Slim/CallableResolver.php","line":34,"lexical":0.65,"target":false},{"text":"File: Slim/CallableResolver.php\nLine 131: preg_match(CallableResolver::$callablePattern, $toResolve, $matches);","file":"Slim/CallableResolver.php","line":131,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 93: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":93,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 51: public function get(string $pattern, $callable): RouteInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":51,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 59: public function post(string $pattern, $callable): RouteInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":59,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 67: public function put(string $pattern, $callable): RouteInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":67,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 75: public function patch(string $pattern, $callable): RouteInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":75,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 83: public function delete(string $pattern, $callable): RouteInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":83,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 91: public function options(string $pattern, $callable): RouteInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":91,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 99: public function any(string $pattern, $callable): RouteInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":99,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 108: public function map(array $methods, string $pattern, $callable): RouteInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":108,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 118: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":118,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 198: if (preg_match(CallableResolver::$callablePattern, $resolved, $matches)) {","file":"Slim/MiddlewareDispatcher.php","line":198,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 230: public function group(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollector.php","line":230,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 232: $routeGroup = $this->createGroup($pattern, $callable);","file":"Slim/Routing/RouteCollector.php","line":232,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 244: protected function createGroup(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollector.php","line":244,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 247: return new RouteGroup($pattern, $callable, $this->callableResolver, $routeCollectorProxy);","file":"Slim/Routing/RouteCollector.php","line":247,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 287: protected function createRoute(array $methods, string $pattern, $callable): RouteInterface","file":"Slim/Routing/RouteCollector.php","line":287,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 109: public function get(string $pattern, $callable): RouteInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":109,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 111: return $this->map(['GET'], $pattern, $callable);","file":"Slim/Routing/RouteCollectorProxy.php","line":111,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 117: public function post(string $pattern, $callable): RouteInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":117,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 119: return $this->map(['POST'], $pattern, $callable);","file":"Slim/Routing/RouteCollectorProxy.php","line":119,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 125: public function put(string $pattern, $callable): RouteInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":125,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 127: return $this->map(['PUT'], $pattern, $callable);","file":"Slim/Routing/RouteCollectorProxy.php","line":127,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 133: public function patch(string $pattern, $callable): RouteInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":133,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 135: return $this->map(['PATCH'], $pattern, $callable);","file":"Slim/Routing/RouteCollectorProxy.php","line":135,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 141: public function delete(string $pattern, $callable): RouteInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":141,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 143: return $this->map(['DELETE'], $pattern, $callable);","file":"Slim/Routing/RouteCollectorProxy.php","line":143,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 149: public function options(string $pattern, $callable): RouteInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":149,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 151: return $this->map(['OPTIONS'], $pattern, $callable);","file":"Slim/Routing/RouteCollectorProxy.php","line":151,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 157: public function any(string $pattern, $callable): RouteInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":157,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 159: return $this->map(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'], $pattern, $callable);","file":"Slim/Routing/RouteCollectorProxy.php","line":159,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"コンテナが注入されていない状態で、オブジェクトを渡したときに期待通りの例外が投げられるか確認しているテストはどこ?","query":"resolvable exception test","file":"tests/CallableResolverTest.php","symbol":"testObjPsrRequestHandlerClass","line":274,"lang":"ja","candidates":[{"text":"File: tests/CallableResolverTest.php\nLine 250: $this->expectExceptionMessage('Slim\\\\Tests\\\\Mocks\\\\RequestHandlerTest is not resolvable');","file":"tests/CallableResolverTest.php","line":250,"lexical":0.65,"target":true},{"text":"File: tests/CallableResolverTest.php\nLine 268: $this->expectExceptionMessage('Slim\\\\Tests\\\\Mocks\\\\RequestHandlerTest is not resolvable');","file":"tests/CallableResolverTest.php","line":268,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 279: public function testResolveThrowsExceptionWhenResolvableDoesNotImplementMiddlewareInterface(): void","file":"tests/MiddlewareDispatcherTest.php","line":279,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 304: public function testResolveThrowsExceptionWithoutContainerAndUnresolvableClass(): void","file":"tests/MiddlewareDispatcherTest.php","line":304,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 317: public function testResolveThrowsExceptionWithoutContainerNonAdvancedCallableResolverAndUnresolvableClass(): void","file":"tests/MiddlewareDispatcherTest.php","line":317,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"グローバル変数からサーバーリクエストを生成するメソッドはどこにありますか?","query":"createServerRequestFromGlobals","file":"Slim/Interfaces/ServerRequestCreatorInterface.php","symbol":"createServerRequestFromGlobals","line":17,"lang":"ja","candidates":[{"text":"File: Slim/App.php\nLine 190: $request = $serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/App.php","line":190,"lexical":0.35,"target":false},{"text":"File: Slim/Factory/Psr17/ServerRequestCreator.php\nLine 38: public function createServerRequestFromGlobals(): ServerRequestInterface","file":"Slim/Factory/Psr17/ServerRequestCreator.php","line":38,"lexical":0.35,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 33: public function createServerRequestFromGlobals(): ServerRequestInterface","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":33,"lexical":0.35,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 39: $request = $this->serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":39,"lexical":0.35,"target":false},{"text":"File: Slim/Interfaces/ServerRequestCreatorInterface.php\nLine 17: public function createServerRequestFromGlobals(): ServerRequestInterface;","file":"Slim/Interfaces/ServerRequestCreatorInterface.php","line":17,"lexical":0.35,"target":true},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 43: public function testCreateServerRequestFromGlobals()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":43,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 50: ->createServerRequestFromGlobals()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":50,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 56: $this->assertInstanceOf(ServerRequest::class, $slimHttpServerRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":56,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 59: public function testCreateServerRequestFromGlobalsThrowsRuntimeException()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":59,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 75: $slimHttpServerRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":75,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 78: public function testCreateServerRequestFromGlobalsThrowsRuntimeExceptionIfNotInstanceOfServerRequestInterface()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":78,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 89: ->createServerRequestFromGlobals()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":89,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 98: $slimHttpServerRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":98,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 57: $serverRequest = $serverRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":57,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 70: $this->assertInstanceOf(ServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":70,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 95: $this->assertInstanceOf(SlimServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":95,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 109: ->createServerRequestFromGlobals()","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":109,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 117: $this->assertSame($serverRequestProphecy->reveal(), $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":117,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 131: ->createServerRequestFromGlobals()","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":131,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 139: $this->assertInstanceOf(ServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":139,"lexical":0.35,"target":false}]} {"site":"project_search","repo":"slim","task":"メソッドが許可されていない場合に取得できる許可済みメソッドのリストを確認する","query":"get allowed methods","file":"tests/Routing/FastRouteDispatcherTest.php","symbol":"testGetAllowedMethods","line":99,"lang":"ja","candidates":[{"text":"File: CHANGELOG.md\nLine 18: - Cache only the last getAllowedMethods() lookup (#3468)","file":"CHANGELOG.md","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Exception/HttpMethodNotAllowedException.php\nLine 38: public function getAllowedMethods(): array","file":"Slim/Exception/HttpMethodNotAllowedException.php","line":38,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 304: $allowedMethods = implode(', ', $this->exception->getAllowedMethods());","file":"Slim/Handlers/ErrorHandler.php","line":304,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 23: * Get allowed methods for a given uri","file":"Slim/Interfaces/DispatcherInterface.php","line":23,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 27: public function getAllowedMethods(string $uri): array;","file":"Slim/Interfaces/DispatcherInterface.php","line":27,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 80: $exception->setAllowedMethods($routingResults->getAllowedMethods());","file":"Slim/Middleware/RoutingMiddleware.php","line":80,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 73: public function getAllowedMethods(string $uri): array","file":"Slim/Routing/Dispatcher.php","line":73,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 76: return $dispatcher->getAllowedMethods($uri);","file":"Slim/Routing/Dispatcher.php","line":76,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 54: if (!empty($this->getAllowedMethods($uri))) {","file":"Slim/Routing/FastRouteDispatcher.php","line":54,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/FastRouteDispatcher.php\nLine 92: public function getAllowedMethods(string $uri): array","file":"Slim/Routing/FastRouteDispatcher.php","line":92,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RoutingResults.php\nLine 104: public function getAllowedMethods(): array","file":"Slim/Routing/RoutingResults.php","line":104,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RoutingResults.php\nLine 106: return $this->dispatcher->getAllowedMethods($this->uri);","file":"Slim/Routing/RoutingResults.php","line":106,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 40: public function testHttpNotAllowedExceptionGetAllowedMethods()","file":"tests/Exception/HttpExceptionTest.php","line":40,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 45: $exception->setAllowedMethods(['GET']);","file":"tests/Exception/HttpExceptionTest.php","line":45,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 46: $this->assertSame(['GET'], $exception->getAllowedMethods());","file":"tests/Exception/HttpExceptionTest.php","line":46,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 50: $this->assertSame([], $exception->getAllowedMethods());","file":"tests/Exception/HttpExceptionTest.php","line":50,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 100: public function testGetAllowedMethods()","file":"tests/Routing/DispatcherTest.php","line":100,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 113: $results = $dispatcher->getAllowedMethods('/');","file":"tests/Routing/DispatcherTest.php","line":113,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 140: $this->assertSame($methods, $results->getAllowedMethods());","file":"tests/Routing/DispatcherTest.php","line":140,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 100: public function testGetAllowedMethods($method, $uri, $callback, $allowedMethods)","file":"tests/Routing/FastRouteDispatcherTest.php","line":100,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 105: $results = $dispatcher->getAllowedMethods($uri);","file":"tests/Routing/FastRouteDispatcherTest.php","line":105,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 110: public function testGetAllowedMethodsReusesLastUriOnly()","file":"tests/Routing/FastRouteDispatcherTest.php","line":110,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 118: $this->assertSame(['GET'], $dispatcher->getAllowedMethods('/user'));","file":"tests/Routing/FastRouteDispatcherTest.php","line":118,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 119: $this->assertSame(['POST'], $dispatcher->getAllowedMethods('/post'));","file":"tests/Routing/FastRouteDispatcherTest.php","line":119,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 122: $this->assertSame(['GET'], $dispatcher->getAllowedMethods('/user'));","file":"tests/Routing/FastRouteDispatcherTest.php","line":122,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 571: $allowedMethods = ['GET'];","file":"tests/Routing/FastRouteDispatcherTest.php","line":571,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 586: $allowedMethods = ['GET', 'POST', 'PUT'];","file":"tests/Routing/FastRouteDispatcherTest.php","line":586,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 601: $allowedMethods = ['GET', 'POST', 'PUT', 'PATCH'];","file":"tests/Routing/FastRouteDispatcherTest.php","line":601,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Estou tentando entender como as mensagens de erro são formatadas para o usuário final. Pode me mostrar os testes que verificam se o renderizador de HTML exibe os detalhes da exceção ou apenas uma mensagem genérica de erro?","query":"HTML error renderer","file":"tests/Error/AbstractErrorRendererTest.php","symbol":"AbstractErrorRendererTest","line":32,"lang":"pt","candidates":[{"text":"File: CHANGELOG.md\nLine 30: - Escape HTML entities in HtmlErrorRenderer to prevent XSS attacks ([GHSA-53h4-8rc4-f539](https://github.com/slimphp/Slim/security/advisories/GHSA-53h4-8rc4-f539))","file":"CHANGELOG.md","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: CHANGELOG.md\nLine 73: - Do not HTML entity encode in PlainTextErrorRenderer by @akrabat in https://github.com/slimphp/Slim/pull/3319","file":"CHANGELOG.md","line":73,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Error/Renderers/HtmlErrorRenderer.php\nLine 25: * Default Slim application HTML Error Renderer","file":"Slim/Error/Renderers/HtmlErrorRenderer.php","line":25,"lexical":0.65,"target":false},{"text":"File: Slim/Error/Renderers/HtmlErrorRenderer.php\nLine 27: class HtmlErrorRenderer extends AbstractErrorRenderer","file":"Slim/Error/Renderers/HtmlErrorRenderer.php","line":27,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 18: use Slim\\Error\\Renderers\\HtmlErrorRenderer;","file":"Slim/Handlers/ErrorHandler.php","line":18,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 50: protected string $defaultErrorRendererContentType = 'text/html';","file":"Slim/Handlers/ErrorHandler.php","line":50,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 55: protected $defaultErrorRenderer = HtmlErrorRenderer::class;","file":"Slim/Handlers/ErrorHandler.php","line":55,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 69: 'text/html' => HtmlErrorRenderer::class,","file":"Slim/Handlers/ErrorHandler.php","line":69,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 16: use Slim\\Error\\Renderers\\HtmlErrorRenderer;","file":"tests/Error/AbstractErrorRendererTest.php","line":16,"lexical":0.65,"target":true},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 34: public function testHTMLErrorRendererDisplaysErrorDetails()","file":"tests/Error/AbstractErrorRendererTest.php","line":34,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 37: $renderer = new HtmlErrorRenderer();","file":"tests/Error/AbstractErrorRendererTest.php","line":37,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 47: public function testHTMLErrorRendererNoErrorDetails()","file":"tests/Error/AbstractErrorRendererTest.php","line":47,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 50: $renderer = new HtmlErrorRenderer();","file":"tests/Error/AbstractErrorRendererTest.php","line":50,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 60: public function testHTMLErrorRendererRenderFragmentMethod()","file":"tests/Error/AbstractErrorRendererTest.php","line":60,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 63: $renderer = new HtmlErrorRenderer();","file":"tests/Error/AbstractErrorRendererTest.php","line":63,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 64: $reflectionRenderer = new ReflectionClass(HtmlErrorRenderer::class);","file":"tests/Error/AbstractErrorRendererTest.php","line":64,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 77: public function testHTMLErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":77,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 94: $renderer = new HtmlErrorRenderer();","file":"tests/Error/AbstractErrorRendererTest.php","line":94,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 101: public function testHTMLErrorRendererEscapesHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":101,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 118: $renderer = new HtmlErrorRenderer();","file":"tests/Error/AbstractErrorRendererTest.php","line":118,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 20: use Slim\\Error\\Renderers\\HtmlErrorRenderer;","file":"tests/Handlers/ErrorHandlerTest.php","line":20,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 72: $this->assertInstanceOf(HtmlErrorRenderer::class, $renderer[0]);","file":"tests/Handlers/ErrorHandlerTest.php","line":72,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 226: 'text/html' => HtmlErrorRenderer::class,","file":"tests/Handlers/ErrorHandlerTest.php","line":226,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 448: $handler->setLogErrorRenderer(HtmlErrorRenderer::class);","file":"tests/Handlers/ErrorHandlerTest.php","line":448,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Wie sieht die Signatur für die Ausführung einer Middleware oder eines Callables aus, das den Request und die Response sowie Routenparameter entgegennimmt?","query":"callable request response routeArguments","file":"Slim/Interfaces/InvocationStrategyInterface.php","symbol":"__invoke","line":31,"lang":"de","candidates":[{"text":"File: Slim/Handlers/Strategies/RequestResponse.php\nLine 39: return $callable($request, $response, $routeArguments);","file":"Slim/Handlers/Strategies/RequestResponse.php","line":39,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseArgs.php\nLine 38: return $callable($request, $response, ...array_values($routeArguments));","file":"Slim/Handlers/Strategies/RequestResponseArgs.php","line":38,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/Strategies/RequestResponseNamedArgs.php\nLine 37: return $callable($request, $response, ...$routeArguments);","file":"Slim/Handlers/Strategies/RequestResponseNamedArgs.php","line":37,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"如何判断当前环境下是否已经配置并可以实例化响应工厂?","query":"response factory available","file":"Slim/Factory/Psr17/Psr17Factory.php","symbol":"isResponseFactoryAvailable","line":77,"lang":"zh","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 140: if ($psr17factory::isResponseFactoryAvailable()) {","file":"Slim/Factory/AppFactory.php","line":140,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 165: && SlimHttpPsr17Factory::isResponseFactoryAvailable()","file":"Slim/Factory/AppFactory.php","line":165,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 38: !static::isResponseFactoryAvailable()","file":"Slim/Factory/Psr17/Psr17Factory.php","line":38,"lexical":0.65,"target":true},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 77: public static function isResponseFactoryAvailable(): bool","file":"Slim/Factory/Psr17/Psr17Factory.php","line":77,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/Psr17FactoryInterface.php\nLine 35: * Is the PSR-17 ResponseFactory available","file":"Slim/Interfaces/Psr17FactoryInterface.php","line":35,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/Psr17FactoryInterface.php\nLine 37: public static function isResponseFactoryAvailable(): bool;","file":"Slim/Interfaces/Psr17FactoryInterface.php","line":37,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 140: public function testResponseFactoryIsStillReturnedIfStreamFactoryIsNotAvailable()","file":"tests/Factory/AppFactoryTest.php","line":140,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Je suis en train de rédiger les tests pour la gestion des exceptions. Tu peux me montrer la méthode qui permet d'instancier un faux objet pour l'interface de journalisation ?","query":"mock logger interface","file":"tests/Handlers/ErrorHandlerTest.php","symbol":"getMockLogger","line":33,"lang":"fr","candidates":[{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 33: private function getMockLogger(): LoggerInterface","file":"tests/Handlers/ErrorHandlerTest.php","line":33,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 35: return $this->createMock(LoggerInterface::class);","file":"tests/Handlers/ErrorHandlerTest.php","line":35,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 30: private function getMockLogger(): LoggerInterface","file":"tests/Middleware/ErrorMiddlewareTest.php","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 32: return $this->createMock(LoggerInterface::class);","file":"tests/Middleware/ErrorMiddlewareTest.php","line":32,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"http 요청 메서드 소문자 데이터 제공하는 메서드 찾아줘","query":"lowerCaseRequestMethodsProvider","file":"tests/AppTest.php","symbol":"lowerCaseRequestMethodsProvider","line":158,"lang":"ko","candidates":[{"text":"File: tests/AppTest.php\nLine 158: public static function lowerCaseRequestMethodsProvider(): array","file":"tests/AppTest.php","line":158,"lexical":0.35,"target":true},{"text":"File: tests/AppTest.php\nLine 262: * @dataProvider lowerCaseRequestMethodsProvider","file":"tests/AppTest.php","line":262,"lexical":0.35,"target":false},{"text":"File: tests/AppTest.php\nLine 265: #[\\PHPUnit\\Framework\\Attributes\\DataProvider('lowerCaseRequestMethodsProvider')]","file":"tests/AppTest.php","line":265,"lexical":0.35,"target":false}]} {"site":"project_search","repo":"slim","task":"uri와 메소드 및 데이터를 이용해 서버 요청 객체를 생성하는 기능 찾아줘","query":"createServerRequest","file":"tests/Providers/PSR7ObjectProviderInterface.php","symbol":"createServerRequest","line":48,"lang":"ko","candidates":[{"text":"File: Slim/App.php\nLine 190: $request = $serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/App.php","line":190,"lexical":0.35,"target":false},{"text":"File: Slim/Factory/Psr17/ServerRequestCreator.php\nLine 38: public function createServerRequestFromGlobals(): ServerRequestInterface","file":"Slim/Factory/Psr17/ServerRequestCreator.php","line":38,"lexical":0.35,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 33: public function createServerRequestFromGlobals(): ServerRequestInterface","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":33,"lexical":0.35,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 39: $request = $this->serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":39,"lexical":0.35,"target":false},{"text":"File: Slim/Interfaces/ServerRequestCreatorInterface.php\nLine 17: public function createServerRequestFromGlobals(): ServerRequestInterface;","file":"Slim/Interfaces/ServerRequestCreatorInterface.php","line":17,"lexical":0.35,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 258: $request = $this->createServerRequest('/', 'GET');","file":"tests/CallableResolverTest.php","line":258,"lexical":0.35,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 287: $request = $this->createServerRequest('/', 'GET');","file":"tests/CallableResolverTest.php","line":287,"lexical":0.35,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 325: $request = $this->createServerRequest('/', 'GET');","file":"tests/CallableResolverTest.php","line":325,"lexical":0.35,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 390: $request = $this->createServerRequest('/', 'GET');","file":"tests/CallableResolverTest.php","line":390,"lexical":0.35,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 22: $request = $this->createServerRequest('/');","file":"tests/Exception/HttpExceptionTest.php","line":22,"lexical":0.35,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 30: $request = $this->createServerRequest('/');","file":"tests/Exception/HttpExceptionTest.php","line":30,"lexical":0.35,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 42: $request = $this->createServerRequest('/');","file":"tests/Exception/HttpExceptionTest.php","line":42,"lexical":0.35,"target":false},{"text":"File: tests/Exception/HttpUnauthorizedExceptionTest.php\nLine 20: $request = $this->createServerRequest('/');","file":"tests/Exception/HttpUnauthorizedExceptionTest.php","line":20,"lexical":0.35,"target":false},{"text":"File: tests/Exception/HttpUnauthorizedExceptionTest.php\nLine 28: $request = $this->createServerRequest('/');","file":"tests/Exception/HttpUnauthorizedExceptionTest.php","line":28,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 43: public function testCreateServerRequestFromGlobals()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":43,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 50: ->createServerRequestFromGlobals()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":50,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 56: $this->assertInstanceOf(ServerRequest::class, $slimHttpServerRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":56,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 59: public function testCreateServerRequestFromGlobalsThrowsRuntimeException()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":59,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 75: $slimHttpServerRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":75,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 78: public function testCreateServerRequestFromGlobalsThrowsRuntimeExceptionIfNotInstanceOfServerRequestInterface()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":78,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 89: ->createServerRequestFromGlobals()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":89,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 98: $slimHttpServerRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":98,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 57: $serverRequest = $serverRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":57,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 70: $this->assertInstanceOf(ServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":70,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 95: $this->assertInstanceOf(SlimServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":95,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 109: ->createServerRequestFromGlobals()","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":109,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 117: $this->assertSame($serverRequestProphecy->reveal(), $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":117,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 131: ->createServerRequestFromGlobals()","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":131,"lexical":0.35,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 139: $this->assertInstanceOf(ServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":139,"lexical":0.35,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 77: $request = $this->createServerRequest('/');","file":"tests/Handlers/ErrorHandlerTest.php","line":77,"lexical":0.35,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 107: ->createServerRequest('/not-defined', 'GET')","file":"tests/Handlers/ErrorHandlerTest.php","line":107,"lexical":0.35,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 130: ->createServerRequest('/not-defined', 'GET')","file":"tests/Handlers/ErrorHandlerTest.php","line":130,"lexical":0.35,"target":false}]} {"site":"project_search","repo":"slim","task":"ミドルウェアスタックを管理して、リクエストハンドラを起動するクラスの定義を確認したい","query":"middleware dispatcher","file":"Slim/MiddlewareDispatcher.php","symbol":"MiddlewareDispatcher","line":35,"lang":"ja","candidates":[{"text":"File: CHANGELOG.md\nLine 352: - [2817](https://github.com/slimphp/Slim/pull/2817) Add the ability to pass in a custom `MiddlewareDispatcherInterface` to the `App`","file":"CHANGELOG.md","line":352,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 360: - [2809](https://github.com/slimphp/Slim/pull/2809) Eliminate a duplicate code via HOF in `MiddlewareDispatcher`","file":"CHANGELOG.md","line":360,"lexical":0.39999999999999997,"target":false},{"text":"File: CHANGELOG.md\nLine 369: - [#2779](https://github.com/slimphp/Slim/pull/2774) Add support for Slim callables `Class:method` resolution & Container Closure auto-binding in `MiddlewareDispatcher`","file":"CHANGELOG.md","line":369,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 22: use Slim\\Interfaces\\MiddlewareDispatcherInterface;","file":"Slim/App.php","line":22,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 50: protected MiddlewareDispatcherInterface $middlewareDispatcher;","file":"Slim/App.php","line":50,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 61: ?MiddlewareDispatcherInterface $middlewareDispatcher = null","file":"Slim/App.php","line":61,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 73: if (!$middlewareDispatcher) {","file":"Slim/App.php","line":73,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 74: $middlewareDispatcher = new MiddlewareDispatcher($routeRunner, $this->callableResolver, $container);","file":"Slim/App.php","line":74,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 76: $middlewareDispatcher->seedMiddlewareStack($routeRunner);","file":"Slim/App.php","line":76,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 79: $this->middlewareDispatcher = $middlewareDispatcher;","file":"Slim/App.php","line":79,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 91: * @return MiddlewareDispatcherInterface","file":"Slim/App.php","line":91,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 93: public function getMiddlewareDispatcher(): MiddlewareDispatcherInterface","file":"Slim/App.php","line":93,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 95: return $this->middlewareDispatcher;","file":"Slim/App.php","line":95,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 104: $this->middlewareDispatcher->add($middleware);","file":"Slim/App.php","line":104,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 114: $this->middlewareDispatcher->addMiddleware($middleware);","file":"Slim/App.php","line":114,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 209: $response = $this->middlewareDispatcher->handle($request);","file":"Slim/App.php","line":209,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 22: use Slim\\Interfaces\\MiddlewareDispatcherInterface;","file":"Slim/Factory/AppFactory.php","line":22,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 44: protected static ?MiddlewareDispatcherInterface $middlewareDispatcher = null;","file":"Slim/Factory/AppFactory.php","line":44,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 59: ?MiddlewareDispatcherInterface $middlewareDispatcher = null","file":"Slim/Factory/AppFactory.php","line":59,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 68: $middlewareDispatcher ?? static::$middlewareDispatcher","file":"Slim/Factory/AppFactory.php","line":68,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 107: $middlewareDispatcher = $container->has(MiddlewareDispatcherInterface::class)","file":"Slim/Factory/AppFactory.php","line":107,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 109: $middlewareDispatcherFromContainer = $container->get(MiddlewareDispatcherInterface::class)","file":"Slim/Factory/AppFactory.php","line":109,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 110: ) instanceof MiddlewareDispatcherInterface","file":"Slim/Factory/AppFactory.php","line":110,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 111: ? $middlewareDispatcherFromContainer","file":"Slim/Factory/AppFactory.php","line":111,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 120: $middlewareDispatcher","file":"Slim/Factory/AppFactory.php","line":120,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 208: public static function setMiddlewareDispatcher(MiddlewareDispatcherInterface $middlewareDispatcher): void","file":"Slim/Factory/AppFactory.php","line":208,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 210: static::$middlewareDispatcher = $middlewareDispatcher;","file":"Slim/Factory/AppFactory.php","line":210,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 17: interface MiddlewareDispatcherInterface extends RequestHandlerInterface","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":17,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 14: use Slim\\MiddlewareDispatcher;","file":"Slim/Interfaces/RouteGroupInterface.php","line":14,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 34: * Append the group's middleware to the MiddlewareDispatcher","file":"Slim/Interfaces/RouteGroupInterface.php","line":34,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 35: * @param MiddlewareDispatcher<\\Psr\\Container\\ContainerInterface|null> $dispatcher","file":"Slim/Interfaces/RouteGroupInterface.php","line":35,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 37: public function appendMiddlewareToDispatcher(MiddlewareDispatcher $dispatcher): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":37,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"스트림 데이터를 쓸 수 있는지 확인하는 로직이 항상 false만 반환하도록 고정되어 있어서 테스트 시 쓰기 동작을 검증할 수 없습니다.","query":"is writable","file":"tests/Mocks/SlowPokeStream.php","symbol":"isWritable","line":85,"lang":"ko","candidates":[{"text":"File: CHANGELOG.md\nLine 310: - [2878](https://github.com/slimphp/Slim/pull/2878) check body is writable only on ouput buffering append","file":"CHANGELOG.md","line":310,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Middleware/OutputBufferingMiddleware.php\nLine 68: } elseif ($this->style === static::APPEND && $response->getBody()->isWritable()) {","file":"Slim/Middleware/OutputBufferingMiddleware.php","line":68,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 29: use function is_writable;","file":"Slim/Routing/RouteCollector.php","line":29,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 145: if (!file_exists($cacheFile) && !is_writable(dirname($cacheFile))) {","file":"Slim/Routing/RouteCollector.php","line":145,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 147: sprintf('Route collector cache file directory `%s` is not writable', dirname($cacheFile))","file":"Slim/Routing/RouteCollector.php","line":147,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/MockStream.php\nLine 89: $this->writable = isset(self::$readWriteHash['write'][$meta['mode']]);","file":"tests/Mocks/MockStream.php","line":89,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/MockStream.php\nLine 138: $this->readable = $this->writable = $this->seekable = false;","file":"tests/Mocks/MockStream.php","line":138,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/MockStream.php\nLine 206: public function isWritable(): bool","file":"tests/Mocks/MockStream.php","line":206,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/MockStream.php\nLine 208: return $this->writable;","file":"tests/Mocks/MockStream.php","line":208,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/MockStream.php\nLine 213: if (!$this->writable) {","file":"tests/Mocks/MockStream.php","line":213,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/SlowPokeStream.php\nLine 85: public function isWritable(): bool","file":"tests/Mocks/SlowPokeStream.php","line":85,"lexical":0.39999999999999997,"target":true},{"text":"File: tests/Mocks/SmallChunksStream.php\nLine 80: public function isWritable(): bool","file":"tests/Mocks/SmallChunksStream.php","line":80,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 152: * Test cache file exists but is not writable","file":"tests/Routing/RouteCollectorTest.php","line":152,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 170: * Test cache file does not exist and directory is not writable","file":"tests/Routing/RouteCollectorTest.php","line":170,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 172: public function testCacheFileDoesNotExistsAndDirectoryIsNotWritable()","file":"tests/Routing/RouteCollectorTest.php","line":172,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 178: 'Route collector cache file directory `%s` is not writable',","file":"tests/Routing/RouteCollectorTest.php","line":178,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/bootstrap.php\nLine 44: 'is_writable' => function (string $path): bool {","file":"tests/bootstrap.php","line":44,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"서버 요청 객체를 생성할 수 있는 구현체를 탐색하고 결정하는 로직이 어디에 있나요? 적절한 팩토리를 찾지 못했을 때 예외를 던지는 부분도 같이 확인하고 싶습니다.","query":"ServerRequest creator","file":"Slim/Factory/ServerRequestCreatorFactory.php","symbol":"determineServerRequestCreator","line":37,"lang":"ko","candidates":[{"text":"File: README.md\nLine 20: ## Choose a PSR-7 Implementation & ServerRequest Creator","file":"README.md","line":20,"lexical":0.39999999999999997,"target":false},{"text":"File: README.md\nLine 44: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"README.md","line":44,"lexical":0.39999999999999997,"target":false},{"text":"File: README.md\nLine 47: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"README.md","line":47,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 20: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"Slim/App.php","line":20,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 189: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"Slim/App.php","line":189,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/App.php\nLine 190: $request = $serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/App.php","line":190,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/GuzzlePsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'GuzzleHttp\\Psr7\\ServerRequest';","file":"Slim/Factory/Psr17/GuzzlePsr17Factory.php","line":17,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/GuzzlePsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/GuzzlePsr17Factory.php","line":18,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'HttpSoft\\ServerRequest\\ServerRequestCreator';","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":17,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'createFromGlobals';","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":18,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'Laminas\\Diactoros\\ServerRequestFactory';","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":17,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":18,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 7: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":7,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 13: protected static string $serverRequestCreatorClass = 'Nyholm\\Psr7Server\\ServerRequestCreator';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":13,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 14: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":14,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 19: public static function getServerRequestCreator(): ServerRequestCreatorInterface","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":19,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 27: $serverRequestCreator = new static::$serverRequestCreatorClass(","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":27,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 34: return new ServerRequestCreator($serverRequestCreator, static::$serverRequestCreatorMethod);","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":34,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 40: public static function isServerRequestCreatorAvailable(): bool","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":40,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 43: parent::isServerRequestCreatorAvailable()","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":43,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 17: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":17,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 28: protected static string $serverRequestCreatorClass;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":28,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 30: protected static string $serverRequestCreatorMethod;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":30,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 65: public static function getServerRequestCreator(): ServerRequestCreatorInterface","file":"Slim/Factory/Psr17/Psr17Factory.php","line":65,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 67: if (!static::isServerRequestCreatorAvailable()) {","file":"Slim/Factory/Psr17/Psr17Factory.php","line":67,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 71: return new ServerRequestCreator(static::$serverRequestCreatorClass, static::$serverRequestCreatorMethod);","file":"Slim/Factory/Psr17/Psr17Factory.php","line":71,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 93: public static function isServerRequestCreatorAvailable(): bool","file":"Slim/Factory/Psr17/Psr17Factory.php","line":93,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 96: static::$serverRequestCreatorClass","file":"Slim/Factory/Psr17/Psr17Factory.php","line":96,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 97: && static::$serverRequestCreatorMethod","file":"Slim/Factory/Psr17/Psr17Factory.php","line":97,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 98: && class_exists(static::$serverRequestCreatorClass)","file":"Slim/Factory/Psr17/Psr17Factory.php","line":98,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/ServerRequestCreator.php\nLine 15: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/ServerRequestCreator.php","line":15,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Factory/Psr17/ServerRequestCreator.php\nLine 17: class ServerRequestCreator implements ServerRequestCreatorInterface","file":"Slim/Factory/Psr17/ServerRequestCreator.php","line":17,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"这个方法是怎么把中间件加入到执行队列里的?它是后进先出的吗?","query":"add middleware stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","symbol":"addMiddleware","line":37,"lang":"zh","candidates":[{"text":"File: Slim/App.php\nLine 119: * Add the Slim built-in routing middleware to the app middleware stack","file":"Slim/App.php","line":119,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 136: * Add the Slim built-in error middleware to the app middleware stack","file":"Slim/App.php","line":136,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 164: * Add the Slim body parsing middleware to the app middleware stack","file":"Slim/App.php","line":164,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 20: * Add a new middleware to the stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":20,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 31: * Add a new middleware to the stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":31,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 77: * Add a new middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":77,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 107: * Add a new middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":107,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 247: * Add a (non-standard) callable middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":247,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 704: // Check that the routing middleware really has been added to the tip of the app middleware stack.","file":"tests/AppTest.php","line":704,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 737: // Check that the error middleware really has been added to the tip of the app middleware stack.","file":"tests/AppTest.php","line":737,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 767: // Check that the body parsing middleware really has been added to the tip of the app middleware stack.","file":"tests/AppTest.php","line":767,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"¿Cómo se define el método que devuelve la fábrica de respuestas en la interfaz del proveedor?","query":"getResponseFactory interface","file":"tests/Providers/PSR7ObjectProviderInterface.php","symbol":"getResponseFactory","line":35,"lang":"es","candidates":[{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 35: public static function getResponseFactory(): ResponseFactoryInterface","file":"Slim/Factory/Psr17/Psr17Factory.php","line":35,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/Psr17FactoryInterface.php\nLine 22: public static function getResponseFactory(): ResponseFactoryInterface;","file":"Slim/Interfaces/Psr17FactoryInterface.php","line":22,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 23: public function getResponseFactory(): ResponseFactoryInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":23,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 58: public function getResponseFactory(): ResponseFactoryInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":58,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Providers/PSR7ObjectProvider.php\nLine 89: public function getResponseFactory(): ResponseFactoryInterface","file":"tests/Providers/PSR7ObjectProvider.php","line":89,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Providers/PSR7ObjectProviderInterface.php\nLine 35: public function getResponseFactory(): ResponseFactoryInterface;","file":"tests/Providers/PSR7ObjectProviderInterface.php","line":35,"lexical":0.6000000000000001,"target":true},{"text":"File: tests/TestCase.php\nLine 46: protected function getResponseFactory(): ResponseFactoryInterface","file":"tests/TestCase.php","line":46,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"获取路由解析测试用的数据提供器","query":"computeRoutingResultsDataProvider","file":"tests/Routing/RouteResolverTest.php","symbol":"computeRoutingResultsDataProvider","line":26,"lang":"zh","candidates":[{"text":"File: tests/Routing/RouteResolverTest.php\nLine 26: public static function computeRoutingResultsDataProvider(): array","file":"tests/Routing/RouteResolverTest.php","line":26,"lexical":0.35,"target":true},{"text":"File: tests/Routing/RouteResolverTest.php\nLine 37: * @dataProvider computeRoutingResultsDataProvider","file":"tests/Routing/RouteResolverTest.php","line":37,"lexical":0.35,"target":false},{"text":"File: tests/Routing/RouteResolverTest.php\nLine 43: #[\\PHPUnit\\Framework\\Attributes\\DataProvider('computeRoutingResultsDataProvider')]","file":"tests/Routing/RouteResolverTest.php","line":43,"lexical":0.35,"target":false}]} {"site":"project_search","repo":"slim","task":"DIコンテナを使って、クラス内のメソッドを呼び出し可能な形式として解決できるか確認するテストコードを探しています。ルートやミドルウェアの解決プロセスで、コンテナが正しく渡されているかを検証している箇所を知りたいです。","query":"resolve container test","file":"tests/CallableResolverTest.php","symbol":"testSlimCallableContainer","line":150,"lang":"ja","candidates":[{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 97: public function testDeferredResolvedCallableWithoutContainerAndNonAdvancedCallableResolver(): void","file":"tests/MiddlewareDispatcherTest.php","line":97,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 161: public function testDeferredResolvedCallableWithContainerAndNonAdvancedCallableResolverUnableToResolveCallable(","file":"tests/MiddlewareDispatcherTest.php","line":161,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 216: public function testDeferredResolvedClosureIsBoundToContainer(): void","file":"tests/MiddlewareDispatcherTest.php","line":216,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 304: public function testResolveThrowsExceptionWithoutContainerAndUnresolvableClass(): void","file":"tests/MiddlewareDispatcherTest.php","line":304,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 317: public function testResolveThrowsExceptionWithoutContainerNonAdvancedCallableResolverAndUnresolvableClass(): void","file":"tests/MiddlewareDispatcherTest.php","line":317,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 398: public function testControllerMethodAsStringResolvesWithoutContainer()","file":"tests/Routing/RouteTest.php","line":398,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 415: public function testControllerMethodAsStringResolvesWithContainer()","file":"tests/Routing/RouteTest.php","line":415,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 814: public function testRouteCallableIsResolvedUsingContainerWhenCallableResolverIsPresent()","file":"tests/Routing/RouteTest.php","line":814,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"gruppe mit muster und callable erstellen","query":"route group pattern","file":"Slim/Routing/RouteCollectorProxy.php","symbol":"group","line":175,"lang":"de","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 93: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":93,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 118: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":118,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 40: * Get the RouteGroup's pattern","file":"Slim/Interfaces/RouteGroupInterface.php","line":40,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 230: public function group(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollector.php","line":230,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 232: $routeGroup = $this->createGroup($pattern, $callable);","file":"Slim/Routing/RouteCollector.php","line":232,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 244: protected function createGroup(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollector.php","line":244,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 247: return new RouteGroup($pattern, $callable, $this->callableResolver, $routeCollectorProxy);","file":"Slim/Routing/RouteCollector.php","line":247,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 175: public function group(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":175,"lexical":0.65,"target":true},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 179: return $this->routeCollector->group($pattern, $callable);","file":"Slim/Routing/RouteCollectorProxy.php","line":179,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 577: public function testRouteGroupPattern(): void","file":"tests/AppTest.php","line":577,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 456: $routeCollectorProxy->group($pattern, $callable);","file":"tests/Routing/RouteCollectorProxyTest.php","line":456,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"El sistema no está manejando correctamente los casos donde la cabecera de tipo de contenido es parcialmente válida o tiene un formato mal formado, lo que debería ser verificado en las pruebas de gestión de errores.","query":"Content-Type error","file":"tests/Handlers/ErrorHandlerTest.php","symbol":"testHalfValidContentType","line":216,"lang":"es","candidates":[{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 228: * Register an error renderer for a specific content-type","file":"Slim/Handlers/ErrorHandler.php","line":228,"lexical":0.6000000000000001,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 300: $response = $response->withHeader('Content-type', $this->defaultErrorRendererContentType);","file":"Slim/Handlers/ErrorHandler.php","line":300,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"这个定义路由规则的代理对象里,是怎么获取容器和响应工厂的?","query":"route proxy interface","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","symbol":"RouteCollectorProxyInterface","line":21,"lang":"zh","candidates":[{"text":"File: Slim/App.php\nLine 37: * @template-extends RouteCollectorProxy","file":"Slim/App.php","line":37,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 39: class App extends RouteCollectorProxy implements RequestHandlerInterface","file":"Slim/App.php","line":39,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 21: interface RouteCollectorProxyInterface","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":21,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 41: * @return RouteCollectorProxyInterface","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":41,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 43: public function setBasePath(string $basePath): RouteCollectorProxyInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":43,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 20: use Slim\\Interfaces\\RouteCollectorProxyInterface;","file":"Slim/Routing/RouteCollector.php","line":20,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 251: * @return RouteCollectorProxyInterface","file":"Slim/Routing/RouteCollector.php","line":251,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 253: protected function createProxy(string $pattern): RouteCollectorProxyInterface","file":"Slim/Routing/RouteCollector.php","line":253,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 255: /** @var RouteCollectorProxy */","file":"Slim/Routing/RouteCollector.php","line":255,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 17: use Slim\\Interfaces\\RouteCollectorProxyInterface;","file":"Slim/Routing/RouteCollectorProxy.php","line":17,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 23: * @template-implements RouteCollectorProxyInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":23,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 25: class RouteCollectorProxy implements RouteCollectorProxyInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":25,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 99: public function setBasePath(string $basePath): RouteCollectorProxyInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":99,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 16: use Slim\\Interfaces\\RouteCollectorProxyInterface;","file":"Slim/Routing/RouteGroup.php","line":16,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 30: * @var RouteCollectorProxyInterface<\\Psr\\Container\\ContainerInterface|null>","file":"Slim/Routing/RouteGroup.php","line":30,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 32: protected RouteCollectorProxyInterface $routeCollectorProxy;","file":"Slim/Routing/RouteGroup.php","line":32,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 43: * @param RouteCollectorProxyInterface<\\Psr\\Container\\ContainerInterface|null> $routeCollectorProxy","file":"Slim/Routing/RouteGroup.php","line":43,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 49: RouteCollectorProxyInterface $routeCollectorProxy","file":"Slim/Routing/RouteGroup.php","line":49,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 18: use Slim\\Interfaces\\RouteCollectorProxyInterface;","file":"Slim/Routing/RouteRunner.php","line":18,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 30: * @var RouteCollectorProxyInterface<\\Psr\\Container\\ContainerInterface|null>","file":"Slim/Routing/RouteRunner.php","line":30,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 32: private ?RouteCollectorProxyInterface $routeCollectorProxy;","file":"Slim/Routing/RouteRunner.php","line":32,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 35: * @param RouteCollectorProxyInterface<\\Psr\\Container\\ContainerInterface|null> $routeCollectorProxy","file":"Slim/Routing/RouteRunner.php","line":35,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 40: ?RouteCollectorProxyInterface $routeCollectorProxy = null","file":"Slim/Routing/RouteRunner.php","line":40,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 35: use Slim\\Interfaces\\RouteCollectorProxyInterface;","file":"tests/AppTest.php","line":35,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1025: $app->group('/foo', function (RouteCollectorProxyInterface $group) use (","file":"tests/AppTest.php","line":1025,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1031: $group->group('/fizz', function (RouteCollectorProxyInterface $group) {","file":"tests/AppTest.php","line":1031,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1037: $group->group('/bar', function (RouteCollectorProxyInterface $group) use (","file":"tests/AppTest.php","line":1037,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 28: use Slim\\Interfaces\\RouteCollectorProxyInterface;","file":"tests/Routing/RouteTest.php","line":28,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 228: $routeCollectorProxyProphecy = $this->prophesize(RouteCollectorProxyInterface::class);","file":"tests/Routing/RouteTest.php","line":228,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 307: $routeCollectorProxyProphecy = $this->prophesize(RouteCollectorProxyInterface::class);","file":"tests/Routing/RouteTest.php","line":307,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"컨테이너를 이용해 콜러블을 해결하는 라우팅 테스트 찾아줘","query":"route callable container","file":"tests/Routing/RouteTest.php","symbol":"testRouteCallableIsResolvedUsingContainerWhenCallableResolverIsPresent","line":814,"lang":"ko","candidates":[{"text":"File: Slim/App.php\nLine 74: $middlewareDispatcher = new MiddlewareDispatcher($routeRunner, $this->callableResolver, $container);","file":"Slim/App.php","line":74,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 51: $this->routeCollector = $routeCollector ?? new RouteCollector($responseFactory, $callableResolver, $container);","file":"Slim/Routing/RouteCollectorProxy.php","line":51,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 814: public function testRouteCallableIsResolvedUsingContainerWhenCallableResolverIsPresent()","file":"tests/Routing/RouteTest.php","line":814,"lexical":0.65,"target":true}]} {"site":"project_search","repo":"slim","task":"El método para registrar una capa de procesamiento intermedia en un conjunto de rutas no parece estar retornando la propia interfaz del grupo, lo que rompe la encadenación de métodos.","query":"add middleware group","file":"Slim/Interfaces/RouteGroupInterface.php","symbol":"addMiddleware","line":31,"lang":"es","candidates":[{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 22: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":22,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 26: public function add($middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":26,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 29: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":29,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 31: public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":31,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 74: public function add($middleware): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":74,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 83: public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":83,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 866: public function testAddMiddlewareOnRouteGroup(): void","file":"tests/AppTest.php","line":866,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 948: public function testAddMiddlewareOnTwoRouteGroup(): void","file":"tests/AppTest.php","line":948,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 287: public function testAddMiddlewareOnGroup()","file":"tests/Routing/RouteTest.php","line":287,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"How does the method to append a new layer to the execution stack work, and what is the order of operation?","query":"middleware stack add","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","symbol":"add","line":28,"lang":"en","candidates":[{"text":"File: Slim/App.php\nLine 119: * Add the Slim built-in routing middleware to the app middleware stack","file":"Slim/App.php","line":119,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 136: * Add the Slim built-in error middleware to the app middleware stack","file":"Slim/App.php","line":136,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 164: * Add the Slim body parsing middleware to the app middleware stack","file":"Slim/App.php","line":164,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 20: * Add a new middleware to the stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":20,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 31: * Add a new middleware to the stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":31,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 77: * Add a new middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":77,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 107: * Add a new middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":107,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 247: * Add a (non-standard) callable middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":247,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 704: // Check that the routing middleware really has been added to the tip of the app middleware stack.","file":"tests/AppTest.php","line":704,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 737: // Check that the error middleware really has been added to the tip of the app middleware stack.","file":"tests/AppTest.php","line":737,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 767: // Check that the body parsing middleware really has been added to the tip of the app middleware stack.","file":"tests/AppTest.php","line":767,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Quiero asignar una nueva patrón de ruta para que coincida con las URLs esperadas. Necesito configurar el patrón que este endpoint debe reconocer.","query":"set route pattern","file":"Slim/Interfaces/RouteInterface.php","symbol":"setPattern","line":45,"lang":"es","candidates":[{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 43: * Set route pattern","file":"Slim/Interfaces/RouteInterface.php","line":43,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 45: public function setPattern(string $pattern): RouteInterface;","file":"Slim/Interfaces/RouteInterface.php","line":45,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 184: public function setPattern(string $pattern): RouteInterface","file":"Slim/Routing/Route.php","line":184,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 732: $route->setPattern('/hola/{nombre}');","file":"tests/Routing/RouteTest.php","line":732,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"测试一下当尝试解析一个不存在的服务时,是否会抛出包含特定错误信息的运行时异常?","query":"callable notFound exception","file":"tests/CallableResolverTest.php","symbol":"testMethodNotFoundThrowException","line":411,"lang":"zh","candidates":[{"text":"File: tests/CallableResolverTest.php\nLine 414: $this->expectExceptionMessage('callable_service:notFound is not resolvable');","file":"tests/CallableResolverTest.php","line":414,"lexical":0.65,"target":true},{"text":"File: tests/CallableResolverTest.php\nLine 428: $this->expectExceptionMessage('callable_service:notFound is not resolvable');","file":"tests/CallableResolverTest.php","line":428,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 442: $this->expectExceptionMessage('callable_service:notFound is not resolvable');","file":"tests/CallableResolverTest.php","line":442,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 456: $this->expectExceptionMessage('Callable notFound does not exist');","file":"tests/CallableResolverTest.php","line":456,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 467: $this->expectExceptionMessage('Callable notFound does not exist');","file":"tests/CallableResolverTest.php","line":467,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 478: $this->expectExceptionMessage('Callable notFound does not exist');","file":"tests/CallableResolverTest.php","line":478,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 489: $this->expectExceptionMessage('Callable Unknown::notFound() does not exist');","file":"tests/CallableResolverTest.php","line":489,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 500: $this->expectExceptionMessage('Callable Unknown::notFound() does not exist');","file":"tests/CallableResolverTest.php","line":500,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 511: $this->expectExceptionMessage('Callable Unknown::notFound() does not exist');","file":"tests/CallableResolverTest.php","line":511,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 519: public function testCallableClassNotFoundThrowException(): void","file":"tests/CallableResolverTest.php","line":519,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 522: $this->expectExceptionMessage('Callable Unknown::notFound() does not exist');","file":"tests/CallableResolverTest.php","line":522,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 530: public function testRouteCallableClassNotFoundThrowException(): void","file":"tests/CallableResolverTest.php","line":530,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 533: $this->expectExceptionMessage('Callable Unknown::notFound() does not exist');","file":"tests/CallableResolverTest.php","line":533,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 541: public function testMiddlewareCallableClassNotFoundThrowException(): void","file":"tests/CallableResolverTest.php","line":541,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 544: $this->expectExceptionMessage('Callable Unknown::notFound() does not exist');","file":"tests/CallableResolverTest.php","line":544,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"リクエストコンテキストからルートの解析用インターフェースを取得する際に、期待通りにインスタンスを返せない、あるいは取得できない問題があります。コンテキスト内に保持されているパーサーを取得するメソッドの挙動を確認してください。","query":"get route parser","file":"Slim/Routing/RouteContext.php","symbol":"getRouteParser","line":72,"lang":"ja","candidates":[{"text":"File: Slim/App.php\nLine 71: $routeRunner = new RouteRunner($this->routeResolver, $this->routeCollector->getRouteParser(), $this);","file":"Slim/App.php","line":71,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 129: $this->getRouteCollector()->getRouteParser()","file":"Slim/App.php","line":129,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 20: * Get the route parser","file":"Slim/Interfaces/RouteCollectorInterface.php","line":20,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 22: public function getRouteParser(): RouteParserInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":22,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 107: public function getRouteParser(): RouteParserInterface","file":"Slim/Routing/RouteCollector.php","line":107,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteContext.php\nLine 32: $routeParser = $serverRequest->getAttribute(self::ROUTE_PARSER);","file":"Slim/Routing/RouteContext.php","line":32,"lexical":0.65,"target":true},{"text":"File: Slim/Routing/RouteContext.php\nLine 72: public function getRouteParser(): RouteParserInterface","file":"Slim/Routing/RouteContext.php","line":72,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 111: $routeCollectorProphecy->getRouteParser()->willReturn($routeParserProphecy->reveal());","file":"tests/AppTest.php","line":111,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 164: $routeCollectorProphecy->getRouteParser()->willReturn($routeParserProphecy);","file":"tests/Factory/AppFactoryTest.php","line":164,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 221: $routeCollectorProphecy->getRouteParser()->willReturn($routeParserProphecy->reveal());","file":"tests/Factory/AppFactoryTest.php","line":221,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 299: ->getRouteParser()","file":"tests/Factory/AppFactoryTest.php","line":299,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 44: $app->getRouteCollector()->getRouteParser()","file":"tests/Middleware/ErrorMiddlewareTest.php","line":44,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 81: $app->getRouteCollector()->getRouteParser()","file":"tests/Middleware/ErrorMiddlewareTest.php","line":81,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 52: $routeParser = $request->getAttribute(RouteContext::ROUTE_PARSER);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":52,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 104: $routeParser = $request->getAttribute(RouteContext::ROUTE_PARSER);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":104,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 141: $routeParser = $request->getAttribute(RouteContext::ROUTE_PARSER);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":141,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 38: $this->assertSame($routeParser, $routeContext->getRouteParser());","file":"tests/Routing/RouteContextTest.php","line":38,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 52: $this->assertNotNull($routeContext->getRouteParser());","file":"tests/Routing/RouteContextTest.php","line":52,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 66: $this->assertNotNull($routeContext->getRouteParser());","file":"tests/Routing/RouteContextTest.php","line":66,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 93: $routeParser = $routeCollector->getRouteParser();","file":"tests/Routing/RouteParserTest.php","line":93,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 111: $routeParser = $routeCollector->getRouteParser();","file":"tests/Routing/RouteParserTest.php","line":111,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 141: $routeParser = $routeCollector->getRouteParser();","file":"tests/Routing/RouteParserTest.php","line":141,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 159: $routeParser = $routeCollector->getRouteParser();","file":"tests/Routing/RouteParserTest.php","line":159,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 171: $routeParser = $routeCollector->getRouteParser();","file":"tests/Routing/RouteParserTest.php","line":171,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteRunnerTest.php\nLine 29: $routeParser = $request->getAttribute(RouteContext::ROUTE_PARSER);","file":"tests/Routing/RouteRunnerTest.php","line":29,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Como faço para criar uma rota que redirecione o usuário para outro endereço com um código de status específico?","query":"route redirect status","file":"Slim/Routing/RouteCollectorProxy.php","symbol":"redirect","line":185,"lang":"pt","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 125: public function redirect(string $from, $to, int $status = 302): RouteInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":125,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 185: public function redirect(string $from, $to, int $status = 302): RouteInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":185,"lexical":0.65,"target":true}]} {"site":"project_search","repo":"slim","task":"Je cherche la méthode qui permet d'obtenir l'analyseur de routes dans Slim. Comment récupérer cette instance pour manipuler les URL ?","query":"get route parser","file":"Slim/Interfaces/RouteCollectorInterface.php","symbol":"getRouteParser","line":22,"lang":"fr","candidates":[{"text":"File: Slim/App.php\nLine 71: $routeRunner = new RouteRunner($this->routeResolver, $this->routeCollector->getRouteParser(), $this);","file":"Slim/App.php","line":71,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 129: $this->getRouteCollector()->getRouteParser()","file":"Slim/App.php","line":129,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 20: * Get the route parser","file":"Slim/Interfaces/RouteCollectorInterface.php","line":20,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 22: public function getRouteParser(): RouteParserInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":22,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 107: public function getRouteParser(): RouteParserInterface","file":"Slim/Routing/RouteCollector.php","line":107,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteContext.php\nLine 32: $routeParser = $serverRequest->getAttribute(self::ROUTE_PARSER);","file":"Slim/Routing/RouteContext.php","line":32,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteContext.php\nLine 72: public function getRouteParser(): RouteParserInterface","file":"Slim/Routing/RouteContext.php","line":72,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 111: $routeCollectorProphecy->getRouteParser()->willReturn($routeParserProphecy->reveal());","file":"tests/AppTest.php","line":111,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 164: $routeCollectorProphecy->getRouteParser()->willReturn($routeParserProphecy);","file":"tests/Factory/AppFactoryTest.php","line":164,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 221: $routeCollectorProphecy->getRouteParser()->willReturn($routeParserProphecy->reveal());","file":"tests/Factory/AppFactoryTest.php","line":221,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 299: ->getRouteParser()","file":"tests/Factory/AppFactoryTest.php","line":299,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 44: $app->getRouteCollector()->getRouteParser()","file":"tests/Middleware/ErrorMiddlewareTest.php","line":44,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 81: $app->getRouteCollector()->getRouteParser()","file":"tests/Middleware/ErrorMiddlewareTest.php","line":81,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 52: $routeParser = $request->getAttribute(RouteContext::ROUTE_PARSER);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":52,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 104: $routeParser = $request->getAttribute(RouteContext::ROUTE_PARSER);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":104,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 141: $routeParser = $request->getAttribute(RouteContext::ROUTE_PARSER);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":141,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 38: $this->assertSame($routeParser, $routeContext->getRouteParser());","file":"tests/Routing/RouteContextTest.php","line":38,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 52: $this->assertNotNull($routeContext->getRouteParser());","file":"tests/Routing/RouteContextTest.php","line":52,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 66: $this->assertNotNull($routeContext->getRouteParser());","file":"tests/Routing/RouteContextTest.php","line":66,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 93: $routeParser = $routeCollector->getRouteParser();","file":"tests/Routing/RouteParserTest.php","line":93,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 111: $routeParser = $routeCollector->getRouteParser();","file":"tests/Routing/RouteParserTest.php","line":111,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 141: $routeParser = $routeCollector->getRouteParser();","file":"tests/Routing/RouteParserTest.php","line":141,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 159: $routeParser = $routeCollector->getRouteParser();","file":"tests/Routing/RouteParserTest.php","line":159,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 171: $routeParser = $routeCollector->getRouteParser();","file":"tests/Routing/RouteParserTest.php","line":171,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteRunnerTest.php\nLine 29: $routeParser = $request->getAttribute(RouteContext::ROUTE_PARSER);","file":"tests/Routing/RouteRunnerTest.php","line":29,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"ストリームファクトリが利用できない場合でも、レスポンスファクトリが正しく返されるかを確認しているテストはどこ?","query":"ResponseFactory StreamFactory","file":"tests/Factory/AppFactoryTest.php","symbol":"testResponseFactoryIsStillReturnedIfStreamFactoryIsNotAvailable","line":139,"lang":"ja","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 131: return static::attemptResponseFactoryDecoration(static::$responseFactory, static::$streamFactory);","file":"Slim/Factory/AppFactory.php","line":131,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 145: return static::attemptResponseFactoryDecoration($responseFactory, $streamFactory);","file":"Slim/Factory/AppFactory.php","line":145,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 167: return SlimHttpPsr17Factory::createDecoratedResponseFactory($responseFactory, $streamFactory);","file":"Slim/Factory/AppFactory.php","line":167,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 30: $decoratedResponseFactory = new static::$responseFactoryClass($responseFactory, $streamFactory)","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":30,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 140: public function testResponseFactoryIsStillReturnedIfStreamFactoryIsNotAvailable()","file":"tests/Factory/AppFactoryTest.php","line":140,"lexical":0.39999999999999997,"target":true},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 263: public function testResponseAndStreamFactoryIsBeingInjectedInDecoratedResponseFactory()","file":"tests/Factory/AppFactoryTest.php","line":263,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"リクエストを受け取ってレスポンスを返す処理の、ミドルウェア内での実装箇所を教えて。","query":"middleware request response","file":"tests/Middleware/BodyParsingMiddlewareTest.php","symbol":"handle","line":41,"lang":"ja","candidates":[{"text":"File: Slim/App.php\nLine 209: $response = $this->middlewareDispatcher->handle($request);","file":"Slim/App.php","line":209,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ContentLengthMiddlewareTest.php\nLine 37: $response = $middlewareDispatcher->handle($request);","file":"tests/Middleware/ContentLengthMiddlewareTest.php","line":37,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 24: $middleware = (function (Request $request, RequestHandler $handler) use ($responseFactory) {","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":24,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 46: $middleware = (function (Request $request, RequestHandler $handler) use ($responseFactory) {","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":46,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 69: $middleware = (function (Request $request, RequestHandler $handler) use ($responseFactory) {","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":69,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 93: $middleware = (function (Request $request, RequestHandler $handler) use ($responseFactory) {","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":93,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 114: $middleware = (function (Request $request, RequestHandler $handler) use ($responseFactory) {","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":114,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 56: $middleware = function ($request, $handler) use ($responseFactory) {","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":56,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 73: $response = $middlewareDispatcher->handle($request);","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":73,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 81: $middleware = function ($request, $handler) use ($responseFactory) {","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":81,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 98: $response = $middlewareDispatcher->handle($request);","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":98,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 45: $middleware = (function (ServerRequestInterface $request) use ($responseFactory) {","file":"tests/Middleware/RoutingMiddlewareTest.php","line":45,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 51: $response = $middlewareDispatcher->handle($requestProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":51,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"サーバーリクエストの作成機能が利用可能かどうかを判定しているロジックはどこにありますか?","query":"is server request creator","file":"Slim/Factory/Psr17/Psr17Factory.php","symbol":"isServerRequestCreatorAvailable","line":93,"lang":"ja","candidates":[{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 40: public static function isServerRequestCreatorAvailable(): bool","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":40,"lexical":0.5,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 43: parent::isServerRequestCreatorAvailable()","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":43,"lexical":0.5,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 67: if (!static::isServerRequestCreatorAvailable()) {","file":"Slim/Factory/Psr17/Psr17Factory.php","line":67,"lexical":0.5,"target":true},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 93: public static function isServerRequestCreatorAvailable(): bool","file":"Slim/Factory/Psr17/Psr17Factory.php","line":93,"lexical":0.5,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 98: && class_exists(static::$serverRequestCreatorClass)","file":"Slim/Factory/Psr17/Psr17Factory.php","line":98,"lexical":0.5,"target":false},{"text":"File: Slim/Factory/Psr17/ServerRequestCreator.php\nLine 31: $this->serverRequestCreator = $serverRequestCreator;","file":"Slim/Factory/Psr17/ServerRequestCreator.php","line":31,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/ServerRequestCreator.php\nLine 32: $this->serverRequestCreatorMethod = $serverRequestCreatorMethod;","file":"Slim/Factory/Psr17/ServerRequestCreator.php","line":32,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/ServerRequestCreator.php\nLine 41: $callable = [$this->serverRequestCreator, $this->serverRequestCreatorMethod];","file":"Slim/Factory/Psr17/ServerRequestCreator.php","line":41,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 27: $this->serverRequestCreator = $serverRequestCreator;","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":27,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 39: $request = $this->serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":39,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 47: if ($psr17Factory::isServerRequestCreatorAvailable()) {","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":47,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 66: && SlimHttpServerRequestCreator::isServerRequestDecoratorAvailable()","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":66,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/Psr17FactoryInterface.php\nLine 45: * Is the ServerRequest creator available","file":"Slim/Interfaces/Psr17FactoryInterface.php","line":45,"lexical":0.5,"target":false},{"text":"File: Slim/Interfaces/Psr17FactoryInterface.php\nLine 47: public static function isServerRequestCreatorAvailable(): bool;","file":"Slim/Interfaces/Psr17FactoryInterface.php","line":47,"lexical":0.5,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 31: $serverRequestCreatorProphecy = $this->prophesize(ServerRequestCreatorInterface::class);","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":31,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 47: $serverRequestCreatorProphecy = $this->prophesize(ServerRequestCreatorInterface::class);","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":47,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 56: $this->assertInstanceOf(ServerRequest::class, $slimHttpServerRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":56,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 64: $serverRequestCreatorProphecy = $this->prophesize(ServerRequestCreatorInterface::class);","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":64,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 87: $serverRequestCreatorProphecy = $this->prophesize(ServerRequestCreatorInterface::class);","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":87,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 69: $this->assertInstanceOf(SlimHttpServerRequestCreator::class, $serverRequestCreator);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":69,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 70: $this->assertInstanceOf(ServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":70,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 95: $this->assertInstanceOf(SlimServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":95,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 107: $serverRequestCreatorProphecy = $this->prophesize(ServerRequestCreatorInterface::class);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":107,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 117: $this->assertSame($serverRequestProphecy->reveal(), $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":117,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 129: $serverRequestCreatorProphecy = $this->prophesize(ServerRequestCreatorInterface::class);","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":129,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 139: $this->assertInstanceOf(ServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":139,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"認証エラーが発生した際の例外クラスが正しくインスタンス化され、メッセージも保持できるか検証するテストコードを探しています。リクエストオブジェクトを渡して例外を生成するロジックを確認したいです。","query":"unauthorized exception test","file":"tests/Exception/HttpUnauthorizedExceptionTest.php","symbol":"HttpUnauthorizedExceptionTest","line":16,"lang":"ja","candidates":[{"text":"File: tests/Exception/HttpUnauthorizedExceptionTest.php\nLine 16: class HttpUnauthorizedExceptionTest extends TestCase","file":"tests/Exception/HttpUnauthorizedExceptionTest.php","line":16,"lexical":0.65,"target":true},{"text":"File: tests/Exception/HttpUnauthorizedExceptionTest.php\nLine 18: public function testHttpUnauthorizedException()","file":"tests/Exception/HttpUnauthorizedExceptionTest.php","line":18,"lexical":0.65,"target":false},{"text":"File: tests/Exception/HttpUnauthorizedExceptionTest.php\nLine 26: public function testHttpUnauthorizedExceptionWithMessage()","file":"tests/Exception/HttpUnauthorizedExceptionTest.php","line":26,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"devuelve el patrón de ruta del grupo","query":"group route pattern","file":"Slim/Routing/RouteGroup.php","symbol":"getPattern","line":105,"lang":"es","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 93: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":93,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 118: public function group(string $pattern, $callable): RouteGroupInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":118,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 40: * Get the RouteGroup's pattern","file":"Slim/Interfaces/RouteGroupInterface.php","line":40,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 230: public function group(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollector.php","line":230,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 232: $routeGroup = $this->createGroup($pattern, $callable);","file":"Slim/Routing/RouteCollector.php","line":232,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 244: protected function createGroup(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollector.php","line":244,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 247: return new RouteGroup($pattern, $callable, $this->callableResolver, $routeCollectorProxy);","file":"Slim/Routing/RouteCollector.php","line":247,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 175: public function group(string $pattern, $callable): RouteGroupInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":175,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 179: return $this->routeCollector->group($pattern, $callable);","file":"Slim/Routing/RouteCollectorProxy.php","line":179,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 577: public function testRouteGroupPattern(): void","file":"tests/AppTest.php","line":577,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 456: $routeCollectorProxy->group($pattern, $callable);","file":"tests/Routing/RouteCollectorProxyTest.php","line":456,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"find where to inject the interface for creating http factories","query":"psr17 factory provider","file":"Slim/Factory/AppFactory.php","symbol":"setPsr17FactoryProvider","line":173,"lang":"en","candidates":[{"text":"File: CHANGELOG.md\nLine 167: - [3120: Add a new PSR-17 factory to Psr17FactoryProvider](https://github.com/slimphp/Slim/pull/3120) thanks to @solventt","file":"CHANGELOG.md","line":167,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 19: use Slim\\Factory\\Psr17\\Psr17FactoryProvider;","file":"Slim/Factory/AppFactory.php","line":19,"lexical":0.65,"target":true},{"text":"File: Slim/Factory/AppFactory.php\nLine 23: use Slim\\Interfaces\\Psr17FactoryProviderInterface;","file":"Slim/Factory/AppFactory.php","line":23,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 30: protected static ?Psr17FactoryProviderInterface $psr17FactoryProvider = null;","file":"Slim/Factory/AppFactory.php","line":30,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 136: $psr17FactoryProvider = static::$psr17FactoryProvider ?? new Psr17FactoryProvider();","file":"Slim/Factory/AppFactory.php","line":136,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 139: foreach ($psr17FactoryProvider->getFactories() as $psr17factory) {","file":"Slim/Factory/AppFactory.php","line":139,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 173: public static function setPsr17FactoryProvider(Psr17FactoryProviderInterface $psr17FactoryProvider): void","file":"Slim/Factory/AppFactory.php","line":173,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 175: static::$psr17FactoryProvider = $psr17FactoryProvider;","file":"Slim/Factory/AppFactory.php","line":175,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17FactoryProvider.php\nLine 13: use Slim\\Interfaces\\Psr17FactoryProviderInterface;","file":"Slim/Factory/Psr17/Psr17FactoryProvider.php","line":13,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17FactoryProvider.php\nLine 17: class Psr17FactoryProvider implements Psr17FactoryProviderInterface","file":"Slim/Factory/Psr17/Psr17FactoryProvider.php","line":17,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 15: use Slim\\Factory\\Psr17\\Psr17FactoryProvider;","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":15,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 17: use Slim\\Interfaces\\Psr17FactoryProviderInterface;","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":17,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 23: protected static ?Psr17FactoryProviderInterface $psr17FactoryProvider = null;","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":23,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 43: $psr17FactoryProvider = static::$psr17FactoryProvider ?? new Psr17FactoryProvider();","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":43,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 46: foreach ($psr17FactoryProvider->getFactories() as $psr17Factory) {","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":46,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 74: public static function setPsr17FactoryProvider(Psr17FactoryProviderInterface $psr17FactoryProvider): void","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":74,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 76: static::$psr17FactoryProvider = $psr17FactoryProvider;","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":76,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/Psr17FactoryProviderInterface.php\nLine 14: interface Psr17FactoryProviderInterface","file":"Slim/Interfaces/Psr17FactoryProviderInterface.php","line":14,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 29: use Slim\\Factory\\Psr17\\Psr17FactoryProvider;","file":"tests/Factory/AppFactoryTest.php","line":29,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 72: Psr17FactoryProvider::setFactories([$psr17factory]);","file":"tests/Factory/AppFactoryTest.php","line":72,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 89: Psr17FactoryProvider::setFactories([SlimPsr17Factory::class]);","file":"tests/Factory/AppFactoryTest.php","line":89,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 107: Psr17FactoryProvider::setFactories([SlimPsr17Factory::class]);","file":"tests/Factory/AppFactoryTest.php","line":107,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 114: * @runInSeparateProcess - Psr17FactoryProvider::setFactories breaks other tests","file":"tests/Factory/AppFactoryTest.php","line":114,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 121: Psr17FactoryProvider::setFactories([]);","file":"tests/Factory/AppFactoryTest.php","line":121,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 125: public function testSetPsr17FactoryProvider()","file":"tests/Factory/AppFactoryTest.php","line":125,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 127: $psr17FactoryProvider = new Psr17FactoryProvider();","file":"tests/Factory/AppFactoryTest.php","line":127,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 128: $psr17FactoryProvider::setFactories([SlimPsr17Factory::class]);","file":"tests/Factory/AppFactoryTest.php","line":128,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 130: AppFactory::setPsr17FactoryProvider($psr17FactoryProvider);","file":"tests/Factory/AppFactoryTest.php","line":130,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 137: * @runInSeparateProcess - Psr17FactoryProvider::setFactories breaks other tests","file":"tests/Factory/AppFactoryTest.php","line":137,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 142: Psr17FactoryProvider::setFactories([MockPsr17FactoryWithoutStreamFactory::class]);","file":"tests/Factory/AppFactoryTest.php","line":142,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryProviderTest.php\nLine 13: use Slim\\Factory\\Psr17\\Psr17FactoryProvider;","file":"tests/Factory/Psr17/Psr17FactoryProviderTest.php","line":13,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryProviderTest.php\nLine 16: class Psr17FactoryProviderTest extends TestCase","file":"tests/Factory/Psr17/Psr17FactoryProviderTest.php","line":16,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"O método que recupera o coletor de rotas não está retornando a instância que foi injetada via construtor durante a inicialização da aplicação.","query":"getRouteCollector injected","file":"tests/AppTest.php","symbol":"testGetRouteCollectorReturnsInjectedInstance","line":105,"lang":"pt","candidates":[{"text":"File: tests/AppTest.php\nLine 105: public function testGetRouteCollectorReturnsInjectedInstance(): void","file":"tests/AppTest.php","line":105,"lexical":0.39999999999999997,"target":true},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 78: public function testGetRouteCollectorReturnsInjectedInstance()","file":"tests/Routing/RouteCollectorProxyTest.php","line":78,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"我需要确认当前的流是否支持随机访问,因此请实现一个方法来返回这个属性。","query":"stream seekable","file":"tests/Mocks/SlowPokeStream.php","symbol":"isSeekable","line":80,"lang":"zh","candidates":[{"text":"File: CHANGELOG.md\nLine 351: - [2803](https://github.com/slimphp/Slim/pull/2803) Add ability to emit non seekable streams in `ResponseEmitter`","file":"CHANGELOG.md","line":351,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/ResponseEmitter.php\nLine 130: $seekable = $stream->isSeekable();","file":"Slim/ResponseEmitter.php","line":130,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/ResponseEmitter.php\nLine 134: return $seekable ? $stream->read(1) === '' : $stream->eof();","file":"Slim/ResponseEmitter.php","line":134,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 1691: $streamProphecy->isSeekable()->willReturn(true);","file":"tests/AppTest.php","line":1691,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 1744: $streamProphecy->isSeekable()->willReturn(true);","file":"tests/AppTest.php","line":1744,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Mocks/MockStream.php\nLine 190: throw new RuntimeException('Stream is not seekable');","file":"tests/Mocks/MockStream.php","line":190,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"查找设置路由参数并决定是否保存的方法","query":"set route argument","file":"Slim/Routing/Route.php","symbol":"setArgument","line":302,"lang":"zh","candidates":[{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 91: * Set a route argument","file":"Slim/Interfaces/RouteInterface.php","line":91,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 95: public function setArgument(string $name, string $value): RouteInterface;","file":"Slim/Interfaces/RouteInterface.php","line":95,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 254: public function setArguments(array $arguments, bool $includeInSavedArguments = true): RouteInterface","file":"Slim/Routing/Route.php","line":254,"lexical":0.65,"target":true},{"text":"File: Slim/Routing/Route.php\nLine 302: public function setArgument(string $name, string $value, bool $includeInSavedArguments = true): RouteInterface","file":"Slim/Routing/Route.php","line":302,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 1143: public function testInvokeWithMatchingRouteWithSetArgument(): void","file":"tests/AppTest.php","line":1143,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1184: public function testInvokeWithMatchingRouteWithSetArguments(): void","file":"tests/AppTest.php","line":1184,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1357: public function testInvokeWithMatchingRouteWithNamedParameterOverwritesSetArgument(): void","file":"tests/AppTest.php","line":1357,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 2145: $route->setArgument('extra2', 'value2');","file":"tests/AppTest.php","line":2145,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 255: $route->setArguments(['foo' => 'FOO', 'bar' => 'BAR']);","file":"tests/Routing/RouteTest.php","line":255,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 258: $route->setArgument('bar', 'bar');","file":"tests/Routing/RouteTest.php","line":258,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 261: $route->setArgument('baz', 'BAZ');","file":"tests/Routing/RouteTest.php","line":261,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 264: $route->setArguments(['a' => 'b']);","file":"tests/Routing/RouteTest.php","line":264,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 710: $route->setArguments(['id' => 1]);","file":"tests/Routing/RouteTest.php","line":710,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"查找获取路由回调方法的定义","query":"get callable route","file":"Slim/Interfaces/RouteInterface.php","symbol":"getCallable","line":52,"lang":"zh","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 51: public function get(string $pattern, $callable): RouteInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":51,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 48: * Get route callable","file":"Slim/Interfaces/RouteInterface.php","line":48,"lexical":0.65,"target":true},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 109: public function get(string $pattern, $callable): RouteInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":109,"lexical":0.65,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 152: $routeCollector->map(['GET'], '/download/{file}', $callable);","file":"tests/Routing/DispatcherTest.php","line":152,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 56: $routeCollectorProxy->getCallableResolver()","file":"tests/Routing/RouteCollectorProxyTest.php","line":56,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 150: $route = $routeCollectorProxy->get($pattern, $callable);","file":"tests/Routing/RouteCollectorProxyTest.php","line":150,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 51: public function createRoute($methods = 'GET', string $pattern = '/', $callable = null): Route","file":"tests/Routing/RouteTest.php","line":51,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 121: $this->assertSame($callable, $route->getCallable());","file":"tests/Routing/RouteTest.php","line":121,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 150: $this->assertTrue(is_callable($route->getCallable()));","file":"tests/Routing/RouteTest.php","line":150,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 170: $this->assertSame($callableResolverProphecy->reveal(), $route->getCallableResolver());","file":"tests/Routing/RouteTest.php","line":170,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 404: $route = new Route(['GET'], '/', $deferred, $responseFactory, $callableResolver);","file":"tests/Routing/RouteTest.php","line":404,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 473: $route = $this->createRoute(['GET'], '/', $callable);","file":"tests/Routing/RouteTest.php","line":473,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 491: $route = $this->createRoute(['GET'], '/', $callable);","file":"tests/Routing/RouteTest.php","line":491,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 515: $route = $this->createRoute(['GET'], '/', $callable);","file":"tests/Routing/RouteTest.php","line":515,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 530: $route = $this->createRoute(['GET'], '/', $callable);","file":"tests/Routing/RouteTest.php","line":530,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"リクエストのコンテンツタイプに基づいて、リクエストボディを解析して配列やオブジェクトに変換する処理を探しています。サフィックスを利用してメディアタイプをフォールバックするロジックがどこにあるか教えてください。","query":"parse request body","file":"Slim/Middleware/BodyParsingMiddleware.php","symbol":"parseBody","line":142,"lang":"ja","candidates":[{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 57: $parsedBody = $request->getParsedBody();","file":"Slim/Middleware/BodyParsingMiddleware.php","line":57,"lexical":0.65,"target":true},{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 60: $parsedBody = $this->parseBody($request);","file":"Slim/Middleware/BodyParsingMiddleware.php","line":60,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 61: $request = $request->withParsedBody($parsedBody);","file":"Slim/Middleware/BodyParsingMiddleware.php","line":61,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 142: protected function parseBody(ServerRequestInterface $request)","file":"Slim/Middleware/BodyParsingMiddleware.php","line":142,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 164: 'Request body media type parser return value must be an array, an object, or null'","file":"Slim/Middleware/BodyParsingMiddleware.php","line":164,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/MethodOverrideMiddleware.php\nLine 31: $body = $request->getParsedBody();","file":"Slim/Middleware/MethodOverrideMiddleware.php","line":31,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 160: $this->assertEquals($expected, $requestHandler->request->getParsedBody());","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":160,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 176: $this->assertSame(['data' => '{\"foo\":\"bar\"}'], $requestHandler->request->getParsedBody());","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":176,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"计算给定uri和方法的路由结果","query":"compute routing results","file":"Slim/Interfaces/RouteResolverInterface.php","symbol":"computeRoutingResults","line":14,"lang":"zh","candidates":[{"text":"File: Slim/Interfaces/RouteResolverInterface.php\nLine 14: public function computeRoutingResults(string $uri, string $method): RoutingResults;","file":"Slim/Interfaces/RouteResolverInterface.php","line":14,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 93: return $this->routeResolver->computeRoutingResults(","file":"Slim/Middleware/RoutingMiddleware.php","line":93,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteResolver.php\nLine 23: * and computes the routing results of a given URI and request method","file":"Slim/Routing/RouteResolver.php","line":23,"lexical":0.55,"target":false},{"text":"File: Slim/Routing/RouteResolver.php\nLine 40: public function computeRoutingResults(string $uri, string $method): RoutingResults","file":"Slim/Routing/RouteResolver.php","line":40,"lexical":0.55,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 173: // defined above, when the method `computeRoutingResults()` gets called.","file":"tests/Middleware/RoutingMiddlewareTest.php","line":173,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 176: $routeResolverProphecy->computeRoutingResults(Argument::any(), Argument::any())","file":"tests/Middleware/RoutingMiddlewareTest.php","line":176,"lexical":0.65,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 156: $results = $routeResolver->computeRoutingResults('/download/Foo%20Bar', 'GET');","file":"tests/Routing/DispatcherTest.php","line":156,"lexical":0.55,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 160: $results = $routeResolver->computeRoutingResults('/download/%252e%252e%252fetc%252fpasswd', 'GET');","file":"tests/Routing/DispatcherTest.php","line":160,"lexical":0.55,"target":false},{"text":"File: tests/Routing/RouteResolverTest.php\nLine 26: public static function computeRoutingResultsDataProvider(): array","file":"tests/Routing/RouteResolverTest.php","line":26,"lexical":0.55,"target":false},{"text":"File: tests/Routing/RouteResolverTest.php\nLine 37: * @dataProvider computeRoutingResultsDataProvider","file":"tests/Routing/RouteResolverTest.php","line":37,"lexical":0.55,"target":false},{"text":"File: tests/Routing/RouteResolverTest.php\nLine 41: * @param string $expectedUri The expected uri after transformation in the computeRoutingResults()","file":"tests/Routing/RouteResolverTest.php","line":41,"lexical":0.55,"target":false},{"text":"File: tests/Routing/RouteResolverTest.php\nLine 43: #[\\PHPUnit\\Framework\\Attributes\\DataProvider('computeRoutingResultsDataProvider')]","file":"tests/Routing/RouteResolverTest.php","line":43,"lexical":0.55,"target":false},{"text":"File: tests/Routing/RouteResolverTest.php\nLine 44: public function testComputeRoutingResults(string $method, string $uri, string $expectedUri)","file":"tests/Routing/RouteResolverTest.php","line":44,"lexical":0.55,"target":false},{"text":"File: tests/Routing/RouteResolverTest.php\nLine 69: $routeResolver->computeRoutingResults($uri, $method);","file":"tests/Routing/RouteResolverTest.php","line":69,"lexical":0.55,"target":false}]} {"site":"project_search","repo":"slim","task":"générer le rendu texte brut des erreurs slimg","query":"plain text error renderer","file":"Slim/Error/Renderers/PlainTextErrorRenderer.php","symbol":"PlainTextErrorRenderer","line":23,"lang":"fr","candidates":[{"text":"File: CHANGELOG.md\nLine 73: - Do not HTML entity encode in PlainTextErrorRenderer by @akrabat in https://github.com/slimphp/Slim/pull/3319","file":"CHANGELOG.md","line":73,"lexical":0.5,"target":false},{"text":"File: CHANGELOG.md\nLine 74: - Only render tip to error log if plain text renderer is used by @akrabat in https://github.com/slimphp/Slim/pull/3321","file":"CHANGELOG.md","line":74,"lexical":0.5,"target":false},{"text":"File: Slim/Error/Renderers/PlainTextErrorRenderer.php\nLine 21: * Default Slim application Plain Text Error Renderer","file":"Slim/Error/Renderers/PlainTextErrorRenderer.php","line":21,"lexical":0.65,"target":true},{"text":"File: Slim/Error/Renderers/PlainTextErrorRenderer.php\nLine 23: class PlainTextErrorRenderer extends AbstractErrorRenderer","file":"Slim/Error/Renderers/PlainTextErrorRenderer.php","line":23,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 20: use Slim\\Error\\Renderers\\PlainTextErrorRenderer;","file":"Slim/Handlers/ErrorHandler.php","line":20,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 60: protected $logErrorRenderer = PlainTextErrorRenderer::class;","file":"Slim/Handlers/ErrorHandler.php","line":60,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 70: 'text/plain' => PlainTextErrorRenderer::class,","file":"Slim/Handlers/ErrorHandler.php","line":70,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 270: if ($this->logErrorRenderer === PlainTextErrorRenderer::class && !$this->displayErrorDetails) {","file":"Slim/Handlers/ErrorHandler.php","line":270,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 18: use Slim\\Error\\Renderers\\PlainTextErrorRenderer;","file":"tests/Error/AbstractErrorRendererTest.php","line":18,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 263: public function testPlainTextErrorRendererFormatFragmentMethod()","file":"tests/Error/AbstractErrorRendererTest.php","line":263,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 267: $renderer = new PlainTextErrorRenderer();","file":"tests/Error/AbstractErrorRendererTest.php","line":267,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 268: $reflectionRenderer = new ReflectionClass(PlainTextErrorRenderer::class);","file":"tests/Error/AbstractErrorRendererTest.php","line":268,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 285: public function testPlainTextErrorRendererDisplaysErrorDetails()","file":"tests/Error/AbstractErrorRendererTest.php","line":285,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 290: $renderer = new PlainTextErrorRenderer();","file":"tests/Error/AbstractErrorRendererTest.php","line":290,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 296: public function testPlainTextErrorRendererNotDisplaysErrorDetails()","file":"tests/Error/AbstractErrorRendererTest.php","line":296,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 301: $renderer = new PlainTextErrorRenderer();","file":"tests/Error/AbstractErrorRendererTest.php","line":301,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 307: public function testPlainTextErrorRendererRenderHttpException()","file":"tests/Error/AbstractErrorRendererTest.php","line":307,"lexical":0.65,"target":false},{"text":"File: tests/Error/AbstractErrorRendererTest.php\nLine 318: $renderer = new PlainTextErrorRenderer();","file":"tests/Error/AbstractErrorRendererTest.php","line":318,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 22: use Slim\\Error\\Renderers\\PlainTextErrorRenderer;","file":"tests/Handlers/ErrorHandlerTest.php","line":22,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 66: $this->assertInstanceOf(PlainTextErrorRenderer::class, $renderer[0]);","file":"tests/Handlers/ErrorHandlerTest.php","line":66,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 257: 'text/plain' => PlainTextErrorRenderer::class,","file":"tests/Handlers/ErrorHandlerTest.php","line":257,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 337: $handler->registerErrorRenderer('application/slim', PlainTextErrorRenderer::class);","file":"tests/Handlers/ErrorHandlerTest.php","line":337,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 350: $handler->setDefaultErrorRenderer('text/plain', PlainTextErrorRenderer::class);","file":"tests/Handlers/ErrorHandlerTest.php","line":350,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 361: $this->assertSame(PlainTextErrorRenderer::class, $defaultErrorRenderer);","file":"tests/Handlers/ErrorHandlerTest.php","line":361,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 362: $this->assertSame('text/plain', $defaultErrorRendererContentType);","file":"tests/Handlers/ErrorHandlerTest.php","line":362,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 434: public function testWriteToErrorLogDoesNotShowTipIfErrorLogRendererIsNotPlainText()","file":"tests/Handlers/ErrorHandlerTest.php","line":434,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"Je cherche la méthode qui permet d'enregistrer un nouveau composant dans la pile de traitement. Elle doit gérer aussi bien les instances d'interface que les classes via leur nom ou les fonctions anonymes.","query":"add middleware stack","file":"Slim/MiddlewareDispatcher.php","symbol":"add","line":85,"lang":"fr","candidates":[{"text":"File: Slim/App.php\nLine 119: * Add the Slim built-in routing middleware to the app middleware stack","file":"Slim/App.php","line":119,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 136: * Add the Slim built-in error middleware to the app middleware stack","file":"Slim/App.php","line":136,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 164: * Add the Slim body parsing middleware to the app middleware stack","file":"Slim/App.php","line":164,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 20: * Add a new middleware to the stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":20,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/MiddlewareDispatcherInterface.php\nLine 31: * Add a new middleware to the stack","file":"Slim/Interfaces/MiddlewareDispatcherInterface.php","line":31,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 77: * Add a new middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":77,"lexical":0.65,"target":true},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 107: * Add a new middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":107,"lexical":0.65,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 247: * Add a (non-standard) callable middleware to the stack","file":"Slim/MiddlewareDispatcher.php","line":247,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 704: // Check that the routing middleware really has been added to the tip of the app middleware stack.","file":"tests/AppTest.php","line":704,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 737: // Check that the error middleware really has been added to the tip of the app middleware stack.","file":"tests/AppTest.php","line":737,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 767: // Check that the body parsing middleware really has been added to the tip of the app middleware stack.","file":"tests/AppTest.php","line":767,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"當我在路由代理物件中嘗試獲取基礎路徑時,發現它似乎只是單純地將請求轉發給底層的收集器,我想確認這個轉發邏輯是否符合預期,或者是否有必要在代理層級進行額外的處理。","query":"get base path","file":"Slim/Routing/RouteCollectorProxy.php","symbol":"getBasePath","line":91,"lang":"zh","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 48: * Get the base path used in pathFor()","file":"Slim/Interfaces/RouteCollectorInterface.php","line":48,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 50: public function getBasePath(): string;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":50,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 35: * Get the RouteCollectorProxy's base path","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":35,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 37: public function getBasePath(): string;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":37,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 31: $basePath = $this->routeCollector->getBasePath();","file":"Slim/Routing/Dispatcher.php","line":31,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 34: $r->addRoute($route->getMethods(), $basePath . $route->getPattern(), $route->getIdentifier());","file":"Slim/Routing/Dispatcher.php","line":34,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 158: public function getBasePath(): string","file":"Slim/Routing/RouteCollector.php","line":158,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 91: public function getBasePath(): string","file":"Slim/Routing/RouteCollectorProxy.php","line":91,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 93: return $this->routeCollector->getBasePath();","file":"Slim/Routing/RouteCollectorProxy.php","line":93,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteContext.php\nLine 34: $basePath = $serverRequest->getAttribute(self::BASE_PATH);","file":"Slim/Routing/RouteContext.php","line":34,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteContext.php\nLine 82: public function getBasePath(): string","file":"Slim/Routing/RouteContext.php","line":82,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteParser.php\nLine 106: $basePath = $this->routeCollector->getBasePath();","file":"Slim/Routing/RouteParser.php","line":106,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 68: $this->routeCollectorProxy->getBasePath()","file":"Slim/Routing/RouteRunner.php","line":68,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 98: public function testGetSetBasePath()","file":"tests/Routing/RouteCollectorProxyTest.php","line":98,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 114: $this->assertSame($basePath, $routeCollectorProxy->getBasePath());","file":"tests/Routing/RouteCollectorProxyTest.php","line":114,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 119: $this->assertSame($newBasePath, $routeCollectorProxy->getBasePath());","file":"tests/Routing/RouteCollectorProxyTest.php","line":119,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 43: public function testGetSetBasePath()","file":"tests/Routing/RouteCollectorTest.php","line":43,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 53: $this->assertSame($basePath, $routeCollector->getBasePath());","file":"tests/Routing/RouteCollectorTest.php","line":53,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 40: $this->assertSame('', $routeContext->getBasePath());","file":"tests/Routing/RouteContextTest.php","line":40,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 54: $this->assertNotNull($routeContext->getBasePath());","file":"tests/Routing/RouteContextTest.php","line":54,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 57: public function testCanCreateInstanceWithoutBasePathAndThrowExceptionIfGetBasePathIsCalled(): void","file":"tests/Routing/RouteContextTest.php","line":57,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteContextTest.php\nLine 70: $routeContext->getBasePath();","file":"tests/Routing/RouteContextTest.php","line":70,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteParserTest.php\nLine 198: ->getBasePath()","file":"tests/Routing/RouteParserTest.php","line":198,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"특정 컨텐츠 타입에 맞춰 에러 렌더러를 등록하는 메서드가 어디 있지?","query":"register error renderer","file":"Slim/Handlers/ErrorHandler.php","symbol":"registerErrorRenderer","line":233,"lang":"ko","candidates":[{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 228: * Register an error renderer for a specific content-type","file":"Slim/Handlers/ErrorHandler.php","line":228,"lexical":0.65,"target":true},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 233: public function registerErrorRenderer(string $contentType, $errorRenderer): void","file":"Slim/Handlers/ErrorHandler.php","line":233,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 334: public function testRegisterErrorRenderer()","file":"tests/Handlers/ErrorHandlerTest.php","line":334,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 337: $handler->registerErrorRenderer('application/slim', PlainTextErrorRenderer::class);","file":"tests/Handlers/ErrorHandlerTest.php","line":337,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"PSR-17のレスポンスファクトリにおいて、Slim HTTPデコレータの自動検出が有効な場合に、適切なストリームファクトリを使用してデコレートされたファクトリを返そうとするロジックで、特定の条件下で期待通りのデコレーションが行われない可能性があります。この自動検出とデコレーションの仕組みを確認したいです。","query":"response factory decoration","file":"Slim/Factory/AppFactory.php","symbol":"attemptResponseFactoryDecoration","line":159,"lang":"ja","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 131: return static::attemptResponseFactoryDecoration(static::$responseFactory, static::$streamFactory);","file":"Slim/Factory/AppFactory.php","line":131,"lexical":0.65,"target":true},{"text":"File: Slim/Factory/AppFactory.php\nLine 145: return static::attemptResponseFactoryDecoration($responseFactory, $streamFactory);","file":"Slim/Factory/AppFactory.php","line":145,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 159: protected static function attemptResponseFactoryDecoration(","file":"Slim/Factory/AppFactory.php","line":159,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"criar uma resposta http com codigo e motivo","query":"create response factory","file":"tests/Providers/PSR7ObjectProvider.php","symbol":"createResponse","line":79,"lang":"pt","candidates":[{"text":"File: Slim/App.php\nLine 220: $emptyBody = $this->responseFactory->createResponse()->getBody();","file":"Slim/App.php","line":220,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 167: return SlimHttpPsr17Factory::createDecoratedResponseFactory($responseFactory, $streamFactory);","file":"Slim/Factory/AppFactory.php","line":167,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 24: public static function createDecoratedResponseFactory(","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":24,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 296: $response = $this->responseFactory->createResponse($this->statusCode);","file":"Slim/Handlers/ErrorHandler.php","line":296,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 361: $response = $this->responseFactory->createResponse();","file":"Slim/Routing/Route.php","line":361,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 190: $response = $responseFactory->createResponse($status);","file":"Slim/Routing/RouteCollectorProxy.php","line":190,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 184: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":184,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 217: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":217,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 276: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":276,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 318: $responseFactoryProphecy->createResponse()->willReturn($routeCreatedResponse->reveal());","file":"tests/AppTest.php","line":318,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 319: $responseFactoryProphecy->createResponse(301)->willReturn($handlerCreatedResponse->reveal());","file":"tests/AppTest.php","line":319,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 338: $responseFactoryProphecy->createResponse(301)->shouldHaveBeenCalled();","file":"tests/AppTest.php","line":338,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 354: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":354,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 603: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":603,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 667: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":667,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 797: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":797,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 877: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":877,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 959: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":959,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1118: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1118,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1158: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1158,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1199: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1199,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1240: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1240,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1281: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1281,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1327: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1327,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1372: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1372,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1429: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1429,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1471: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1471,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1515: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1515,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1560: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1560,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1607: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1607,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1648: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1648,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1703: $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal());","file":"tests/AppTest.php","line":1703,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"怎么给路由分组添加中间件?","query":"route group middleware","file":"Slim/Routing/RouteGroup.php","symbol":"add","line":74,"lang":"zh","candidates":[{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 22: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":22,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 26: public function add($middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":26,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 29: * Add middleware to the route group","file":"Slim/Interfaces/RouteGroupInterface.php","line":29,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 31: public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":31,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteGroupInterface.php\nLine 37: public function appendMiddlewareToDispatcher(MiddlewareDispatcher $dispatcher): RouteGroupInterface;","file":"Slim/Interfaces/RouteGroupInterface.php","line":37,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 318: $this->appendGroupMiddlewareToRoute();","file":"Slim/Routing/Route.php","line":318,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 327: protected function appendGroupMiddlewareToRoute(): void","file":"Slim/Routing/Route.php","line":327,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 74: public function add($middleware): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":74,"lexical":0.65,"target":true},{"text":"File: Slim/Routing/RouteGroup.php\nLine 83: public function addMiddleware(MiddlewareInterface $middleware): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":83,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteGroup.php\nLine 93: public function appendMiddlewareToDispatcher(MiddlewareDispatcher $dispatcher): RouteGroupInterface","file":"Slim/Routing/RouteGroup.php","line":93,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 866: public function testAddMiddlewareOnRouteGroup(): void","file":"tests/AppTest.php","line":866,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 948: public function testAddMiddlewareOnTwoRouteGroup(): void","file":"tests/AppTest.php","line":948,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"我正在调整路由逻辑,想看看有没有地方可以手动注入参数到当前的路由定义中。能不能帮我找一下那个可以接收一个数组并决定是否持久化这些参数的方法?","query":"set arguments","file":"Slim/Routing/Route.php","symbol":"setArguments","line":254,"lang":"zh","candidates":[{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 104: public function setArguments(array $arguments): self;","file":"Slim/Interfaces/RouteInterface.php","line":104,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 254: public function setArguments(array $arguments, bool $includeInSavedArguments = true): RouteInterface","file":"Slim/Routing/Route.php","line":254,"lexical":0.39999999999999997,"target":true},{"text":"File: Slim/Routing/Route.php\nLine 302: public function setArgument(string $name, string $value, bool $includeInSavedArguments = true): RouteInterface","file":"Slim/Routing/Route.php","line":302,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 1184: public function testInvokeWithMatchingRouteWithSetArguments(): void","file":"tests/AppTest.php","line":1184,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 1205: })->setArguments(['greeting' => 'Hello', 'name' => 'World']);","file":"tests/AppTest.php","line":1205,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 252: public function testArgumentSetting()","file":"tests/Routing/RouteTest.php","line":252,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 255: $route->setArguments(['foo' => 'FOO', 'bar' => 'BAR']);","file":"tests/Routing/RouteTest.php","line":255,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 264: $route->setArguments(['a' => 'b']);","file":"tests/Routing/RouteTest.php","line":264,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 710: $route->setArguments(['id' => 1]);","file":"tests/Routing/RouteTest.php","line":710,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"サーバーリクエスト生成器のカスタムインスタンスをセットアップすると、他のテストに影響が出てしまう。デコレーターの自動検出を有効にした状態で、独自の生成器が正しく反映され、期待通りのリクエストオブジェクトが返されるか確認したい。また、プロセスが汚染される問題を解決するために、テストを分離して実行している箇所を特定してほしい。","query":"setServerRequestCreator test","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","symbol":"testSetServerRequestCreatorWithDecorators","line":123,"lang":"ja","candidates":[{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 99: * @runInSeparateProcess - ServerRequestCreatorFactory::setServerRequestCreator breaks other tests","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":99,"lexical":0.6000000000000001,"target":true},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 102: public function testSetServerRequestCreatorWithoutDecorators()","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":102,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 121: * @runInSeparateProcess - ServerRequestCreatorFactory::setServerRequestCreator breaks other tests","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":121,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 124: public function testSetServerRequestCreatorWithDecorators()","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":124,"lexical":0.6000000000000001,"target":false}]} {"site":"project_search","repo":"slim","task":"Estou tentando implementar o suporte a PSR-17 para gerenciar o corpo das requisições. Onde encontro o método estático que retorna o componente responsável por criar novos fluxos de dados?","query":"getStreamFactory","file":"Slim/Interfaces/Psr17FactoryInterface.php","symbol":"getStreamFactory","line":27,"lang":"pt","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 144: $streamFactory = static::$streamFactory ?? $psr17factory::getStreamFactory();","file":"Slim/Factory/AppFactory.php","line":144,"lexical":0.35,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 50: public static function getStreamFactory(): StreamFactoryInterface","file":"Slim/Factory/Psr17/Psr17Factory.php","line":50,"lexical":0.35,"target":false},{"text":"File: Slim/Interfaces/Psr17FactoryInterface.php\nLine 27: public static function getStreamFactory(): StreamFactoryInterface;","file":"Slim/Interfaces/Psr17FactoryInterface.php","line":27,"lexical":0.35,"target":true},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 27: public function testGetStreamFactoryThrowsRuntimeException()","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":27,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 32: MockPsr17Factory::getStreamFactory();","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":32,"lexical":0.35,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 26: $middleware = new OutputBufferingMiddleware($this->getStreamFactory());","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":26,"lexical":0.35,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 37: $middleware = new OutputBufferingMiddleware($this->getStreamFactory(), 'prepend');","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":37,"lexical":0.35,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 50: new OutputBufferingMiddleware($this->getStreamFactory(), 'foo');","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":50,"lexical":0.35,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 63: $outputBufferingMiddleware = new OutputBufferingMiddleware($this->getStreamFactory(), 'append');","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":63,"lexical":0.35,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 88: $outputBufferingMiddleware = new OutputBufferingMiddleware($this->getStreamFactory(), 'prepend');","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":88,"lexical":0.35,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 111: $outputBufferingMiddleware = new OutputBufferingMiddleware($this->getStreamFactory(), 'prepend');","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":111,"lexical":0.35,"target":false},{"text":"File: tests/Providers/PSR7ObjectProvider.php\nLine 101: ->getStreamFactory()","file":"tests/Providers/PSR7ObjectProvider.php","line":101,"lexical":0.35,"target":false},{"text":"File: tests/Providers/PSR7ObjectProvider.php\nLine 108: public function getStreamFactory(): StreamFactoryInterface","file":"tests/Providers/PSR7ObjectProvider.php","line":108,"lexical":0.35,"target":false},{"text":"File: tests/Providers/PSR7ObjectProviderInterface.php\nLine 40: public function getStreamFactory(): StreamFactoryInterface;","file":"tests/Providers/PSR7ObjectProviderInterface.php","line":40,"lexical":0.35,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 91: $body = $this->getStreamFactory()->createStreamFromResource($stream);","file":"tests/ResponseEmitterTest.php","line":91,"lexical":0.35,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 201: $body = $this->getStreamFactory()->createStreamFromResource($resource);","file":"tests/ResponseEmitterTest.php","line":201,"lexical":0.35,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 246: $body = $this->getStreamFactory()->createStreamFromResource(fopen('php://temp', 'r+'));","file":"tests/ResponseEmitterTest.php","line":246,"lexical":0.35,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 269: $body = $this->getStreamFactory()->createStreamFromResource(fopen('php://input', 'r+'));","file":"tests/ResponseEmitterTest.php","line":269,"lexical":0.35,"target":false},{"text":"File: tests/TestCase.php\nLine 55: protected function getStreamFactory(): StreamFactoryInterface","file":"tests/TestCase.php","line":55,"lexical":0.35,"target":false},{"text":"File: tests/TestCase.php\nLine 58: return $psr7ObjectProvider->getStreamFactory();","file":"tests/TestCase.php","line":58,"lexical":0.35,"target":false}]} {"site":"project_search","repo":"slim","task":"How do I create a server request and obtain the necessary factory instances for PSR-7 objects in tests?","query":"PSR7 object provider","file":"tests/Providers/PSR7ObjectProviderInterface.php","symbol":"PSR7ObjectProviderInterface","line":25,"lang":"en","candidates":[{"text":"File: tests/Mocks/CallableTest.php\nLine 13: use Slim\\Tests\\Providers\\PSR7ObjectProvider;","file":"tests/Mocks/CallableTest.php","line":13,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/CallableTest.php\nLine 30: $psr7ObjectProvider = new PSR7ObjectProvider();","file":"tests/Mocks/CallableTest.php","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/CallableTest.php\nLine 31: return $psr7ObjectProvider->createResponse();","file":"tests/Mocks/CallableTest.php","line":31,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/MiddlewareTest.php\nLine 17: use Slim\\Tests\\Providers\\PSR7ObjectProvider;","file":"tests/Mocks/MiddlewareTest.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/MiddlewareTest.php\nLine 30: $psr7ObjectProvider = new PSR7ObjectProvider();","file":"tests/Mocks/MiddlewareTest.php","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/MiddlewareTest.php\nLine 31: $responseFactory = $psr7ObjectProvider->getResponseFactory();","file":"tests/Mocks/MiddlewareTest.php","line":31,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/MockRequestHandler.php\nLine 16: use Slim\\Tests\\Providers\\PSR7ObjectProvider;","file":"tests/Mocks/MockRequestHandler.php","line":16,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/MockRequestHandler.php\nLine 31: $psr7ObjectProvider = new PSR7ObjectProvider();","file":"tests/Mocks/MockRequestHandler.php","line":31,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/MockRequestHandler.php\nLine 32: $responseFactory = $psr7ObjectProvider->getResponseFactory();","file":"tests/Mocks/MockRequestHandler.php","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/RequestHandlerTest.php\nLine 16: use Slim\\Tests\\Providers\\PSR7ObjectProvider;","file":"tests/Mocks/RequestHandlerTest.php","line":16,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/RequestHandlerTest.php\nLine 35: $psr7ObjectProvider = new PSR7ObjectProvider();","file":"tests/Mocks/RequestHandlerTest.php","line":35,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/RequestHandlerTest.php\nLine 36: $responseFactory = $psr7ObjectProvider->getResponseFactory();","file":"tests/Mocks/RequestHandlerTest.php","line":36,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/RequestHandlerTest.php\nLine 49: $psr7ObjectProvider = new PSR7ObjectProvider();","file":"tests/Mocks/RequestHandlerTest.php","line":49,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/RequestHandlerTest.php\nLine 50: $responseFactory = $psr7ObjectProvider->getResponseFactory();","file":"tests/Mocks/RequestHandlerTest.php","line":50,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Providers/PSR7ObjectProvider.php\nLine 26: * Class PSR7ObjectProvider","file":"tests/Providers/PSR7ObjectProvider.php","line":26,"lexical":0.65,"target":false},{"text":"File: tests/Providers/PSR7ObjectProvider.php\nLine 30: class PSR7ObjectProvider implements PSR7ObjectProviderInterface","file":"tests/Providers/PSR7ObjectProvider.php","line":30,"lexical":0.65,"target":false},{"text":"File: tests/Providers/PSR7ObjectProviderInterface.php\nLine 21: * Interface PSR7ObjectProviderInterface","file":"tests/Providers/PSR7ObjectProviderInterface.php","line":21,"lexical":0.65,"target":true},{"text":"File: tests/Providers/PSR7ObjectProviderInterface.php\nLine 25: interface PSR7ObjectProviderInterface","file":"tests/Providers/PSR7ObjectProviderInterface.php","line":25,"lexical":0.65,"target":false},{"text":"File: tests/TestCase.php\nLine 28: use Slim\\Tests\\Providers\\PSR7ObjectProvider;","file":"tests/TestCase.php","line":28,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/TestCase.php\nLine 39: $psr7ObjectProvider = new PSR7ObjectProvider();","file":"tests/TestCase.php","line":39,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/TestCase.php\nLine 40: return $psr7ObjectProvider->getServerRequestFactory();","file":"tests/TestCase.php","line":40,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/TestCase.php\nLine 48: $psr7ObjectProvider = new PSR7ObjectProvider();","file":"tests/TestCase.php","line":48,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/TestCase.php\nLine 49: return $psr7ObjectProvider->getResponseFactory();","file":"tests/TestCase.php","line":49,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/TestCase.php\nLine 57: $psr7ObjectProvider = new PSR7ObjectProvider();","file":"tests/TestCase.php","line":57,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/TestCase.php\nLine 58: return $psr7ObjectProvider->getStreamFactory();","file":"tests/TestCase.php","line":58,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/TestCase.php\nLine 101: $psr7ObjectProvider = new PSR7ObjectProvider();","file":"tests/TestCase.php","line":101,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/TestCase.php\nLine 102: return $psr7ObjectProvider->createServerRequest($uri, $method, $data);","file":"tests/TestCase.php","line":102,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/TestCase.php\nLine 112: $psr7ObjectProvider = new PSR7ObjectProvider();","file":"tests/TestCase.php","line":112,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/TestCase.php\nLine 113: return $psr7ObjectProvider->createResponse($statusCode, $reasonPhrase);","file":"tests/TestCase.php","line":113,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/TestCase.php\nLine 122: $psr7ObjectProvider = new PSR7ObjectProvider();","file":"tests/TestCase.php","line":122,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/TestCase.php\nLine 123: return $psr7ObjectProvider->createStream($contents);","file":"tests/TestCase.php","line":123,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Je cherche la méthode qui permet de créer une version décorée pour gérer les réponses en utilisant les standards PSR. Peux-tu me montrer comment elle gère l'instanciation et l'exception si ça échoue ?","query":"decorated response factory","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","symbol":"createDecoratedResponseFactory","line":24,"lang":"fr","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 167: return SlimHttpPsr17Factory::createDecoratedResponseFactory($responseFactory, $streamFactory);","file":"Slim/Factory/AppFactory.php","line":167,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 19: protected static string $responseFactoryClass = 'Slim\\Http\\Factory\\DecoratedResponseFactory';","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":19,"lexical":0.65,"target":true},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 24: public static function createDecoratedResponseFactory(","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":24,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 30: $decoratedResponseFactory = new static::$responseFactoryClass($responseFactory, $streamFactory)","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":30,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 34: throw new RuntimeException(get_called_class() . ' could not instantiate a decorated response factory.');","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":34,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 37: return $decoratedResponseFactory;","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":37,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 32: use Slim\\Http\\Factory\\DecoratedResponseFactory;","file":"tests/Factory/AppFactoryTest.php","line":32,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 50: $reflectionClass->setStaticPropertyValue('responseFactoryClass', DecoratedResponseFactory::class);","file":"tests/Factory/AppFactoryTest.php","line":50,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 87: public function testDetermineResponseFactoryReturnsDecoratedFactory()","file":"tests/Factory/AppFactoryTest.php","line":87,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 94: $this->assertInstanceOf(DecoratedResponseFactory::class, $app->getResponseFactory());","file":"tests/Factory/AppFactoryTest.php","line":94,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 97: public function testDetermineResponseFactoryThrowsRuntimeExceptionIfDecoratedNotInstanceOfResponseInterface()","file":"tests/Factory/AppFactoryTest.php","line":97,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 101: 'Slim\\\\Factory\\\\Psr17\\\\SlimHttpPsr17Factory could not instantiate a decorated response factory.'","file":"tests/Factory/AppFactoryTest.php","line":101,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 263: public function testResponseAndStreamFactoryIsBeingInjectedInDecoratedResponseFactory()","file":"tests/Factory/AppFactoryTest.php","line":263,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 284: $streamFactoryProperty = new ReflectionProperty(DecoratedResponse::class, 'streamFactory');","file":"tests/Factory/AppFactoryTest.php","line":284,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"zeige die methode zum instanziieren einer serveranfrage für tests","query":"create server request","file":"tests/Providers/PSR7ObjectProvider.php","symbol":"createServerRequest","line":38,"lang":"de","candidates":[{"text":"File: README.md\nLine 55: In order for auto-detection to work and enable you to use `AppFactory::create()` and `App::run()` without having to manually create a `ServerRequest` you need to install one of the following implementations:","file":"README.md","line":55,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 189: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"Slim/App.php","line":189,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 190: $request = $serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/App.php","line":190,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'createFromGlobals';","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/ServerRequestCreator.php\nLine 38: public function createServerRequestFromGlobals(): ServerRequestInterface","file":"Slim/Factory/Psr17/ServerRequestCreator.php","line":38,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 33: public function createServerRequestFromGlobals(): ServerRequestInterface","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":33,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpServerRequestCreator.php\nLine 39: $request = $this->serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/Factory/Psr17/SlimHttpServerRequestCreator.php","line":39,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'createFromGlobals';","file":"Slim/Factory/Psr17/SlimPsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/ServerRequestCreatorFactory.php\nLine 29: public static function create(): ServerRequestCreatorInterface","file":"Slim/Factory/ServerRequestCreatorFactory.php","line":29,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/ServerRequestCreatorInterface.php\nLine 17: public function createServerRequestFromGlobals(): ServerRequestInterface;","file":"Slim/Interfaces/ServerRequestCreatorInterface.php","line":17,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 258: $request = $this->createServerRequest('/', 'GET');","file":"tests/CallableResolverTest.php","line":258,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 287: $request = $this->createServerRequest('/', 'GET');","file":"tests/CallableResolverTest.php","line":287,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 325: $request = $this->createServerRequest('/', 'GET');","file":"tests/CallableResolverTest.php","line":325,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 390: $request = $this->createServerRequest('/', 'GET');","file":"tests/CallableResolverTest.php","line":390,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 22: $request = $this->createServerRequest('/');","file":"tests/Exception/HttpExceptionTest.php","line":22,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 30: $request = $this->createServerRequest('/');","file":"tests/Exception/HttpExceptionTest.php","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 42: $request = $this->createServerRequest('/');","file":"tests/Exception/HttpExceptionTest.php","line":42,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpUnauthorizedExceptionTest.php\nLine 20: $request = $this->createServerRequest('/');","file":"tests/Exception/HttpUnauthorizedExceptionTest.php","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Exception/HttpUnauthorizedExceptionTest.php\nLine 28: $request = $this->createServerRequest('/');","file":"tests/Exception/HttpUnauthorizedExceptionTest.php","line":28,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 43: public function testCreateServerRequestFromGlobals()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":43,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 50: ->createServerRequestFromGlobals()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":50,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 56: $this->assertInstanceOf(ServerRequest::class, $slimHttpServerRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":56,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 59: public function testCreateServerRequestFromGlobalsThrowsRuntimeException()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":59,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 75: $slimHttpServerRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":75,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 78: public function testCreateServerRequestFromGlobalsThrowsRuntimeExceptionIfNotInstanceOfServerRequestInterface()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":78,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 89: ->createServerRequestFromGlobals()","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":89,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php\nLine 98: $slimHttpServerRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/Psr17/SlimHttpServerRequestCreatorTest.php","line":98,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 51: public function testCreateAppWithAllImplementations(string $psr17factory, string $expectedServerRequestClass)","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":51,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 56: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":56,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 57: $serverRequest = $serverRequestCreator->createServerRequestFromGlobals();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":57,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 67: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":67,"lexical":0.65,"target":false},{"text":"File: tests/Factory/ServerRequestCreatorFactoryTest.php\nLine 70: $this->assertInstanceOf(ServerRequest::class, $serverRequestCreator->createServerRequestFromGlobals());","file":"tests/Factory/ServerRequestCreatorFactoryTest.php","line":70,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"pruefe die funktion zum registrieren von mehreren methoden für ein muster","query":"map methods pattern","file":"tests/Routing/RouteCollectorProxyTest.php","symbol":"testMap","line":353,"lang":"de","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 102: public function map(array $methods, string $pattern, $handler): RouteInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":102,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 108: public function map(array $methods, string $pattern, $callable): RouteInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":108,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 268: public function map(array $methods, string $pattern, $handler): RouteInterface","file":"Slim/Routing/RouteCollector.php","line":268,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 165: public function map(array $methods, string $pattern, $callable): RouteInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":165,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 169: return $this->routeCollector->map($methods, $pattern, $callable);","file":"Slim/Routing/RouteCollectorProxy.php","line":169,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 371: ->map($methods, $pattern, Argument::is($callable))","file":"tests/Routing/RouteCollectorProxyTest.php","line":371,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/Routing/RouteCollectorProxyTest.php\nLine 382: $route = $routeCollectorProxy->map($methods, $pattern, $callable);","file":"tests/Routing/RouteCollectorProxyTest.php","line":382,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"디버깅: 미들웨어 디스패처가 커널, 콜러블 리졸버, 컨테이너를 초기화할 때, 특히 컨테이너가 null이 아닌 경우 이를 내부 상태에 올바르게 설정하는지 확인한다. @param 주석에 명시된 대로 컨테이너 인터페이스 타입이 제대로 처리되어야 한다.","query":"middleware constructor container","file":"Slim/MiddlewareDispatcher.php","symbol":"__construct","line":50,"lang":"ko","candidates":[{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 586: $containerProphecy->has(MockMiddlewareWithConstructor::class)->willReturn(false);","file":"tests/MiddlewareDispatcherTest.php","line":586,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 595: $this->assertSame($containerProphecy->reveal(), MockMiddlewareWithConstructor::$container);","file":"tests/MiddlewareDispatcherTest.php","line":595,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"インターフェースを実装していないミドルウェアのモックを作って","query":"mock middleware","file":"tests/Mocks/MockMiddlewareWithoutInterface.php","symbol":"MockMiddlewareWithoutInterface","line":13,"lang":"ja","candidates":[{"text":"File: tests/CallableResolverTest.php\nLine 21: use Slim\\Tests\\Mocks\\MiddlewareTest;","file":"tests/CallableResolverTest.php","line":21,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 121: $callableMiddleware = $resolver->resolveMiddleware('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":121,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 163: $resolver->resolveMiddleware('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":163,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 235: $callableMiddleware = $resolver->resolveMiddleware('Slim\\Tests\\Mocks\\InvokableTest');","file":"tests/CallableResolverTest.php","line":235,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 393: $callableRouteMiddleware($request, $this->createMock(RequestHandlerInterface::class));","file":"tests/CallableResolverTest.php","line":393,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 21: use Slim\\Tests\\Mocks\\MockMiddlewareSlimCallable;","file":"tests/MiddlewareDispatcherTest.php","line":21,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 22: use Slim\\Tests\\Mocks\\MockMiddlewareWithConstructor;","file":"tests/MiddlewareDispatcherTest.php","line":22,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 23: use Slim\\Tests\\Mocks\\MockMiddlewareWithoutConstructor;","file":"tests/MiddlewareDispatcherTest.php","line":23,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 25: use Slim\\Tests\\Mocks\\MockSequenceMiddleware;","file":"tests/MiddlewareDispatcherTest.php","line":25,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 126: ->resolve(MockMiddlewareWithoutConstructor::class)","file":"tests/MiddlewareDispatcherTest.php","line":126,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 133: $middlewareDispatcher->addDeferred(MockMiddlewareWithoutConstructor::class);","file":"tests/MiddlewareDispatcherTest.php","line":133,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 144: [MockMiddlewareSlimCallable::class . ':custom', new MockMiddlewareSlimCallable()],","file":"tests/MiddlewareDispatcherTest.php","line":144,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 145: ['MiddlewareInstance', new MockMiddlewareWithoutConstructor()],","file":"tests/MiddlewareDispatcherTest.php","line":145,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 208: $middlewareDispatcher->addDeferred(MockMiddlewareSlimCallable::class . ':custom');","file":"tests/MiddlewareDispatcherTest.php","line":208,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 266: MockMiddlewareWithoutConstructor::$CalledCount = 0;","file":"tests/MiddlewareDispatcherTest.php","line":266,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 270: $middlewareDispatcher->addDeferred(MockMiddlewareWithoutConstructor::class);","file":"tests/MiddlewareDispatcherTest.php","line":270,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 275: $this->assertSame(1, MockMiddlewareWithoutConstructor::$CalledCount);","file":"tests/MiddlewareDispatcherTest.php","line":275,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 420: MockSequenceMiddleware::$id = '2';","file":"tests/MiddlewareDispatcherTest.php","line":420,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 438: $dispatcher->addDeferred(MockSequenceMiddleware::class);","file":"tests/MiddlewareDispatcherTest.php","line":438,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 457: MockSequenceMiddleware::$hasBeenInstantiated = false;","file":"tests/MiddlewareDispatcherTest.php","line":457,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 461: $dispatcher->addDeferred(MockSequenceMiddleware::class);","file":"tests/MiddlewareDispatcherTest.php","line":461,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 465: $this->assertFalse(MockSequenceMiddleware::$hasBeenInstantiated);","file":"tests/MiddlewareDispatcherTest.php","line":465,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 586: $containerProphecy->has(MockMiddlewareWithConstructor::class)->willReturn(false);","file":"tests/MiddlewareDispatcherTest.php","line":586,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 592: $dispatcher->addDeferred(MockMiddlewareWithConstructor::class);","file":"tests/MiddlewareDispatcherTest.php","line":592,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 595: $this->assertSame($containerProphecy->reveal(), MockMiddlewareWithConstructor::$container);","file":"tests/MiddlewareDispatcherTest.php","line":595,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Mocks/MockMiddlewareSlimCallable.php\nLine 17: class MockMiddlewareSlimCallable","file":"tests/Mocks/MockMiddlewareSlimCallable.php","line":17,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Mocks/MockMiddlewareWithConstructor.php\nLine 20: class MockMiddlewareWithConstructor implements MiddlewareInterface","file":"tests/Mocks/MockMiddlewareWithConstructor.php","line":20,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Mocks/MockMiddlewareWithoutConstructor.php\nLine 18: class MockMiddlewareWithoutConstructor implements MiddlewareInterface","file":"tests/Mocks/MockMiddlewareWithoutConstructor.php","line":18,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Mocks/MockMiddlewareWithoutInterface.php\nLine 13: class MockMiddlewareWithoutInterface","file":"tests/Mocks/MockMiddlewareWithoutInterface.php","line":13,"lexical":0.6000000000000001,"target":true},{"text":"File: tests/Mocks/MockSequenceMiddleware.php\nLine 18: class MockSequenceMiddleware implements MiddlewareInterface","file":"tests/Mocks/MockSequenceMiddleware.php","line":18,"lexical":0.6000000000000001,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 34: use Slim\\Tests\\Mocks\\MockMiddlewareWithoutConstructor;","file":"tests/Routing/RouteTest.php","line":34,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 35: use Slim\\Tests\\Mocks\\MockMiddlewareWithoutInterface;","file":"tests/Routing/RouteTest.php","line":35,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"ルーティングやミドルウェアの指定から実行可能なコールバックを解決するためのインターフェースを探しています。既存の解決ロジックを拡張して、クラス名とメソッド名の配列などにも対応させたいです。","query":"resolve route middleware","file":"Slim/Interfaces/AdvancedCallableResolverInterface.php","symbol":"AdvancedCallableResolverInterface","line":13,"lang":"ja","candidates":[{"text":"File: Slim/App.php\nLine 74: $middlewareDispatcher = new MiddlewareDispatcher($routeRunner, $this->callableResolver, $container);","file":"Slim/App.php","line":74,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 61: $routingMiddleware = new RoutingMiddleware($this->routeResolver, $this->routeParser);","file":"Slim/Routing/RouteRunner.php","line":61,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 392: $callableRouteMiddleware = $resolver->resolveMiddleware($obj);","file":"tests/CallableResolverTest.php","line":392,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 65: $routingMiddleware = new RoutingMiddleware($routeResolver, $routeParser);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":65,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 83: $routingMiddleware = new RoutingMiddleware($routeResolver, $routeParser);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":83,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 120: $routingMiddleware = new RoutingMiddleware($routeResolver, $routeParser);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":120,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 185: // Create the routing middleware with the `RouteResolverInterface` defined","file":"tests/Middleware/RoutingMiddlewareTest.php","line":185,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 187: $middleware = new RoutingMiddleware($routeResolver, $routeParser);","file":"tests/Middleware/RoutingMiddlewareTest.php","line":187,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"帮我找一下测试基类里那个用来通过字符串构造流对象的辅助方法。","query":"create StreamInterface","file":"tests/TestCase.php","symbol":"createStream","line":120,"lang":"zh","candidates":[{"text":"File: tests/Mocks/MockStream.php\nLine 93: 'First argument to Stream::create() must be a string, resource or StreamInterface.'","file":"tests/Mocks/MockStream.php","line":93,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Providers/PSR7ObjectProvider.php\nLine 98: public function createStream(string $contents = ''): StreamInterface","file":"tests/Providers/PSR7ObjectProvider.php","line":98,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Providers/PSR7ObjectProviderInterface.php\nLine 61: public function createStream(string $contents = ''): StreamInterface;","file":"tests/Providers/PSR7ObjectProviderInterface.php","line":61,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/TestCase.php\nLine 120: protected function createStream(string $contents = ''): StreamInterface","file":"tests/TestCase.php","line":120,"lexical":0.39999999999999997,"target":true}]} {"site":"project_search","repo":"slim","task":"Wie wird die Logik zur Ermittlung der Fabrik für die Antwort-Objekte implementiert, falls keine manuell gesetzt wurde?","query":"determineResponseFactory","file":"Slim/Factory/AppFactory.php","symbol":"determineResponseFactory","line":127,"lang":"de","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 63: self::determineResponseFactory(),","file":"Slim/Factory/AppFactory.php","line":63,"lexical":0.35,"target":true},{"text":"File: Slim/Factory/AppFactory.php\nLine 84: : self::determineResponseFactory();","file":"Slim/Factory/AppFactory.php","line":84,"lexical":0.35,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 127: public static function determineResponseFactory(): ResponseFactoryInterface","file":"Slim/Factory/AppFactory.php","line":127,"lexical":0.35,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 87: public function testDetermineResponseFactoryReturnsDecoratedFactory()","file":"tests/Factory/AppFactoryTest.php","line":87,"lexical":0.35,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 97: public function testDetermineResponseFactoryThrowsRuntimeExceptionIfDecoratedNotInstanceOfResponseInterface()","file":"tests/Factory/AppFactoryTest.php","line":97,"lexical":0.35,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 117: public function testDetermineResponseFactoryThrowsRuntimeException()","file":"tests/Factory/AppFactoryTest.php","line":117,"lexical":0.35,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 133: $this->assertInstanceOf(SlimResponseFactory::class, AppFactory::determineResponseFactory());","file":"tests/Factory/AppFactoryTest.php","line":133,"lexical":0.35,"target":false}]} {"site":"project_search","repo":"slim","task":"Como eu passo a requisição, a exceção capturada e as flags para exibir e registrar detalhes do erro para gerar a resposta final?","query":"invoke error handler","file":"Slim/Handlers/ErrorHandler.php","symbol":"__invoke","line":116,"lang":"pt","candidates":[{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 108: * Invoke error handler","file":"Slim/Handlers/ErrorHandler.php","line":108,"lexical":0.65,"target":true},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 514: $writeToErrorLogMethod->invoke($handler);","file":"tests/Handlers/ErrorHandlerTest.php","line":514,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"요청된 HTTP 메서드와 URI를 받아서 라우팅 결과를 반환하는 인터페이스 메서드가 어디에 정의되어 있는지 찾아줘. 어떤 방식으로 라우팅 결과 객체를 가져오는지 확인하고 싶어.","query":"dispatch routing results","file":"Slim/Interfaces/DispatcherInterface.php","symbol":"dispatch","line":20,"lang":"ko","candidates":[{"text":"File: Slim/Interfaces/DispatcherInterface.php\nLine 20: public function dispatch(string $method, string $uri): RoutingResults;","file":"Slim/Interfaces/DispatcherInterface.php","line":20,"lexical":0.65,"target":true},{"text":"File: Slim/Routing/Dispatcher.php\nLine 63: public function dispatch(string $method, string $uri): RoutingResults","file":"Slim/Routing/Dispatcher.php","line":63,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 111: $this->assertSame(Dispatcher::METHOD_NOT_ALLOWED, $routingResults->getRouteStatus());","file":"tests/Middleware/RoutingMiddlewareTest.php","line":111,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 148: $this->assertSame(Dispatcher::NOT_FOUND, $routingResults->getRouteStatus());","file":"tests/Middleware/RoutingMiddlewareTest.php","line":148,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"コールバックの解決方法を外部から設定できるメソッドはどこにありますか?","query":"set callable resolver","file":"Slim/Factory/AppFactory.php","symbol":"setCallableResolver","line":193,"lang":"ja","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 193: public static function setCallableResolver(CallableResolverInterface $callableResolver): void","file":"Slim/Factory/AppFactory.php","line":193,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 169: AppFactory::setCallableResolver($callableResolverProphecy->reveal());","file":"tests/Factory/AppFactoryTest.php","line":169,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 44: $this->setAccessible($callableResolverProperty);","file":"tests/Handlers/ErrorHandlerTest.php","line":44,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 45: $callableResolverProperty->setValue($handler, $this->getCallableResolver());","file":"tests/Handlers/ErrorHandlerTest.php","line":45,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"获取路由收集器的接口实例","query":"get route collector","file":"Slim/Routing/RouteCollectorProxy.php","symbol":"getRouteCollector","line":83,"lang":"zh","candidates":[{"text":"File: Slim/App.php\nLine 71: $routeRunner = new RouteRunner($this->routeResolver, $this->routeCollector->getRouteParser(), $this);","file":"Slim/App.php","line":71,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 129: $this->getRouteCollector()->getRouteParser()","file":"Slim/App.php","line":129,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 95: $routeCollectorFromContainer = $container->get(RouteCollectorInterface::class)","file":"Slim/Factory/AppFactory.php","line":95,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 32: public function getRouteCollector(): RouteCollectorInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":32,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 35: * Get the RouteCollectorProxy's base path","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":35,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 31: $basePath = $this->routeCollector->getBasePath();","file":"Slim/Routing/Dispatcher.php","line":31,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 33: foreach ($this->routeCollector->getRoutes() as $route) {","file":"Slim/Routing/Dispatcher.php","line":33,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Dispatcher.php\nLine 38: $cacheFile = $this->routeCollector->getCacheFile();","file":"Slim/Routing/Dispatcher.php","line":38,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 83: public function getRouteCollector(): RouteCollectorInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":83,"lexical":0.65,"target":true},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 93: return $this->routeCollector->getBasePath();","file":"Slim/Routing/RouteCollectorProxy.php","line":93,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteParser.php\nLine 42: $route = $this->routeCollector->getNamedRoute($routeName);","file":"Slim/Routing/RouteParser.php","line":42,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteParser.php\nLine 106: $basePath = $this->routeCollector->getBasePath();","file":"Slim/Routing/RouteParser.php","line":106,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteRunner.php\nLine 68: $this->routeCollectorProxy->getBasePath()","file":"Slim/Routing/RouteRunner.php","line":68,"lexical":0.65,"target":false},{"text":"File: tests/AppTest.php\nLine 105: public function testGetRouteCollectorReturnsInjectedInstance(): void","file":"tests/AppTest.php","line":105,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 111: $routeCollectorProphecy->getRouteParser()->willReturn($routeParserProphecy->reveal());","file":"tests/AppTest.php","line":111,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 115: $this->assertSame($routeCollectorProphecy->reveal(), $app->getRouteCollector());","file":"tests/AppTest.php","line":115,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 134: $this->assertEquals($routeCollector, $app->getRouteCollector());","file":"tests/AppTest.php","line":134,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 406: $routeCollector = $app->getRouteCollector();","file":"tests/AppTest.php","line":406,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 571: $routeCollector = $app->getRouteCollector();","file":"tests/AppTest.php","line":571,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1284: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1284,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1330: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseNamedArgs());","file":"tests/AppTest.php","line":1330,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1651: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1651,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1964: $routeCollector = $app->getRouteCollector();","file":"tests/AppTest.php","line":1964,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1965: $routeCollector->map(['GET'], '/', 'handler');","file":"tests/AppTest.php","line":1965,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 77: $routeCollector = $app->getRouteCollector();","file":"tests/Factory/AppFactoryTest.php","line":77,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 82: $responseFactory = $responseFactoryProperty->getValue($routeCollector);","file":"tests/Factory/AppFactoryTest.php","line":82,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 164: $routeCollectorProphecy->getRouteParser()->willReturn($routeParserProphecy);","file":"tests/Factory/AppFactoryTest.php","line":164,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 193: $app->getRouteCollector()","file":"tests/Factory/AppFactoryTest.php","line":193,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 221: $routeCollectorProphecy->getRouteParser()->willReturn($routeParserProphecy->reveal());","file":"tests/Factory/AppFactoryTest.php","line":221,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 250: $app->getRouteCollector()","file":"tests/Factory/AppFactoryTest.php","line":250,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 333: ->get(RouteCollectorInterface::class)","file":"tests/Factory/AppFactoryTest.php","line":333,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 363: $this->assertSame($app->getRouteCollector(), $routeCollectorProphecy->reveal());","file":"tests/Factory/AppFactoryTest.php","line":363,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"TestHandlerInvocationStrategy에 호출 횟수를 추적하는 정적 카운터 필드를 추가해주세요. 호출 시 카운터를 증가시키고 실제 처리기를 호출하는 로직을 구현하세요.","query":"MockCustomRequestHandlerInvocationStrategy","file":"tests/Mocks/MockCustomRequestHandlerInvocationStrategy.php","symbol":"MockCustomRequestHandlerInvocationStrategy","line":17,"lang":"ko","candidates":[{"text":"File: tests/Mocks/MockCustomRequestHandlerInvocationStrategy.php\nLine 17: class MockCustomRequestHandlerInvocationStrategy implements RequestHandlerInvocationStrategyInterface","file":"tests/Mocks/MockCustomRequestHandlerInvocationStrategy.php","line":17,"lexical":0.55,"target":true},{"text":"File: tests/Routing/RouteTest.php\nLine 33: use Slim\\Tests\\Mocks\\MockCustomRequestHandlerInvocationStrategy;","file":"tests/Routing/RouteTest.php","line":33,"lexical":0.35,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 671: $strategy = new MockCustomRequestHandlerInvocationStrategy();","file":"tests/Routing/RouteTest.php","line":671,"lexical":0.35,"target":false}]} {"site":"project_search","repo":"slim","task":"O sistema está falhando ao tentar transformar uma string que representa um método de classe em um executável, especialmente quando a convenção de notação de classe e método é utilizada para buscar o recurso no container.","query":"resolve callable string","file":"Slim/CallableResolver.php","symbol":"resolve","line":50,"lang":"pt","candidates":[{"text":"File: Slim/CallableResolver.php\nLine 82: * @param callable|array{class-string, string}|string $toResolve","file":"Slim/CallableResolver.php","line":82,"lexical":0.65,"target":true},{"text":"File: Slim/CallableResolver.php\nLine 86: private function resolveByPredicate($toResolve, callable $predicate, string $defaultMethod): callable","file":"Slim/CallableResolver.php","line":86,"lexical":0.65,"target":false},{"text":"File: Slim/CallableResolver.php\nLine 183: * @param callable|string|array{class-string, string}|mixed $toResolve","file":"Slim/CallableResolver.php","line":183,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/AdvancedCallableResolverInterface.php\nLine 18: * @param callable|array{class-string, string}|string $toResolve","file":"Slim/Interfaces/AdvancedCallableResolverInterface.php","line":18,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/AdvancedCallableResolverInterface.php\nLine 25: * @param callable|array{class-string, string}|string $toResolve","file":"Slim/Interfaces/AdvancedCallableResolverInterface.php","line":25,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/CallableResolverInterface.php\nLine 18: * @param callable|array{class-string, string}|string $toResolve","file":"Slim/Interfaces/CallableResolverInterface.php","line":18,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"获取路由参数的方法","query":"get route arguments","file":"Slim/Routing/RoutingResults.php","symbol":"getRouteArguments","line":96,"lang":"zh","candidates":[{"text":"File: CHANGELOG.md\nLine 23: - The `$urlDecode` parameter of `RoutingResults::getRouteArguments()` is now ignored ([GHSA-h377-p8x2-prf9](https://github.com/slimphp/Slim/security/advisories/GHSA-h377-p8x2-prf9))","file":"CHANGELOG.md","line":23,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteInterface.php\nLine 84: * Get route arguments","file":"Slim/Interfaces/RouteInterface.php","line":84,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/RoutingMiddleware.php\nLine 68: $routeArguments = $routingResults->getRouteArguments();","file":"Slim/Middleware/RoutingMiddleware.php","line":68,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RoutingResults.php\nLine 96: public function getRouteArguments(bool $urlDecode = true): array","file":"Slim/Routing/RoutingResults.php","line":96,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/Routing/DispatcherTest.php\nLine 138: $this->assertSame(['name' => 'Foo%20Bar'], $results->getRouteArguments());","file":"tests/Routing/DispatcherTest.php","line":138,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 139: $this->assertSame(['name' => 'Foo%20Bar'], $results->getRouteArguments(false));","file":"tests/Routing/DispatcherTest.php","line":139,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 158: $this->assertSame(['file' => 'Foo Bar'], $results->getRouteArguments());","file":"tests/Routing/DispatcherTest.php","line":158,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/DispatcherTest.php\nLine 162: $this->assertSame(['file' => '%2e%2e%2fetc%2fpasswd'], $results->getRouteArguments());","file":"tests/Routing/DispatcherTest.php","line":162,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 256: $this->assertSame($route->getArguments(), ['foo' => 'FOO', 'bar' => 'BAR']);","file":"tests/Routing/RouteTest.php","line":256,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 259: $this->assertSame($route->getArguments(), ['foo' => 'FOO', 'bar' => 'bar']);","file":"tests/Routing/RouteTest.php","line":259,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 262: $this->assertSame($route->getArguments(), ['foo' => 'FOO', 'bar' => 'bar', 'baz' => 'BAZ']);","file":"tests/Routing/RouteTest.php","line":262,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 265: $this->assertSame($route->getArguments(), ['a' => 'b']);","file":"tests/Routing/RouteTest.php","line":265,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"crie uma classe de teste que estenda a exceção base para simular erros personalizados","query":"mock custom exception","file":"tests/Mocks/MockCustomException.php","symbol":"MockCustomException","line":15,"lang":"pt","candidates":[{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 28: use Slim\\Tests\\Mocks\\MockCustomException;","file":"tests/Handlers/ErrorHandlerTest.php","line":28,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 95: $reflectionProperty->setValue($handler, new MockCustomException());","file":"tests/Handlers/ErrorHandlerTest.php","line":95,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 25: use Slim\\Tests\\Mocks\\MockCustomException;","file":"tests/Middleware/ErrorMiddlewareTest.php","line":25,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 137: $exception = MockCustomException::class;","file":"tests/Middleware/ErrorMiddlewareTest.php","line":137,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/MockCustomException.php\nLine 15: class MockCustomException extends Exception","file":"tests/Mocks/MockCustomException.php","line":15,"lexical":0.65,"target":true}]} {"site":"project_search","repo":"slim","task":"注册媒体类型对应的解析回调","query":"body parser register","file":"Slim/Middleware/BodyParsingMiddleware.php","symbol":"registerBodyParser","line":71,"lang":"zh","candidates":[{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 48: $this->registerDefaultBodyParsers();","file":"Slim/Middleware/BodyParsingMiddleware.php","line":48,"lexical":0.65,"target":true},{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 51: $this->registerBodyParser($mediaType, $parser);","file":"Slim/Middleware/BodyParsingMiddleware.php","line":51,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 71: public function registerBodyParser(string $mediaType, callable $callable): self","file":"Slim/Middleware/BodyParsingMiddleware.php","line":71,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 97: protected function registerDefaultBodyParsers(): void","file":"Slim/Middleware/BodyParsingMiddleware.php","line":97,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 99: $this->registerBodyParser('application/json', static function ($input) {","file":"Slim/Middleware/BodyParsingMiddleware.php","line":99,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 110: $this->registerBodyParser('application/x-www-form-urlencoded', static function ($input) {","file":"Slim/Middleware/BodyParsingMiddleware.php","line":110,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 135: $this->registerBodyParser('application/xml', $xmlCallable);","file":"Slim/Middleware/BodyParsingMiddleware.php","line":135,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/BodyParsingMiddleware.php\nLine 136: $this->registerBodyParser('text/xml', $xmlCallable);","file":"Slim/Middleware/BodyParsingMiddleware.php","line":136,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/BodyParsingMiddlewareTest.php\nLine 203: $middleware->registerBodyParser('text/foo', $parser);","file":"tests/Middleware/BodyParsingMiddlewareTest.php","line":203,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"¿Dónde se define la interfaz para manejar las excepciones de la aplicación y devolver una respuesta?","query":"exception handler interface","file":"Slim/Interfaces/ErrorHandlerInterface.php","symbol":"ErrorHandlerInterface","line":17,"lang":"es","candidates":[{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 152: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":152,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 185: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":185,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 223: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":223,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 261: $handler = (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":261,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 301: $middleware->setDefaultErrorHandler((function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":301,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"一意の識別子からルートを取得するメソッドを探して","query":"lookup route identifier","file":"Slim/Interfaces/RouteCollectorInterface.php","symbol":"lookupRoute","line":87,"lang":"ja","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 83: * Lookup a route via the route's unique identifier","file":"Slim/Interfaces/RouteCollectorInterface.php","line":83,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 87: public function lookupRoute(string $identifier): RouteInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":87,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 219: public function lookupRoute(string $identifier): RouteInterface","file":"Slim/Routing/RouteCollector.php","line":219,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteResolver.php\nLine 54: return $this->routeCollector->lookupRoute($identifier);","file":"Slim/Routing/RouteResolver.php","line":54,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteResolverTest.php\nLine 81: ->lookupRoute($identifier)","file":"tests/Routing/RouteResolverTest.php","line":81,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"ルーティングのテストを作成中なのですが、リクエストメソッドが一致しない場合に正しく例外やエラーが返るか検証するためのデータセットがどこにあるか教えてください。特定のURIに対して許可されていないメソッドを投げた時のケースを定義している場所を探しています。","query":"method not allowed test","file":"tests/Routing/FastRouteDispatcherTest.php","symbol":"provideMethodNotAllowedDispatchCases","line":559,"lang":"ja","candidates":[{"text":"File: tests/AppTest.php\nLine 1085: public function testInvokeReturnMethodNotAllowed(): void","file":"tests/AppTest.php","line":1085,"lexical":0.65,"target":false},{"text":"File: tests/Exception/HttpExceptionTest.php\nLine 40: public function testHttpNotAllowedExceptionGetAllowedMethods()","file":"tests/Exception/HttpExceptionTest.php","line":40,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 78: public function testRouteIsNotStoredOnMethodNotAllowed()","file":"tests/Middleware/RoutingMiddlewareTest.php","line":78,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 111: $this->assertSame(Dispatcher::METHOD_NOT_ALLOWED, $routingResults->getRouteStatus());","file":"tests/Middleware/RoutingMiddlewareTest.php","line":111,"lexical":0.65,"target":false},{"text":"File: tests/Routing/FastRouteDispatcherTest.php\nLine 82: public function testMethodNotAllowedDispatches($method, $uri, $callback, $allowedMethods)","file":"tests/Routing/FastRouteDispatcherTest.php","line":82,"lexical":0.65,"target":true}]} {"site":"project_search","repo":"slim","task":"当尝试通过工厂方法获取用于创建服务器请求的实例时,如果底层依赖的环境无法满足实例化条件,程序应该抛出一个运行时异常,而不是返回 null 或静默失败。请检查目前的实现是否正确处理了这种由于环境缺失导致的实例化失败场景。","query":"server request creator","file":"Slim/Factory/Psr17/Psr17Factory.php","symbol":"getServerRequestCreator","line":65,"lang":"zh","candidates":[{"text":"File: README.md\nLine 20: ## Choose a PSR-7 Implementation & ServerRequest Creator","file":"README.md","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: README.md\nLine 44: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"README.md","line":44,"lexical":0.44999999999999996,"target":false},{"text":"File: README.md\nLine 47: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"README.md","line":47,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 20: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"Slim/App.php","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 189: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"Slim/App.php","line":189,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 190: $request = $serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/App.php","line":190,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/GuzzlePsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'GuzzleHttp\\Psr7\\ServerRequest';","file":"Slim/Factory/Psr17/GuzzlePsr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/GuzzlePsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/GuzzlePsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'HttpSoft\\ServerRequest\\ServerRequestCreator';","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'createFromGlobals';","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'Laminas\\Diactoros\\ServerRequestFactory';","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 7: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":7,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 13: protected static string $serverRequestCreatorClass = 'Nyholm\\Psr7Server\\ServerRequestCreator';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":13,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 14: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":14,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 19: public static function getServerRequestCreator(): ServerRequestCreatorInterface","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":19,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 27: $serverRequestCreator = new static::$serverRequestCreatorClass(","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":27,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 34: return new ServerRequestCreator($serverRequestCreator, static::$serverRequestCreatorMethod);","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":34,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 40: public static function isServerRequestCreatorAvailable(): bool","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":40,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 43: parent::isServerRequestCreatorAvailable()","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":43,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 17: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":17,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 28: protected static string $serverRequestCreatorClass;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":28,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 30: protected static string $serverRequestCreatorMethod;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 65: public static function getServerRequestCreator(): ServerRequestCreatorInterface","file":"Slim/Factory/Psr17/Psr17Factory.php","line":65,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 67: if (!static::isServerRequestCreatorAvailable()) {","file":"Slim/Factory/Psr17/Psr17Factory.php","line":67,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 68: throw new RuntimeException(get_called_class() . ' could not instantiate a server request creator.');","file":"Slim/Factory/Psr17/Psr17Factory.php","line":68,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 71: return new ServerRequestCreator(static::$serverRequestCreatorClass, static::$serverRequestCreatorMethod);","file":"Slim/Factory/Psr17/Psr17Factory.php","line":71,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 93: public static function isServerRequestCreatorAvailable(): bool","file":"Slim/Factory/Psr17/Psr17Factory.php","line":93,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 96: static::$serverRequestCreatorClass","file":"Slim/Factory/Psr17/Psr17Factory.php","line":96,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 97: && static::$serverRequestCreatorMethod","file":"Slim/Factory/Psr17/Psr17Factory.php","line":97,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 98: && class_exists(static::$serverRequestCreatorClass)","file":"Slim/Factory/Psr17/Psr17Factory.php","line":98,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/ServerRequestCreator.php\nLine 15: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/ServerRequestCreator.php","line":15,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"这个方法是怎么处理异常的?它是怎么选择对应的错误处理器的?","query":"handle exception error handler","file":"Slim/Middleware/ErrorMiddleware.php","symbol":"handleException","line":83,"lang":"zh","candidates":[{"text":"File: CHANGELOG.md\nLine 296: - [2862](https://github.com/slimphp/Slim/pull/2862) Optionally handle subclasses of exceptions in custom error handler","file":"CHANGELOG.md","line":296,"lexical":0.5,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 90: $handler = $this->getErrorHandler($exceptionType);","file":"Slim/Middleware/ErrorMiddleware.php","line":90,"lexical":0.65,"target":true},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 93: return $handler($request, $exception, $this->displayErrorDetails, $this->logErrors, $this->logErrorDetails);","file":"Slim/Middleware/ErrorMiddleware.php","line":93,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 204: * Used internally to avoid code repetition when passing multiple exceptions to setErrorHandler().","file":"Slim/Middleware/ErrorMiddleware.php","line":204,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 63: $errorMiddleware->setErrorHandler($exception, $handler);","file":"tests/Middleware/ErrorMiddlewareTest.php","line":63,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 108: public function testSetDefaultErrorHandlerThrowsException()","file":"tests/Middleware/ErrorMiddlewareTest.php","line":108,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 129: public function testGetErrorHandlerWillReturnDefaultErrorHandlerForUnhandledExceptions()","file":"tests/Middleware/ErrorMiddlewareTest.php","line":129,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 138: $handler = $middleware->getErrorHandler($exception);","file":"tests/Middleware/ErrorMiddlewareTest.php","line":138,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 152: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":152,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 185: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":185,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 223: $middleware->setErrorHandler(LogicException::class, (function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":223,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 267: $middleware->setErrorHandler([LogicException::class, InvalidArgumentException::class], $handler->bindTo($this));","file":"tests/Middleware/ErrorMiddlewareTest.php","line":267,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 301: $middleware->setDefaultErrorHandler((function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":301,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"implementar o manipulador de erros padrão do slim que formata a resposta conforme o header accept","query":"error handler default","file":"Slim/Handlers/ErrorHandler.php","symbol":"ErrorHandler","line":48,"lang":"pt","candidates":[{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 42: * Default Slim application error handler","file":"Slim/Handlers/ErrorHandler.php","line":42,"lexical":0.65,"target":true},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 56: protected $defaultErrorHandler;","file":"Slim/Middleware/ErrorMiddleware.php","line":56,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 119: return $this->getDefaultErrorHandler();","file":"Slim/Middleware/ErrorMiddleware.php","line":119,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 123: * Get default error handler","file":"Slim/Middleware/ErrorMiddleware.php","line":123,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 127: public function getDefaultErrorHandler()","file":"Slim/Middleware/ErrorMiddleware.php","line":127,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 129: if ($this->defaultErrorHandler === null) {","file":"Slim/Middleware/ErrorMiddleware.php","line":129,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 130: $this->defaultErrorHandler = new ErrorHandler(","file":"Slim/Middleware/ErrorMiddleware.php","line":130,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 137: return $this->callableResolver->resolve($this->defaultErrorHandler);","file":"Slim/Middleware/ErrorMiddleware.php","line":137,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 141: * Set callable as the default Slim application error handler.","file":"Slim/Middleware/ErrorMiddleware.php","line":141,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 158: public function setDefaultErrorHandler($handler): self","file":"Slim/Middleware/ErrorMiddleware.php","line":158,"lexical":0.65,"target":false},{"text":"File: Slim/Middleware/ErrorMiddleware.php\nLine 160: $this->defaultErrorHandler = $handler;","file":"Slim/Middleware/ErrorMiddleware.php","line":160,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 350: $handler->setDefaultErrorRenderer('text/plain', PlainTextErrorRenderer::class);","file":"tests/Handlers/ErrorHandlerTest.php","line":350,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 355: $defaultErrorRenderer = $reflectionProperty->getValue($handler);","file":"tests/Handlers/ErrorHandlerTest.php","line":355,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 359: $defaultErrorRendererContentType = $defaultErrorRendererContentTypeProperty->getValue($handler);","file":"tests/Handlers/ErrorHandlerTest.php","line":359,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 72: public function testSetDefaultErrorHandler()","file":"tests/Middleware/ErrorMiddlewareTest.php","line":72,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 99: $errorMiddleware->setDefaultErrorHandler($handler);","file":"tests/Middleware/ErrorMiddlewareTest.php","line":99,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 108: public function testSetDefaultErrorHandlerThrowsException()","file":"tests/Middleware/ErrorMiddlewareTest.php","line":108,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 125: $errorMiddleware->setDefaultErrorHandler('Uncallable');","file":"tests/Middleware/ErrorMiddlewareTest.php","line":125,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 126: $errorMiddleware->getDefaultErrorHandler();","file":"tests/Middleware/ErrorMiddlewareTest.php","line":126,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 129: public function testGetErrorHandlerWillReturnDefaultErrorHandlerForUnhandledExceptions()","file":"tests/Middleware/ErrorMiddlewareTest.php","line":129,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 157: $middleware->setDefaultErrorHandler((function () {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":157,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 191: $middleware->setDefaultErrorHandler((function () {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":191,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 229: $middleware->setDefaultErrorHandler((function () {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":229,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 269: $middleware->setDefaultErrorHandler((function () {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":269,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/ErrorMiddlewareTest.php\nLine 301: $middleware->setDefaultErrorHandler((function (ServerRequestInterface $request, $exception) {","file":"tests/Middleware/ErrorMiddlewareTest.php","line":301,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"我需要创建一个用于测试的回调方法,它负责增加静态计数器并构造一个符合 PSR-7 标准的响应对象。","query":"test mock callable","file":"tests/Mocks/CallableTest.php","symbol":"toCall","line":26,"lang":"zh","candidates":[{"text":"File: tests/CallableResolverTest.php\nLine 19: use Slim\\Tests\\Mocks\\CallableTest;","file":"tests/CallableResolverTest.php","line":19,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 119: $callable = $resolver->resolve('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":119,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 120: $callableRoute = $resolver->resolveRoute('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":120,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 121: $callableMiddleware = $resolver->resolveMiddleware('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":121,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 155: $resolver->resolve('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":155,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 159: $resolver->resolveRoute('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":159,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 163: $resolver->resolveMiddleware('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":163,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 233: $callable = $resolver->resolve('Slim\\Tests\\Mocks\\InvokableTest');","file":"tests/CallableResolverTest.php","line":233,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 234: $callableRoute = $resolver->resolveRoute('Slim\\Tests\\Mocks\\InvokableTest');","file":"tests/CallableResolverTest.php","line":234,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 235: $callableMiddleware = $resolver->resolveMiddleware('Slim\\Tests\\Mocks\\InvokableTest');","file":"tests/CallableResolverTest.php","line":235,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 21: use Slim\\Tests\\Mocks\\MockMiddlewareSlimCallable;","file":"tests/MiddlewareDispatcherTest.php","line":21,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 31: use Slim\\Tests\\Mocks\\CallableTest;","file":"tests/Routing/RouteTest.php","line":31,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 403: $deferred = $callableResolver->resolve('\\Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/Routing/RouteTest.php","line":403,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 552: $deferred = '\\Slim\\Tests\\Mocks\\CallableTest:toCall';","file":"tests/Routing/RouteTest.php","line":552,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 584: $containerProphecy->has('\\Slim\\Tests\\Mocks\\CallableTest')->willReturn(true);","file":"tests/Routing/RouteTest.php","line":584,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 585: $containerProphecy->get('\\Slim\\Tests\\Mocks\\CallableTest')->willReturn(new CallableTest());","file":"tests/Routing/RouteTest.php","line":585,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 590: $deferred = '\\Slim\\Tests\\Mocks\\CallableTest:toCall';","file":"tests/Routing/RouteTest.php","line":590,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 763: $route->setCallable('\\Slim\\Tests\\Mocks\\CallableTest:toCall'); //Then we fix it here.","file":"tests/Routing/RouteTest.php","line":763,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"다양한 psr17 구현체가 앱 생성 시 적절한 응답 팩토리를 생성하는지 테스트하는 로직 찾아줘","query":"psr17 response factory","file":"tests/Factory/AppFactoryTest.php","symbol":"testCreateAppWithAllImplementations","line":69,"lang":"ko","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 140: if ($psr17factory::isResponseFactoryAvailable()) {","file":"Slim/Factory/AppFactory.php","line":140,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 141: $responseFactory = $psr17factory::getResponseFactory();","file":"Slim/Factory/AppFactory.php","line":141,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 165: && SlimHttpPsr17Factory::isResponseFactoryAvailable()","file":"Slim/Factory/AppFactory.php","line":165,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 167: return SlimHttpPsr17Factory::createDecoratedResponseFactory($responseFactory, $streamFactory);","file":"Slim/Factory/AppFactory.php","line":167,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 11: protected static string $responseFactoryClass = 'Nyholm\\Psr7\\Factory\\Psr17Factory';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":11,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 25: $psr17Factory = new static::$responseFactoryClass();","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":25,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 56: [SlimPsr17Factory::class, SlimResponseFactory::class],","file":"tests/Factory/AppFactoryTest.php","line":56,"lexical":0.65,"target":true},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 57: [HttpSoftPsr17Factory::class, HttpSoftResponseFactory::class],","file":"tests/Factory/AppFactoryTest.php","line":57,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 60: [LaminasDiactorosPsr17Factory::class, LaminasDiactorosResponseFactory::class],","file":"tests/Factory/AppFactoryTest.php","line":60,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 70: public function testCreateAppWithAllImplementations(string $psr17factory, string $expectedResponseFactoryClass)","file":"tests/Factory/AppFactoryTest.php","line":70,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 101: 'Slim\\\\Factory\\\\Psr17\\\\SlimHttpPsr17Factory could not instantiate a decorated response factory.'","file":"tests/Factory/AppFactoryTest.php","line":101,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 105: $reflectionClass->setStaticPropertyValue('responseFactoryClass', SlimHttpPsr17Factory::class);","file":"tests/Factory/AppFactoryTest.php","line":105,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 22: $this->expectExceptionMessage('Slim\\\\Tests\\\\Mocks\\\\MockPsr17Factory could not instantiate a response factory.');","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":22,"lexical":0.65,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 24: MockPsr17Factory::getResponseFactory();","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":24,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"依存関係コンテナを取得するメソッドを探して","query":"get container","file":"Slim/Routing/RouteCollectorProxy.php","symbol":"getContainer","line":75,"lang":"ja","candidates":[{"text":"File: Slim/CallableResolver.php\nLine 135: $instance = $this->container->get($class);","file":"Slim/CallableResolver.php","line":135,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 81: $responseFactoryFromContainer = $container->get(ResponseFactoryInterface::class)","file":"Slim/Factory/AppFactory.php","line":81,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 88: $callableResolverFromContainer = $container->get(CallableResolverInterface::class)","file":"Slim/Factory/AppFactory.php","line":88,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 95: $routeCollectorFromContainer = $container->get(RouteCollectorInterface::class)","file":"Slim/Factory/AppFactory.php","line":95,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 102: $routeResolverFromContainer = $container->get(RouteResolverInterface::class)","file":"Slim/Factory/AppFactory.php","line":102,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 109: $middlewareDispatcherFromContainer = $container->get(MiddlewareDispatcherInterface::class)","file":"Slim/Factory/AppFactory.php","line":109,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorProxyInterface.php\nLine 30: public function getContainer(): ?ContainerInterface;","file":"Slim/Interfaces/RouteCollectorProxyInterface.php","line":30,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/MiddlewareDispatcher.php\nLine 204: $instance = $this->container->get($resolved);","file":"Slim/MiddlewareDispatcher.php","line":204,"lexical":0.39999999999999997,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 75: public function getContainer(): ?ContainerInterface","file":"Slim/Routing/RouteCollectorProxy.php","line":75,"lexical":0.39999999999999997,"target":true},{"text":"File: tests/AppTest.php\nLine 70: $containerProphecy->get(Argument::type('string'))->shouldNotHaveBeenCalled();","file":"tests/AppTest.php","line":70,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 77: public function testGetContainer(): void","file":"tests/AppTest.php","line":77,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 83: $this->assertSame($containerProphecy->reveal(), $app->getContainer());","file":"tests/AppTest.php","line":83,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 674: $containerProphecy->get('middleware')->willReturn($middlewareProphecy);","file":"tests/AppTest.php","line":674,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 1441: $containerProphecy->get('handler')->willReturn($handler);","file":"tests/AppTest.php","line":1441,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 1479: $containerProphecy->get('handler')->willReturn($handler);","file":"tests/AppTest.php","line":1479,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 1521: $containerProphecy->get('handler')->willReturn($mockAction);","file":"tests/AppTest.php","line":1521,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/AppTest.php\nLine 1959: $containerProphecy->get('handler')->willReturn(function () use ($responseProphecy) {","file":"tests/AppTest.php","line":1959,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 64: $this->containerProphecy->get('ultimateAnswer')->willReturn(42);","file":"tests/CallableResolverTest.php","line":64,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 187: $this->containerProphecy->get('callable_service')->willReturn(new CallableTest());","file":"tests/CallableResolverTest.php","line":187,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 210: $this->containerProphecy->get('an_invokable')->willReturn(new InvokableTest());","file":"tests/CallableResolverTest.php","line":210,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 310: $this->containerProphecy->get('a_requesthandler')->willReturn(new RequestHandlerTest());","file":"tests/CallableResolverTest.php","line":310,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 321: $this->containerProphecy->get('a_requesthandler')->willReturn(new RequestHandlerTest());","file":"tests/CallableResolverTest.php","line":321,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 339: $this->containerProphecy->get('a_requesthandler')->willReturn(new RequestHandlerTest());","file":"tests/CallableResolverTest.php","line":339,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 403: $this->containerProphecy->get('callable_service')->willReturn('NOT AN OBJECT');","file":"tests/CallableResolverTest.php","line":403,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 417: $this->containerProphecy->get('callable_service')->willReturn(new CallableTest());","file":"tests/CallableResolverTest.php","line":417,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 431: $this->containerProphecy->get('callable_service')->willReturn(new CallableTest());","file":"tests/CallableResolverTest.php","line":431,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 445: $this->containerProphecy->get('callable_service')->willReturn(new CallableTest());","file":"tests/CallableResolverTest.php","line":445,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 183: $app->getContainer()","file":"tests/Factory/AppFactoryTest.php","line":183,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 240: $app->getContainer()","file":"tests/Factory/AppFactoryTest.php","line":240,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 361: $this->assertSame($app->getContainer(), $containerProphecy->reveal());","file":"tests/Factory/AppFactoryTest.php","line":361,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 230: $containerProphecy->get('callable')->willReturn($callable);","file":"tests/MiddlewareDispatcherTest.php","line":230,"lexical":0.39999999999999997,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 567: $containerProphecy->get('somemiddlewarename')->willReturn($middlewareProphecy->reveal());","file":"tests/MiddlewareDispatcherTest.php","line":567,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"implementierung des schreibvorgangs ins fehlerprotokoll finden","query":"write error log","file":"Slim/Handlers/ErrorHandler.php","symbol":"writeToErrorLog","line":263,"lang":"de","candidates":[{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 135: $this->writeToErrorLog();","file":"Slim/Handlers/ErrorHandler.php","line":135,"lexical":0.65,"target":true},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 261: * Write to the error log if $logErrors has been set to true","file":"Slim/Handlers/ErrorHandler.php","line":261,"lexical":0.65,"target":false},{"text":"File: Slim/Handlers/ErrorHandler.php\nLine 263: protected function writeToErrorLog(): void","file":"Slim/Handlers/ErrorHandler.php","line":263,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 380: public function testWriteToErrorLog()","file":"tests/Handlers/ErrorHandlerTest.php","line":380,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 407: public function testWriteToErrorLogShowTip()","file":"tests/Handlers/ErrorHandlerTest.php","line":407,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 434: public function testWriteToErrorLogDoesNotShowTipIfErrorLogRendererIsNotPlainText()","file":"tests/Handlers/ErrorHandlerTest.php","line":434,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 512: $writeToErrorLogMethod = new ReflectionMethod($handler, 'writeToErrorLog');","file":"tests/Handlers/ErrorHandlerTest.php","line":512,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 513: $this->setAccessible($writeToErrorLogMethod);","file":"tests/Handlers/ErrorHandlerTest.php","line":513,"lexical":0.65,"target":false},{"text":"File: tests/Handlers/ErrorHandlerTest.php\nLine 514: $writeToErrorLogMethod->invoke($handler);","file":"tests/Handlers/ErrorHandlerTest.php","line":514,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"查找验证装饰器在注入响应工厂时是否能正确包含流工厂的测试用例","query":"decorated response factory","file":"tests/Factory/AppFactoryTest.php","symbol":"testResponseAndStreamFactoryIsBeingInjectedInDecoratedResponseFactory","line":262,"lang":"zh","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 167: return SlimHttpPsr17Factory::createDecoratedResponseFactory($responseFactory, $streamFactory);","file":"Slim/Factory/AppFactory.php","line":167,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 19: protected static string $responseFactoryClass = 'Slim\\Http\\Factory\\DecoratedResponseFactory';","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":19,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 24: public static function createDecoratedResponseFactory(","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":24,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 30: $decoratedResponseFactory = new static::$responseFactoryClass($responseFactory, $streamFactory)","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":30,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 34: throw new RuntimeException(get_called_class() . ' could not instantiate a decorated response factory.');","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":34,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/SlimHttpPsr17Factory.php\nLine 37: return $decoratedResponseFactory;","file":"Slim/Factory/Psr17/SlimHttpPsr17Factory.php","line":37,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 32: use Slim\\Http\\Factory\\DecoratedResponseFactory;","file":"tests/Factory/AppFactoryTest.php","line":32,"lexical":0.65,"target":true},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 50: $reflectionClass->setStaticPropertyValue('responseFactoryClass', DecoratedResponseFactory::class);","file":"tests/Factory/AppFactoryTest.php","line":50,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 87: public function testDetermineResponseFactoryReturnsDecoratedFactory()","file":"tests/Factory/AppFactoryTest.php","line":87,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 94: $this->assertInstanceOf(DecoratedResponseFactory::class, $app->getResponseFactory());","file":"tests/Factory/AppFactoryTest.php","line":94,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 97: public function testDetermineResponseFactoryThrowsRuntimeExceptionIfDecoratedNotInstanceOfResponseInterface()","file":"tests/Factory/AppFactoryTest.php","line":97,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 101: 'Slim\\\\Factory\\\\Psr17\\\\SlimHttpPsr17Factory could not instantiate a decorated response factory.'","file":"tests/Factory/AppFactoryTest.php","line":101,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 263: public function testResponseAndStreamFactoryIsBeingInjectedInDecoratedResponseFactory()","file":"tests/Factory/AppFactoryTest.php","line":263,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 284: $streamFactoryProperty = new ReflectionProperty(DecoratedResponse::class, 'streamFactory');","file":"tests/Factory/AppFactoryTest.php","line":284,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"コンテナからミドルウェアを取得する動作のテストを探して","query":"middleware container test","file":"tests/MiddlewareDispatcherTest.php","symbol":"testFetchesMiddlewareFromContainer","line":556,"lang":"ja","candidates":[{"text":"File: tests/CallableResolverTest.php\nLine 333: public function testMiddlewareObjPsrRequestHandlerClassInContainer(): void","file":"tests/CallableResolverTest.php","line":333,"lexical":0.65,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 556: public function testFetchesMiddlewareFromContainer(): void","file":"tests/MiddlewareDispatcherTest.php","line":556,"lexical":0.65,"target":true},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 580: public function testMiddlewareGetsInstantiatedWithContainer(): void","file":"tests/MiddlewareDispatcherTest.php","line":580,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"스트림 팩토리를 가져오는 메서드 어디 있어?","query":"getStreamFactory","file":"tests/Providers/PSR7ObjectProviderInterface.php","symbol":"getStreamFactory","line":40,"lang":"ko","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 144: $streamFactory = static::$streamFactory ?? $psr17factory::getStreamFactory();","file":"Slim/Factory/AppFactory.php","line":144,"lexical":0.35,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 50: public static function getStreamFactory(): StreamFactoryInterface","file":"Slim/Factory/Psr17/Psr17Factory.php","line":50,"lexical":0.35,"target":false},{"text":"File: Slim/Interfaces/Psr17FactoryInterface.php\nLine 27: public static function getStreamFactory(): StreamFactoryInterface;","file":"Slim/Interfaces/Psr17FactoryInterface.php","line":27,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 27: public function testGetStreamFactoryThrowsRuntimeException()","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":27,"lexical":0.35,"target":false},{"text":"File: tests/Factory/Psr17/Psr17FactoryTest.php\nLine 32: MockPsr17Factory::getStreamFactory();","file":"tests/Factory/Psr17/Psr17FactoryTest.php","line":32,"lexical":0.35,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 26: $middleware = new OutputBufferingMiddleware($this->getStreamFactory());","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":26,"lexical":0.35,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 37: $middleware = new OutputBufferingMiddleware($this->getStreamFactory(), 'prepend');","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":37,"lexical":0.35,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 50: new OutputBufferingMiddleware($this->getStreamFactory(), 'foo');","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":50,"lexical":0.35,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 63: $outputBufferingMiddleware = new OutputBufferingMiddleware($this->getStreamFactory(), 'append');","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":63,"lexical":0.35,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 88: $outputBufferingMiddleware = new OutputBufferingMiddleware($this->getStreamFactory(), 'prepend');","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":88,"lexical":0.35,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 111: $outputBufferingMiddleware = new OutputBufferingMiddleware($this->getStreamFactory(), 'prepend');","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":111,"lexical":0.35,"target":false},{"text":"File: tests/Providers/PSR7ObjectProvider.php\nLine 101: ->getStreamFactory()","file":"tests/Providers/PSR7ObjectProvider.php","line":101,"lexical":0.35,"target":false},{"text":"File: tests/Providers/PSR7ObjectProvider.php\nLine 108: public function getStreamFactory(): StreamFactoryInterface","file":"tests/Providers/PSR7ObjectProvider.php","line":108,"lexical":0.35,"target":false},{"text":"File: tests/Providers/PSR7ObjectProviderInterface.php\nLine 40: public function getStreamFactory(): StreamFactoryInterface;","file":"tests/Providers/PSR7ObjectProviderInterface.php","line":40,"lexical":0.35,"target":true},{"text":"File: tests/ResponseEmitterTest.php\nLine 91: $body = $this->getStreamFactory()->createStreamFromResource($stream);","file":"tests/ResponseEmitterTest.php","line":91,"lexical":0.35,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 201: $body = $this->getStreamFactory()->createStreamFromResource($resource);","file":"tests/ResponseEmitterTest.php","line":201,"lexical":0.35,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 246: $body = $this->getStreamFactory()->createStreamFromResource(fopen('php://temp', 'r+'));","file":"tests/ResponseEmitterTest.php","line":246,"lexical":0.35,"target":false},{"text":"File: tests/ResponseEmitterTest.php\nLine 269: $body = $this->getStreamFactory()->createStreamFromResource(fopen('php://input', 'r+'));","file":"tests/ResponseEmitterTest.php","line":269,"lexical":0.35,"target":false},{"text":"File: tests/TestCase.php\nLine 55: protected function getStreamFactory(): StreamFactoryInterface","file":"tests/TestCase.php","line":55,"lexical":0.35,"target":false},{"text":"File: tests/TestCase.php\nLine 58: return $psr7ObjectProvider->getStreamFactory();","file":"tests/TestCase.php","line":58,"lexical":0.35,"target":false}]} {"site":"project_search","repo":"slim","task":"crea una instancia del resolvedor de funciones usando el contenedor opcional","query":"callable resolver container","file":"tests/TestCase.php","symbol":"getCallableResolver","line":66,"lang":"es","candidates":[{"text":"File: Slim/App.php\nLine 65: $callableResolver ?? new CallableResolver($container),","file":"Slim/App.php","line":65,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 74: $middlewareDispatcher = new MiddlewareDispatcher($routeRunner, $this->callableResolver, $container);","file":"Slim/App.php","line":74,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 86: $callableResolver = $container->has(CallableResolverInterface::class)","file":"Slim/Factory/AppFactory.php","line":86,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 88: $callableResolverFromContainer = $container->get(CallableResolverInterface::class)","file":"Slim/Factory/AppFactory.php","line":88,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 90: ? $callableResolverFromContainer","file":"Slim/Factory/AppFactory.php","line":90,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 140: $this->middlewareDispatcher = new MiddlewareDispatcher($this, $callableResolver, $container);","file":"Slim/Routing/Route.php","line":140,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/Route.php\nLine 330: $this->middlewareDispatcher = new MiddlewareDispatcher($inner, $this->callableResolver, $this->container);","file":"Slim/Routing/Route.php","line":330,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollectorProxy.php\nLine 51: $this->routeCollector = $routeCollector ?? new RouteCollector($responseFactory, $callableResolver, $container);","file":"Slim/Routing/RouteCollectorProxy.php","line":51,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 99: $callableResolver = new CallableResolver($containerProphecy->reveal());","file":"tests/AppTest.php","line":99,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 51: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":51,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 76: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":76,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 88: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":88,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 101: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":101,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 118: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":118,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 135: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":135,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 154: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":154,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 171: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":171,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 192: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":192,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 215: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":215,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 232: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":232,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 252: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":252,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 259: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":259,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 270: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":270,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 280: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":280,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 288: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":288,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 300: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":300,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 314: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":314,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 326: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":326,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 343: $resolver = new CallableResolver($container);","file":"tests/CallableResolverTest.php","line":343,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 349: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":349,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 373: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":373,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 383: $resolver = new CallableResolver(); // No container injected","file":"tests/CallableResolverTest.php","line":383,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"El método estático que debería devolver el creador de peticiones del servidor lanza una excepción de tiempo de ejecución si no puede instanciarse la fábrica, pero no se está manejando correctamente en la capa superior.","query":"server request creator","file":"Slim/Interfaces/Psr17FactoryInterface.php","symbol":"getServerRequestCreator","line":32,"lang":"es","candidates":[{"text":"File: README.md\nLine 20: ## Choose a PSR-7 Implementation & ServerRequest Creator","file":"README.md","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: README.md\nLine 44: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"README.md","line":44,"lexical":0.44999999999999996,"target":false},{"text":"File: README.md\nLine 47: ServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);","file":"README.md","line":47,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 20: use Slim\\Factory\\ServerRequestCreatorFactory;","file":"Slim/App.php","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 189: $serverRequestCreator = ServerRequestCreatorFactory::create();","file":"Slim/App.php","line":189,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/App.php\nLine 190: $request = $serverRequestCreator->createServerRequestFromGlobals();","file":"Slim/App.php","line":190,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/GuzzlePsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'GuzzleHttp\\Psr7\\ServerRequest';","file":"Slim/Factory/Psr17/GuzzlePsr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/GuzzlePsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/GuzzlePsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'HttpSoft\\ServerRequest\\ServerRequestCreator';","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/HttpSoftPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'createFromGlobals';","file":"Slim/Factory/Psr17/HttpSoftPsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 17: protected static string $serverRequestCreatorClass = 'Laminas\\Diactoros\\ServerRequestFactory';","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php\nLine 18: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/LaminasDiactorosPsr17Factory.php","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 7: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":7,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 13: protected static string $serverRequestCreatorClass = 'Nyholm\\Psr7Server\\ServerRequestCreator';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":13,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 14: protected static string $serverRequestCreatorMethod = 'fromGlobals';","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":14,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 19: public static function getServerRequestCreator(): ServerRequestCreatorInterface","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":19,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 27: $serverRequestCreator = new static::$serverRequestCreatorClass(","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":27,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 34: return new ServerRequestCreator($serverRequestCreator, static::$serverRequestCreatorMethod);","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":34,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 40: public static function isServerRequestCreatorAvailable(): bool","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":40,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/NyholmPsr17Factory.php\nLine 43: parent::isServerRequestCreatorAvailable()","file":"Slim/Factory/Psr17/NyholmPsr17Factory.php","line":43,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 17: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":17,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 28: protected static string $serverRequestCreatorClass;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":28,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 30: protected static string $serverRequestCreatorMethod;","file":"Slim/Factory/Psr17/Psr17Factory.php","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 65: public static function getServerRequestCreator(): ServerRequestCreatorInterface","file":"Slim/Factory/Psr17/Psr17Factory.php","line":65,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 67: if (!static::isServerRequestCreatorAvailable()) {","file":"Slim/Factory/Psr17/Psr17Factory.php","line":67,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 68: throw new RuntimeException(get_called_class() . ' could not instantiate a server request creator.');","file":"Slim/Factory/Psr17/Psr17Factory.php","line":68,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 71: return new ServerRequestCreator(static::$serverRequestCreatorClass, static::$serverRequestCreatorMethod);","file":"Slim/Factory/Psr17/Psr17Factory.php","line":71,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 93: public static function isServerRequestCreatorAvailable(): bool","file":"Slim/Factory/Psr17/Psr17Factory.php","line":93,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 96: static::$serverRequestCreatorClass","file":"Slim/Factory/Psr17/Psr17Factory.php","line":96,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 97: && static::$serverRequestCreatorMethod","file":"Slim/Factory/Psr17/Psr17Factory.php","line":97,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 98: && class_exists(static::$serverRequestCreatorClass)","file":"Slim/Factory/Psr17/Psr17Factory.php","line":98,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Factory/Psr17/ServerRequestCreator.php\nLine 15: use Slim\\Interfaces\\ServerRequestCreatorInterface;","file":"Slim/Factory/Psr17/ServerRequestCreator.php","line":15,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"테스트 종료할 때 헤더 스택 초기화해 주는 부분 어디 있지?","query":"HeaderStack reset","file":"tests/ResponseEmitterTest.php","symbol":"tearDown","line":45,"lang":"ko","candidates":[{"text":"File: tests/ResponseEmitterTest.php\nLine 42: HeaderStack::reset();","file":"tests/ResponseEmitterTest.php","line":42,"lexical":0.39999999999999997,"target":true},{"text":"File: tests/ResponseEmitterTest.php\nLine 47: HeaderStack::reset();","file":"tests/ResponseEmitterTest.php","line":47,"lexical":0.39999999999999997,"target":false}]} {"site":"project_search","repo":"slim","task":"怎么测试当请求没有匹配到任何路由时,应用会抛出 HttpNotFoundException 异常?","query":"test no route exception","file":"tests/AppTest.php","symbol":"testInvokeWithoutMatchingRoute","line":1398,"lang":"zh","candidates":[{"text":"File: tests/CallableResolverTest.php\nLine 425: public function testRouteMethodNotFoundThrowException(): void","file":"tests/CallableResolverTest.php","line":425,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 464: public function testRouteFunctionNotFoundThrowException(): void","file":"tests/CallableResolverTest.php","line":464,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 497: public function testRouteClassNotFoundThrowException(): void","file":"tests/CallableResolverTest.php","line":497,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 530: public function testRouteCallableClassNotFoundThrowException(): void","file":"tests/CallableResolverTest.php","line":530,"lexical":0.65,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 152: public function testPerformRoutingThrowsExceptionOnInvalidRoutingResultsRouteStatus()","file":"tests/Middleware/RoutingMiddlewareTest.php","line":152,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 140: public function testLookupRouteThrowsExceptionIfRouteNotFound()","file":"tests/Routing/RouteCollectorTest.php","line":140,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"테스트 코드 작성 중인데, HTTP 요청을 받아서 단순히 응답 객체만 생성해서 반환해주는 가짜 핸들러 로직이 어디 있는지 찾아줘. 호출 횟수를 카운트하는 기능이 포함되어 있어야 해.","query":"mock request handler","file":"tests/Mocks/MockRequestHandler.php","symbol":"handle","line":29,"lang":"ko","candidates":[{"text":"File: tests/CallableResolverTest.php\nLine 22: use Slim\\Tests\\Mocks\\RequestHandlerTest;","file":"tests/CallableResolverTest.php","line":22,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 250: $this->expectExceptionMessage('Slim\\\\Tests\\\\Mocks\\\\RequestHandlerTest is not resolvable');","file":"tests/CallableResolverTest.php","line":250,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 268: $this->expectExceptionMessage('Slim\\\\Tests\\\\Mocks\\\\RequestHandlerTest is not resolvable');","file":"tests/CallableResolverTest.php","line":268,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 393: $callableRouteMiddleware($request, $this->createMock(RequestHandlerInterface::class));","file":"tests/CallableResolverTest.php","line":393,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/ContentLengthMiddlewareTest.php\nLine 32: $this->createMock(RequestHandlerInterface::class),","file":"tests/Middleware/ContentLengthMiddlewareTest.php","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 35: $this->createMock(RequestHandler::class),","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":35,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 58: $this->createMock(RequestHandler::class),","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":58,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 82: $this->createMock(RequestHandler::class),","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":82,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 103: $this->createMock(RequestHandler::class),","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":103,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/MethodOverrideMiddlewareTest.php\nLine 138: $this->createMock(RequestHandler::class),","file":"tests/Middleware/MethodOverrideMiddlewareTest.php","line":138,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 68: $this->createMock(RequestHandlerInterface::class),","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":68,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 93: $this->createMock(RequestHandlerInterface::class),","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":93,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/OutputBufferingMiddlewareTest.php\nLine 116: $this->createMock(RequestHandlerInterface::class),","file":"tests/Middleware/OutputBufferingMiddlewareTest.php","line":116,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Middleware/RoutingMiddlewareTest.php\nLine 70: $this->createMock(RequestHandlerInterface::class),","file":"tests/Middleware/RoutingMiddlewareTest.php","line":70,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 24: use Slim\\Tests\\Mocks\\MockRequestHandler;","file":"tests/MiddlewareDispatcherTest.php","line":24,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 57: $handler = new MockRequestHandler();","file":"tests/MiddlewareDispatcherTest.php","line":57,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 86: $handler = new MockRequestHandler();","file":"tests/MiddlewareDispatcherTest.php","line":86,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 110: $handler = new MockRequestHandler();","file":"tests/MiddlewareDispatcherTest.php","line":110,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 130: $handler = new MockRequestHandler();","file":"tests/MiddlewareDispatcherTest.php","line":130,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 189: $handler = new MockRequestHandler();","file":"tests/MiddlewareDispatcherTest.php","line":189,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 206: $handler = new MockRequestHandler();","file":"tests/MiddlewareDispatcherTest.php","line":206,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 232: $handler = new MockRequestHandler();","file":"tests/MiddlewareDispatcherTest.php","line":232,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 256: $handler = new MockRequestHandler();","file":"tests/MiddlewareDispatcherTest.php","line":256,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 268: $handler = new MockRequestHandler();","file":"tests/MiddlewareDispatcherTest.php","line":268,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 296: $handler = new MockRequestHandler();","file":"tests/MiddlewareDispatcherTest.php","line":296,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 309: $handler = new MockRequestHandler();","file":"tests/MiddlewareDispatcherTest.php","line":309,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 331: $handler = new MockRequestHandler();","file":"tests/MiddlewareDispatcherTest.php","line":331,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Mocks/MockCustomRequestHandlerInvocationStrategy.php\nLine 17: class MockCustomRequestHandlerInvocationStrategy implements RequestHandlerInvocationStrategyInterface","file":"tests/Mocks/MockCustomRequestHandlerInvocationStrategy.php","line":17,"lexical":0.65,"target":false},{"text":"File: tests/Mocks/MockRequestHandler.php\nLine 18: class MockRequestHandler implements RequestHandlerInterface","file":"tests/Mocks/MockRequestHandler.php","line":18,"lexical":0.65,"target":true},{"text":"File: tests/Routing/RouteTest.php\nLine 33: use Slim\\Tests\\Mocks\\MockCustomRequestHandlerInvocationStrategy;","file":"tests/Routing/RouteTest.php","line":33,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 36: use Slim\\Tests\\Mocks\\RequestHandlerTest;","file":"tests/Routing/RouteTest.php","line":36,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 671: $strategy = new MockCustomRequestHandlerInvocationStrategy();","file":"tests/Routing/RouteTest.php","line":671,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"查找测试路由解析逻辑及其数据提供者的代码","query":"route resolver test","file":"tests/Routing/RouteResolverTest.php","symbol":"RouteResolverTest","line":24,"lang":"zh","candidates":[{"text":"File: tests/CallableResolverTest.php\nLine 53: $callableRoute = $resolver->resolveRoute($test);","file":"tests/CallableResolverTest.php","line":53,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 78: $callableRoute = $resolver->resolveRoute($test);","file":"tests/CallableResolverTest.php","line":78,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 90: $callableRoute = $resolver->resolveRoute(__NAMESPACE__ . '\\testAdvancedCallable');","file":"tests/CallableResolverTest.php","line":90,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 120: $callableRoute = $resolver->resolveRoute('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":120,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 137: $callableRoute = $resolver->resolveRoute([CallableTest::class, 'toCall']);","file":"tests/CallableResolverTest.php","line":137,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 159: $resolver->resolveRoute('Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/CallableResolverTest.php","line":159,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 176: $resolver->resolveRoute([CallableTest::class, 'toCall']);","file":"tests/CallableResolverTest.php","line":176,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 234: $callableRoute = $resolver->resolveRoute('Slim\\Tests\\Mocks\\InvokableTest');","file":"tests/CallableResolverTest.php","line":234,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 260: $callableRoute = $resolver->resolveRoute(RequestHandlerTest::class);","file":"tests/CallableResolverTest.php","line":260,"lexical":0.65,"target":false},{"text":"File: tests/CallableResolverTest.php\nLine 351: $callableRoute = $resolver->resolveRoute(RequestHandlerTest::class . ':custom');","file":"tests/CallableResolverTest.php","line":351,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteResolverTest.php\nLine 24: class RouteResolverTest extends TestCase","file":"tests/Routing/RouteResolverTest.php","line":24,"lexical":0.65,"target":true},{"text":"File: tests/Routing/RouteResolverTest.php\nLine 72: public function testResolveRoute()","file":"tests/Routing/RouteResolverTest.php","line":72,"lexical":0.65,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 814: public function testRouteCallableIsResolvedUsingContainerWhenCallableResolverIsPresent()","file":"tests/Routing/RouteTest.php","line":814,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"I'm trying to figure out how the application determines which way to call a controller method when a match is found. Can you show me where the fallback mechanism for how routes are executed is stored?","query":"default invocation strategy","file":"Slim/Routing/RouteCollector.php","symbol":"getDefaultInvocationStrategy","line":115,"lang":"en","candidates":[{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 25: * Get default route invocation strategy","file":"Slim/Interfaces/RouteCollectorInterface.php","line":25,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 27: public function getDefaultInvocationStrategy(): InvocationStrategyInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":27,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 30: * Set default route invocation strategy","file":"Slim/Interfaces/RouteCollectorInterface.php","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Interfaces/RouteCollectorInterface.php\nLine 32: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface;","file":"Slim/Interfaces/RouteCollectorInterface.php","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 45: protected InvocationStrategyInterface $defaultInvocationStrategy;","file":"Slim/Routing/RouteCollector.php","line":45,"lexical":0.44999999999999996,"target":true},{"text":"File: Slim/Routing/RouteCollector.php\nLine 92: ?InvocationStrategyInterface $defaultInvocationStrategy = null,","file":"Slim/Routing/RouteCollector.php","line":92,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 99: $this->defaultInvocationStrategy = $defaultInvocationStrategy ?? new RequestResponse();","file":"Slim/Routing/RouteCollector.php","line":99,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 113: * Get default route invocation strategy","file":"Slim/Routing/RouteCollector.php","line":113,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 115: public function getDefaultInvocationStrategy(): InvocationStrategyInterface","file":"Slim/Routing/RouteCollector.php","line":115,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 117: return $this->defaultInvocationStrategy;","file":"Slim/Routing/RouteCollector.php","line":117,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 120: public function setDefaultInvocationStrategy(InvocationStrategyInterface $strategy): RouteCollectorInterface","file":"Slim/Routing/RouteCollector.php","line":120,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 122: $this->defaultInvocationStrategy = $strategy;","file":"Slim/Routing/RouteCollector.php","line":122,"lexical":0.44999999999999996,"target":false},{"text":"File: Slim/Routing/RouteCollector.php\nLine 296: $this->defaultInvocationStrategy,","file":"Slim/Routing/RouteCollector.php","line":296,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1284: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1284,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1330: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseNamedArgs());","file":"tests/AppTest.php","line":1330,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/AppTest.php\nLine 1651: $app->getRouteCollector()->setDefaultInvocationStrategy(new RequestResponseArgs());","file":"tests/AppTest.php","line":1651,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteCollectorTest.php\nLine 106: $this->assertSame($invocationStrategyProphecy->reveal(), $routeCollector->getDefaultInvocationStrategy());","file":"tests/Routing/RouteCollectorTest.php","line":106,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"我想看看在没有容器的情况下,如果解析器返回的是一个非高级调用对象,中间件调度器是如何处理延迟加载任务的。能帮我找一下相关的测试用例吗?","query":"deferred callable resolver","file":"tests/MiddlewareDispatcherTest.php","symbol":"testDeferredResolvedCallableWithoutContainerAndNonAdvancedCallableResolver","line":97,"lang":"zh","candidates":[{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 97: public function testDeferredResolvedCallableWithoutContainerAndNonAdvancedCallableResolver(): void","file":"tests/MiddlewareDispatcherTest.php","line":97,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 161: public function testDeferredResolvedCallableWithContainerAndNonAdvancedCallableResolverUnableToResolveCallable(","file":"tests/MiddlewareDispatcherTest.php","line":161,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 403: $deferred = $callableResolver->resolve('\\Slim\\Tests\\Mocks\\CallableTest:toCall');","file":"tests/Routing/RouteTest.php","line":403,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 404: $route = new Route(['GET'], '/', $deferred, $responseFactory, $callableResolver);","file":"tests/Routing/RouteTest.php","line":404,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 438: $deferred = $callableResolverProphecy->reveal()->resolve($callable);","file":"tests/Routing/RouteTest.php","line":438,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Ich versuche gerade zu prüfen, ob unser Framework die entsprechenden Standards für neue Antwort-Objekte unterstützt. Kannst du mir zeigen, wie ich abfrage, ob die Implementierung für die Erstellung dieser Objekte im aktuellen System vorhanden ist?","query":"response factory available","file":"Slim/Interfaces/Psr17FactoryInterface.php","symbol":"isResponseFactoryAvailable","line":37,"lang":"de","candidates":[{"text":"File: Slim/Factory/AppFactory.php\nLine 140: if ($psr17factory::isResponseFactoryAvailable()) {","file":"Slim/Factory/AppFactory.php","line":140,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/AppFactory.php\nLine 165: && SlimHttpPsr17Factory::isResponseFactoryAvailable()","file":"Slim/Factory/AppFactory.php","line":165,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 38: !static::isResponseFactoryAvailable()","file":"Slim/Factory/Psr17/Psr17Factory.php","line":38,"lexical":0.65,"target":false},{"text":"File: Slim/Factory/Psr17/Psr17Factory.php\nLine 77: public static function isResponseFactoryAvailable(): bool","file":"Slim/Factory/Psr17/Psr17Factory.php","line":77,"lexical":0.65,"target":false},{"text":"File: Slim/Interfaces/Psr17FactoryInterface.php\nLine 35: * Is the PSR-17 ResponseFactory available","file":"Slim/Interfaces/Psr17FactoryInterface.php","line":35,"lexical":0.65,"target":true},{"text":"File: Slim/Interfaces/Psr17FactoryInterface.php\nLine 37: public static function isResponseFactoryAvailable(): bool;","file":"Slim/Interfaces/Psr17FactoryInterface.php","line":37,"lexical":0.65,"target":false},{"text":"File: tests/Factory/AppFactoryTest.php\nLine 140: public function testResponseFactoryIsStillReturnedIfStreamFactoryIsNotAvailable()","file":"tests/Factory/AppFactoryTest.php","line":140,"lexical":0.65,"target":false}]} {"site":"project_search","repo":"slim","task":"依存関係注入コンテナを利用して、遅延評価されるコールバックからハンドラーを解決する際のテストケースが不足している、あるいは期待通りに動作するかを確認したい。具体的には、コンテナ経由で取得したオブジェクトの特定のメソッドを呼び出す挙動について。","query":"deferred callable container","file":"tests/Routing/RouteTest.php","symbol":"testInvokeDeferredCallableWithContainer","line":573,"lang":"ja","candidates":[{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 97: public function testDeferredResolvedCallableWithoutContainerAndNonAdvancedCallableResolver(): void","file":"tests/MiddlewareDispatcherTest.php","line":97,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/MiddlewareDispatcherTest.php\nLine 161: public function testDeferredResolvedCallableWithContainerAndNonAdvancedCallableResolverUnableToResolveCallable(","file":"tests/MiddlewareDispatcherTest.php","line":161,"lexical":0.44999999999999996,"target":false},{"text":"File: tests/Routing/RouteTest.php\nLine 539: public function testInvokeDeferredCallableWithNoContainer()","file":"tests/Routing/RouteTest.php","line":539,"lexical":0.44999999999999996,"target":true},{"text":"File: tests/Routing/RouteTest.php\nLine 573: public function testInvokeDeferredCallableWithContainer()","file":"tests/Routing/RouteTest.php","line":573,"lexical":0.44999999999999996,"target":false}]} {"site":"project_search","repo":"slim","task":"Como gerar URLs relativas para rotas nomeadas no Slim, considerando parâmetros de rota e consulta? Preciso entender como o analisador de rotas constrói o padrão a partir do coletor de rotas.","query":"relativeUrlFor route name","file":"Slim/Routing/RouteParser.php","symbol":"RouteParser","line":25,"lang":"pt","candidates":[{"text":"File: Slim/Interfaces/RouteParserInterface.php\nLine 30: public function relativeUrlFor(string $routeName, array $data = [], array $queryParams = []): string;","file":"Slim/Interfaces/RouteParserInterface.php","line":30,"lexical":0.65,"target":false},{"text":"File: Slim/Routing/RouteParser.php\nLine 40: public function relativeUrlFor(string $routeName, array $data = [], array $queryParams = []): string","file":"Slim/Routing/RouteParser.php","line":40,"lexical":0.65,"target":true},{"text":"File: Slim/Routing/RouteParser.php\nLine 107: $url = $this->relativeUrlFor($routeName, $data, $queryParams);","file":"Slim/Routing/RouteParser.php","line":107,"lexical":0.65,"target":false}]}