William Cheng 7ad92572e4
Update default value for PHP server generators (slim, silex) (#272)
* update php slim samples

* update php silex samples

* update php silex default value
2018-04-30 15:18:13 +08:00

58 lines
1.7 KiB
PHP

<?php
/**
* OpenAPIServerExtension
*
* PHP version 5
*
* @category Class
* @package OpenAPI\Server\DependencyInjection
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* Swagger Petstore
*
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/openapitools/openapi-generator.git
*
*/
/**
* NOTE: This class is auto generated by the swagger code 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';
}
}