Skip to content

Commit

Permalink
Merge pull request #21 from retailcrm/fos-rest-remove
Browse files Browse the repository at this point in the history
Remove the support of FosRestBundle, DunglasApiBundle and JmsSecurityExtra
  • Loading branch information
muxx authored Oct 1, 2024
2 parents 73f9b9e + 3ef60f2 commit 49f4161
Show file tree
Hide file tree
Showing 28 changed files with 50 additions and 4,537 deletions.
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

5 changes: 0 additions & 5 deletions DependencyInjection/LoadExtractorParsersPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,5 @@ public function process(ContainerBuilder $container): void
if ($container->hasDefinition('jms_serializer.serializer')) {
$loader->load('services.jms.xml');
}

// DunglasJsonLdApiBundle may or may not be installed, if it is, load that config as well
if ($container->hasDefinition('api.resource_collection')) {
$loader->load('services.dunglas_api.xml');
}
}
}
125 changes: 0 additions & 125 deletions Extractor/Handler/FosRestHandler.php

This file was deleted.

33 changes: 0 additions & 33 deletions Extractor/Handler/JmsSecurityExtraHandler.php

This file was deleted.

6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
NelmioApiDocBundle
==================

[![Build
Status](https://secure.travis-ci.org/nelmio/NelmioApiDocBundle.png?branch=master)](http://travis-ci.org/nelmio/NelmioApiDocBundle)
[![Total Downloads](https://poser.pugx.org/nelmio/api-doc-bundle/downloads)](https://packagist.org/packages/nelmio/api-doc-bundle)
[![Latest Stable
Version](https://poser.pugx.org/nelmio/api-doc-bundle/v/stable)](https://packagist.org/packages/nelmio/api-doc-bundle)

The **NelmioApiDocBundle** bundle allows you to generate a decent documentation
for your APIs.

Expand Down
10 changes: 0 additions & 10 deletions Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
<parameter key="nelmio_api_doc.twig.extension.extra_markdown.class">Nelmio\ApiDocBundle\Twig\Extension\MarkdownExtension</parameter>
<parameter key="nelmio_api_doc.doc_comment_extractor.class">Nelmio\ApiDocBundle\Util\DocCommentExtractor</parameter>

<parameter key="nelmio_api_doc.extractor.handler.fos_rest.class">Nelmio\ApiDocBundle\Extractor\Handler\FosRestHandler</parameter>
<parameter key="nelmio_api_doc.extractor.handler.jms_security.class">Nelmio\ApiDocBundle\Extractor\Handler\JmsSecurityExtraHandler</parameter>
<parameter key="nelmio_api_doc.extractor.handler.phpdoc.class">Nelmio\ApiDocBundle\Extractor\Handler\PhpDocHandler</parameter>

<parameter key="nelmio_api_doc.parser.collection_parser.class">Nelmio\ApiDocBundle\Parser\CollectionParser</parameter>
Expand Down Expand Up @@ -43,14 +41,6 @@

<!-- Extractor Annotation Handlers -->

<service id="nelmio_api_doc.extractor.handler.fos_rest" class="%nelmio_api_doc.extractor.handler.fos_rest.class%" public="false">
<tag name="nelmio_api_doc.extractor.handler"/>
</service>

<service id="nelmio_api_doc.extractor.handler.jms_security" class="%nelmio_api_doc.extractor.handler.jms_security.class%" public="false">
<tag name="nelmio_api_doc.extractor.handler"/>
</service>

<service id="nelmio_api_doc.extractor.handler.phpdoc" class="%nelmio_api_doc.extractor.handler.phpdoc.class%" public="false">
<argument type="service" id="nelmio_api_doc.doc_comment_extractor" />
<tag name="nelmio_api_doc.extractor.handler"/>
Expand Down
23 changes: 0 additions & 23 deletions Resources/doc/dunglasapibundle.rst

This file was deleted.

1 change: 0 additions & 1 deletion Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ setup your API documentation:
multiple-api-doc
other-bundle-annotations
swagger-support
dunglasapibundle
sandbox
commands
configuration-in-depth
Expand Down
8 changes: 0 additions & 8 deletions Resources/doc/other-bundle-annotations.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
Other Bundle Annotations
========================

This bundle will get information from the following other annotations:

* ``@FOS\RestBundle\Controller\Annotations\RequestParam`` - use as ``parameters``
* ``@FOS\RestBundle\Controller\Annotations\QueryParam`` - use as ``requirements``
(when strict parameter is true), ``filters`` (when strict is false)
* ``@JMS\SecurityExtraBundle\Annotation\Secure`` - set ``authentication`` to true,
``authenticationRoles`` to the given roles

PHPDoc
------

Expand Down
44 changes: 0 additions & 44 deletions Tests/Extractor/AnnotationsProvider/DunglasApiProviderTest.php

This file was deleted.

Loading

0 comments on commit 49f4161

Please sign in to comment.