Hot to tell Symfony http_client to read .htccess : I have a php application made in symfony, it needs this .htaccess to to work:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

now I am writing some functional test and looks like the client can't find the controller for the route, this is the code:

    $response = static::createClient()->request(
            'POST',
            '/api/login_check',
            [
                'body' => [
                    'username' => 'username',
                    'password' => 'secret123!#'
                ]
            ]
        );

when I run the test I get this error:

    2020-01-13T11:53:54+00:00 [error] Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Unable to find the controller for path "/api/login_check". The route is wrongly configured." at /var/www/html/vendor/symfony/http-kernel/HttpKernel.php line 130

which is exactly the same error I use to have using postman before to add the .htaccess file.

Is there a way to make the http_client read the .htaccess file?

Or alternatively, how can I get rid of the .htaccess file?

thanks

