Renamed the bundle

This commit is contained in:
William DURAND 2012-04-12 18:37:42 +02:00
parent 6285ecebb0
commit f172e74db7
17 changed files with 32 additions and 32 deletions

View File

@ -1,6 +1,6 @@
<?php
namespace Nelmio\ApiBundle\Annotation;
namespace Nelmio\ApiDocBundle\Annotation;
/**
* @Annotation

View File

@ -1,6 +1,6 @@
<?php
namespace Nelmio\ApiBundle\Command;
namespace Nelmio\ApiDocBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace Nelmio\ApiBundle\Controller;
namespace Nelmio\ApiDocBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;

View File

@ -1,6 +1,6 @@
<?php
namespace Nelmio\ApiBundle\DependencyInjection;
namespace Nelmio\ApiDocBundle\DependencyInjection;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;

View File

@ -1,9 +1,9 @@
<?php
namespace Nelmio\ApiBundle\EventListener;
namespace Nelmio\ApiDocBundle\EventListener;
use Nelmio\ApiBundle\Extractor\ApiDocExtractor;
use Nelmio\ApiBundle\Formatter\FormatterInterface;
use Nelmio\ApiDocBundle\Extractor\ApiDocExtractor;
use Nelmio\ApiDocBundle\Formatter\FormatterInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\HttpKernelInterface;
@ -12,12 +12,12 @@ use Symfony\Component\HttpKernel\Event\GetResponseEvent;
class RequestListener
{
/**
* @var \Nelmio\ApiBundle\Extractor\ApiDocExtractor
* @var \Nelmio\ApiDocBundle\Extractor\ApiDocExtractor
*/
protected $extractor;
/**
* @var \Nelmio\ApiBundle\Formatter\FormatterInterface
* @var \Nelmio\ApiDocBundle\Formatter\FormatterInterface
*/
protected $formatter;

View File

@ -1,13 +1,13 @@
<?php
namespace Nelmio\ApiBundle\Extractor;
namespace Nelmio\ApiDocBundle\Extractor;
use Doctrine\Common\Annotations\Reader;
use Symfony\Component\Routing\RouterInterface;
class ApiDocExtractor
{
const ANNOTATION_CLASS = 'Nelmio\\ApiBundle\\Annotation\\ApiDoc';
const ANNOTATION_CLASS = 'Nelmio\\ApiDocBundle\\Annotation\\ApiDoc';
/**
* @var \ymfony\Component\Routing\RouterInterface

View File

@ -1,15 +1,15 @@
<?php
namespace Nelmio\ApiBundle\Formatter;
namespace Nelmio\ApiDocBundle\Formatter;
use Nelmio\ApiBundle\Annotation\ApiDoc;
use Nelmio\ApiBundle\Parser\FormTypeParser;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Nelmio\ApiDocBundle\Parser\FormTypeParser;
use Symfony\Component\Routing\Route;
abstract class AbstractFormatter implements FormatterInterface
{
/**
* @var \Nelmio\ApiBundle\Parser\FormTypeParser
* @var \Nelmio\ApiDocBundle\Parser\FormTypeParser
*/
protected $parser;

View File

@ -1,8 +1,8 @@
<?php
namespace Nelmio\ApiBundle\Formatter;
namespace Nelmio\ApiDocBundle\Formatter;
use Nelmio\ApiBundle\Annotation\ApiDoc;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Symfony\Component\Routing\Route;
interface FormatterInterface

View File

@ -1,8 +1,8 @@
<?php
namespace Nelmio\ApiBundle\Formatter;
namespace Nelmio\ApiDocBundle\Formatter;
use Nelmio\ApiBundle\Annotation\ApiDoc;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Symfony\Component\Routing\Route;
class HtmlFormatter extends AbstractFormatter

View File

@ -1,6 +1,6 @@
<?php
namespace Nelmio\ApiBundle\Formatter;
namespace Nelmio\ApiDocBundle\Formatter;
class MarkdownFormatter extends AbstractFormatter
{

View File

@ -1,6 +1,6 @@
<?php
namespace Nelmio\ApiBundle\Formatter;
namespace Nelmio\ApiDocBundle\Formatter;
class SimpleFormatter extends AbstractFormatter
{

View File

@ -1,9 +1,9 @@
<?php
namespace Nelmio\ApiBundle;
namespace Nelmio\ApiDocBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class NelmioApiBundle extends Bundle
class NelmioApiDocBundle extends Bundle
{
}

View File

@ -1,6 +1,6 @@
<?php
namespace Nelmio\ApiBundle\Parser;
namespace Nelmio\ApiDocBundle\Parser;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

View File

@ -4,11 +4,11 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="nelmio.api.parser.form_type_parser.class">Nelmio\ApiBundle\Parser\FormTypeParser</parameter>
<parameter key="nelmio.api.formatter.abstract_formatter.class">Nelmio\ApiBundle\Formatter\AbstractFormatter</parameter>
<parameter key="nelmio.api.formatter.markdown_formatter.class">Nelmio\ApiBundle\Formatter\MarkdownFormatter</parameter>
<parameter key="nelmio.api.formatter.simple_formatter.class">Nelmio\ApiBundle\Formatter\SimpleFormatter</parameter>
<parameter key="nelmio.api.formatter.html_formatter.class">Nelmio\ApiBundle\Formatter\HtmlFormatter</parameter>
<parameter key="nelmio.api.parser.form_type_parser.class">Nelmio\ApiDocBundle\Parser\FormTypeParser</parameter>
<parameter key="nelmio.api.formatter.abstract_formatter.class">Nelmio\ApiDocBundle\Formatter\AbstractFormatter</parameter>
<parameter key="nelmio.api.formatter.markdown_formatter.class">Nelmio\ApiDocBundle\Formatter\MarkdownFormatter</parameter>
<parameter key="nelmio.api.formatter.simple_formatter.class">Nelmio\ApiDocBundle\Formatter\SimpleFormatter</parameter>
<parameter key="nelmio.api.formatter.html_formatter.class">Nelmio\ApiDocBundle\Formatter\HtmlFormatter</parameter>
</parameters>
<services>

View File

@ -4,7 +4,7 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="nelmio.api.event_listener.request.class">Nelmio\ApiBundle\EventListener\RequestListener</parameter>
<parameter key="nelmio.api.event_listener.request.class">Nelmio\ApiDocBundle\EventListener\RequestListener</parameter>
</parameters>
<services>

View File

@ -1,5 +1,5 @@
nelmio_api_api_doc_index:
pattern: /api/doc
defaults: { _controller: NelmioApiBundle:ApiDoc:index }
defaults: { _controller: NelmioApiDocBundle:ApiDoc:index }
requirements:
_method: GET

View File

@ -4,7 +4,7 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="nelmio.api.extractor.api_doc_extractor.class">Nelmio\ApiBundle\Extractor\ApiDocExtractor</parameter>
<parameter key="nelmio.api.extractor.api_doc_extractor.class">Nelmio\ApiDocBundle\Extractor\ApiDocExtractor</parameter>
</parameters>
<services>