forked from loafle/openapi-generator-original
* [Slim] Add PHP CodeSniffer package * [Slim] Add phpcsStandard generator option We follow PSR-2 coding style guide in PHP generators. It might be convenient for users to specify own coding standard without modifying templates. That's why I've added this option. At first, I thought to add option validation and accept only standards from predefined list. But this option also can be a full path to the standard's root directory, I've changed my mind. User should use this option with caution. Ref to all PHP CodeSniffer CLI options: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage * [Slim] Extend readme with PHP CodeSniffer docs * [Slim] Format templates to meet PSR-2 * [Slim] Refresh samples
57 lines
1.4 KiB
PHP
57 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* Abstract Api Controller
|
|
*
|
|
* PHP version 5
|
|
*
|
|
* @category Class
|
|
* @package OpenAPIServer
|
|
* @author OpenAPI Generator team
|
|
* @link https://github.com/openapitools/openapi-generator
|
|
*/
|
|
|
|
/**
|
|
* OpenAPI Petstore *_/ ' \" =end -- \\r\\n \\n \\r
|
|
*
|
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end --
|
|
* OpenAPI spec version: 1.0.0 *_/ ' \" =end -- \\r\\n \\n \\r
|
|
* Contact: something@something.abc *_/ ' \" =end -- \\r\\n \\n \\r
|
|
* 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 OpenAPIServer;
|
|
|
|
/**
|
|
* ApiServer Class Doc Comment
|
|
*
|
|
* PHP version 5
|
|
*
|
|
* @category Class
|
|
* @package OpenAPIServer
|
|
* @author OpenAPI Generator team
|
|
* @link https://github.com/openapitools/openapi-generator
|
|
*/
|
|
abstract class AbstractApiController
|
|
{
|
|
|
|
/**
|
|
* @var \Interop\Container\ContainerInterface Slim app container instance
|
|
*/
|
|
protected $container;
|
|
|
|
/**
|
|
* Route Controller constructor receives container
|
|
*
|
|
* @param \Interop\Container\ContainerInterface $container Slim app container instance
|
|
*/
|
|
public function __construct($container)
|
|
{
|
|
$this->container = $container;
|
|
}
|
|
}
|