public static function createDefaultMapperStrategy() { $mapper = new self(new StandardObjectMapper()); $mapper->addStrategy('\\Psr\\Http\\Message\\ServerRequestInterface', new ServerRequestPSR7Mapper()); $mapper->addStrategy('\\Symfony\\Component\\HttpFoundation\\Request', new SymfonyRequestMapper()); return $mapper; }