futtern/config/packages/api_platform.php

21 lines
600 B
PHP
Raw Normal View History

2024-10-21 16:55:01 +00:00
<?php declare(strict_types=1);
2024-10-21 16:45:21 +00:00
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->extension('api_platform', [
'title' => 'Hello API Platform',
'version' => '1.0.0',
'defaults' => [
'stateless' => true,
'cache_headers' => [
'vary' => [
'Content-Type',
'Authorization',
'Origin',
],
],
],
]);
};