mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
Make most classes final
This commit is contained in:
parent
9b82da1d85
commit
fd92284b83
@ -14,7 +14,7 @@ namespace EXSyst\Bundle\ApiDocBundle\DependencyInjection;
|
|||||||
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
|
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
|
||||||
use Symfony\Component\Config\Definition\ConfigurationInterface;
|
use Symfony\Component\Config\Definition\ConfigurationInterface;
|
||||||
|
|
||||||
class Configuration implements ConfigurationInterface
|
final class Configuration implements ConfigurationInterface
|
||||||
{
|
{
|
||||||
public function getConfigTreeBuilder()
|
public function getConfigTreeBuilder()
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|||||||
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
|
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
|
||||||
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
||||||
|
|
||||||
class EXSystApiDocExtension extends Extension
|
final class EXSystApiDocExtension extends Extension
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
@ -14,7 +14,7 @@ namespace EXSyst\Bundle\ApiDocBundle\Describer;
|
|||||||
use ApiPlatform\Core\Documentation\Documentation;
|
use ApiPlatform\Core\Documentation\Documentation;
|
||||||
use ApiPlatform\Core\Swagger\Serializer\DocumentationNormalizer;
|
use ApiPlatform\Core\Swagger\Serializer\DocumentationNormalizer;
|
||||||
|
|
||||||
class ApiPlatformDescriber extends ExternalDocDescriber
|
final class ApiPlatformDescriber extends ExternalDocDescriber
|
||||||
{
|
{
|
||||||
public function __construct(Documentation $documentation, DocumentationNormalizer $normalizer, bool $overwrite = false)
|
public function __construct(Documentation $documentation, DocumentationNormalizer $normalizer, bool $overwrite = false)
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@ use EXSyst\Component\Swagger\Swagger;
|
|||||||
*
|
*
|
||||||
* @author Ener-Getick <egetick@gmail.com>
|
* @author Ener-Getick <egetick@gmail.com>
|
||||||
*/
|
*/
|
||||||
class DefaultDescriber implements DescriberInterface
|
final class DefaultDescriber implements DescriberInterface
|
||||||
{
|
{
|
||||||
public function describe(Swagger $api)
|
public function describe(Swagger $api)
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|||||||
use Symfony\Component\Routing\Route;
|
use Symfony\Component\Routing\Route;
|
||||||
use Symfony\Component\Routing\RouteCollection;
|
use Symfony\Component\Routing\RouteCollection;
|
||||||
|
|
||||||
class RouteDescriber implements DescriberInterface
|
final class RouteDescriber implements DescriberInterface
|
||||||
{
|
{
|
||||||
private $container;
|
private $container;
|
||||||
private $routeCollection;
|
private $routeCollection;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace EXSyst\Bundle\ApiDocBundle\Describer;
|
namespace EXSyst\Bundle\ApiDocBundle\Describer;
|
||||||
|
|
||||||
class SwaggerPhpDescriber extends ExternalDocDescriber
|
final class SwaggerPhpDescriber extends ExternalDocDescriber
|
||||||
{
|
{
|
||||||
public function __construct(string $projectPath, bool $overwrite = false)
|
public function __construct(string $projectPath, bool $overwrite = false)
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,7 @@ use EXSyst\Bundle\ApiDocBundle\DependencyInjection\EXSystApiDocExtension;
|
|||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||||
|
|
||||||
class EXSystApiDocBundle extends Bundle
|
final class EXSystApiDocBundle extends Bundle
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
@ -19,7 +19,7 @@ use Symfony\Component\Routing\Route;
|
|||||||
use Symfony\Component\Validator\Constraint;
|
use Symfony\Component\Validator\Constraint;
|
||||||
use Symfony\Component\Validator\Constraints\Regex;
|
use Symfony\Component\Validator\Constraints\Regex;
|
||||||
|
|
||||||
class FosRestDescriber implements RouteDescriberInterface
|
final class FosRestDescriber implements RouteDescriberInterface
|
||||||
{
|
{
|
||||||
use RouteDescriberTrait;
|
use RouteDescriberTrait;
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ use EXSyst\Component\Swagger\Swagger;
|
|||||||
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
|
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
|
||||||
use Symfony\Component\Routing\Route;
|
use Symfony\Component\Routing\Route;
|
||||||
|
|
||||||
class NelmioAnnotationDescriber implements RouteDescriberInterface
|
final class NelmioAnnotationDescriber implements RouteDescriberInterface
|
||||||
{
|
{
|
||||||
use RouteDescriberTrait;
|
use RouteDescriberTrait;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ use phpDocumentor\Reflection\DocBlockFactory;
|
|||||||
use phpDocumentor\Reflection\DocBlockFactoryInterface;
|
use phpDocumentor\Reflection\DocBlockFactoryInterface;
|
||||||
use Symfony\Component\Routing\Route;
|
use Symfony\Component\Routing\Route;
|
||||||
|
|
||||||
class PhpDocDescriber implements RouteDescriberInterface
|
final class PhpDocDescriber implements RouteDescriberInterface
|
||||||
{
|
{
|
||||||
use RouteDescriberTrait;
|
use RouteDescriberTrait;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ namespace EXSyst\Bundle\ApiDocBundle\RouteDescriber;
|
|||||||
use EXSyst\Component\Swagger\Swagger;
|
use EXSyst\Component\Swagger\Swagger;
|
||||||
use Symfony\Component\Routing\Route;
|
use Symfony\Component\Routing\Route;
|
||||||
|
|
||||||
class RouteMetadataDescriber implements RouteDescriberInterface
|
final class RouteMetadataDescriber implements RouteDescriberInterface
|
||||||
{
|
{
|
||||||
use RouteDescriberTrait;
|
use RouteDescriberTrait;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user