forked from loafle/openapi-generator-original
* Update php client (OAS3) bin/openapi3/php-petstore.sh * Update symfony server (OAS2) bin/php-symfony-petstore.sh * Lumen: remove 'swagger' * Update lumen server (OAS2) * Update php client (security): deleted 'SwaggerClient-php' folder * Update TEST_DIR * Update php client tests (OAS3) bin/openapi3/php-petstore.sh * Update php client (OAS2) bin/php-petstore.sh * Fix * Fix lumen -> php-lumen * Update lumen server (security) * Delete moved files currently it will generate into under 'lib' folder. * Fix slim -> php-slim * Update slim server (security) bin/security/slim-petstore-server.sh * Fix * Update dot files
58 lines
1.5 KiB
PHP
58 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* OpenAPIServerExtension
|
|
*
|
|
* PHP version 5
|
|
*
|
|
* @category Class
|
|
* @package OpenAPI\Server\DependencyInjection
|
|
* @author OpenAPI Generator team
|
|
* @link https://github.com/openapitools/openapi-generator
|
|
*/
|
|
|
|
/**
|
|
* OpenAPI Petstore
|
|
*
|
|
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
*
|
|
* OpenAPI spec version: 1.0.0
|
|
*
|
|
* Generated by: https://github.com/openapitools/openapi-generator.git
|
|
*
|
|
*/
|
|
|
|
/**
|
|
* NOTE: This class is auto generated by the openapi generator program.
|
|
* https://github.com/openapitools/openapi-generator
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
namespace OpenAPI\Server\DependencyInjection;
|
|
|
|
use Symfony\Component\Config\FileLocator;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Symfony\Component\DependencyInjection\Extension\Extension;
|
|
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
|
|
|
|
/**
|
|
* OpenAPIServerExtension Class Doc Comment
|
|
*
|
|
* @category Class
|
|
* @package OpenAPI\Server\DependencyInjection
|
|
* @author OpenAPI Generator team
|
|
* @link https://github.com/openapitools/openapi-generator
|
|
*/
|
|
class OpenAPIServerExtension extends Extension
|
|
{
|
|
public function load(array $configs, ContainerBuilder $container)
|
|
{
|
|
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
|
$loader->load('services.yml');
|
|
}
|
|
|
|
public function getAlias()
|
|
{
|
|
return 'open_apiserver';
|
|
}
|
|
}
|