Sfoglia il codice sorgente

add vendor namespace

Thomas 14 anni fa
parent
commit
2fc2e270c9

+ 1 - 1
Admin/Admin.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Admin;
+namespace Bundle\Sonata\BaseApplicationBundle\Admin;
 
 use Symfony\Component\DependencyInjection\ContainerAware;
 use Symfony\Component\Form\Form;

+ 1 - 1
Admin/Pool.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Admin;
+namespace Bundle\Sonata\BaseApplicationBundle\Admin;
 
 
 class Pool

+ 2 - 2
Controller/CRUDController.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Controller;
+namespace Bundle\Sonata\BaseApplicationBundle\Controller;
 
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -17,7 +17,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
 use Symfony\Component\Form\Form;
 
 
-use Bundle\BaseApplicationBundle\Tool\DoctrinePager as Pager;
+use Bundle\Sonata\BaseApplicationBundle\Tool\DoctrinePager as Pager;
 
 class CRUDController extends Controller
 {

+ 1 - 1
Controller/CoreController.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Controller;
+namespace Bundle\Sonata\BaseApplicationBundle\Controller;
 
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

+ 1 - 1
DependencyInjection/BaseApplicationExtension.php

@@ -9,7 +9,7 @@
  */
 
 
-namespace Bundle\BaseApplicationBundle\DependencyInjection;
+namespace Bundle\Sonata\BaseApplicationBundle\DependencyInjection;
 
 use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
 use Symfony\Component\DependencyInjection\Resource\FileResource;

+ 1 - 1
Filter/BooleanFilter.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Filter;
+namespace Bundle\Sonata\BaseApplicationBundle\Filter;
 
 
 class BooleanFilter extends Filter

+ 1 - 1
Filter/CallbackFilter.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Filter;
+namespace Bundle\Sonata\BaseApplicationBundle\Filter;
 
 
 class CallbackFilter extends Filter

+ 1 - 1
Filter/ChoiceFilter.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Filter;
+namespace Bundle\Sonata\BaseApplicationBundle\Filter;
 
 
 class ChoiceFilter extends Filter

+ 1 - 1
Filter/Filter.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Filter;
+namespace Bundle\Sonata\BaseApplicationBundle\Filter;
 
 use Symfony\Component\Form\Configurable;
 

+ 1 - 1
Filter/IntegerFilter.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Filter;
+namespace Bundle\Sonata\BaseApplicationBundle\Filter;
 
 
 class IntegerFilter extends Filter

+ 1 - 1
Filter/StringFilter.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Filter;
+namespace Bundle\Sonata\BaseApplicationBundle\Filter;
 
 
 class StringFilter extends Filter

+ 0 - 35
Form/Generator.php

@@ -1,35 +0,0 @@
-<?php
-/*
- * This file is part of the Sonata project.
- *
- * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Bundle\BaseApplicationBundle\Form;
-
-use Symfony\Component\HttpKernel\Bundle\Bundle;
-
-class Generator
-{
-
-    protected $types = array();
-
-
-    public function setTypes($types)
-    {
-        $this->types = $types;
-    }
-
-    public function getTypes()
-    {
-        return $this->types;
-    }
-
-    public function addType($type, $definition)
-    {
-        $this->types[$type] = $definition;
-    }
-}

+ 1 - 1
Resources/docs/reference/filter_field_definition.rst

@@ -12,7 +12,7 @@ Example
     <?php
     namespace Bundle\NewsBundle\Admin;
 
-    use Bundle\BaseApplicationBundle\Admin\Admin;
+    use Bundle\Sonata\BaseApplicationBundle\Admin\Admin;
 
     class PostAdmin extends Admin
     {

+ 1 - 1
Resources/docs/reference/form_field_definition.rst

@@ -11,7 +11,7 @@ Example
     <?php
     namespace Bundle\NewsBundle\Admin;
 
-    use Bundle\BaseApplicationBundle\Admin\Admin;
+    use Bundle\Sonata\BaseApplicationBundle\Admin\Admin;
 
     class PostAdmin extends Admin
     {

+ 1 - 1
Resources/docs/reference/list_field_definition.rst

@@ -11,7 +11,7 @@ Example
     <?php
     namespace Bundle\NewsBundle\Admin;
 
-    use Bundle\BaseApplicationBundle\Admin\Admin;
+    use Bundle\Sonata\BaseApplicationBundle\Admin\Admin;
 
     class PostAdmin extends Admin
     {

+ 3 - 3
Resources/docs/tutorial/creating_your_first_admin_class/defining_admin_class.rst

@@ -19,7 +19,7 @@ By convention Admin files are set under a Admin folder.
 
     namespace Application\NewsBundle\Admin;
 
-    use Bundle\BaseApplicationBundle\Admin\Admin;
+    use Bundle\Sonata\BaseApplicationBundle\Admin\Admin;
 
     class PostAdmin extends Admin
     {
@@ -94,7 +94,7 @@ TagAdmin
 
     namespace Bundle\NewsBundle\Admin;
 
-    use Bundle\BaseApplicationBundle\Admin\Admin;
+    use Bundle\Sonata\BaseApplicationBundle\Admin\Admin;
 
     class TagAdmin extends Admin
     {
@@ -123,7 +123,7 @@ CommentAdmin
 
     namespace Bundle\NewsBundle\Admin;
 
-    use Bundle\BaseApplicationBundle\Admin\Admin;
+    use Bundle\Sonata\BaseApplicationBundle\Admin\Admin;
 
     class CommentAdmin extends Admin
     {

+ 3 - 3
Resources/docs/tutorial/creating_your_first_admin_class/defining_crud_controller.rst

@@ -13,7 +13,7 @@ Just create 3 files inside the Controller directory
 
     namespace Bundle\NewsBundle\Controller;
 
-    use Bundle\BaseApplicationBundle\Controller\CRUDController as Controller;
+    use Bundle\Sonata\BaseApplicationBundle\Controller\CRUDController as Controller;
     
     class TagAdminController extends Controller
     {
@@ -26,7 +26,7 @@ Just create 3 files inside the Controller directory
 
     namespace Bundle\NewsBundle\Controller;
 
-    use Bundle\BaseApplicationBundle\Controller\CRUDController as Controller;
+    use Bundle\Sonata\BaseApplicationBundle\Controller\CRUDController as Controller;
 
     class PostAdminController extends Controller
     {
@@ -39,7 +39,7 @@ Just create 3 files inside the Controller directory
 
     namespace Bundle\NewsBundle\Controller;
 
-    use Bundle\BaseApplicationBundle\Controller\CRUDController as Controller;
+    use Bundle\Sonata\BaseApplicationBundle\Controller\CRUDController as Controller;
 
     class TagAdminController extends Controller
     {

+ 2 - 2
BaseApplicationBundle.php

@@ -8,10 +8,10 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle;
+namespace Bundle\Sonata\BaseApplicationBundle;
 
 use Symfony\Component\HttpKernel\Bundle\Bundle;
 
-class BaseApplicationBundle extends Bundle {
+class SonataBaseApplicationBundle extends Bundle {
 
 }

+ 7 - 7
Tool/Datagrid.php

@@ -9,15 +9,15 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Tool;
+namespace Bundle\Sonata\BaseApplicationBundle\Tool;
 
-use Bundle\BaseApplicationBundle\Tool\DoctrinePager as Pager;
+use Bundle\Sonata\BaseApplicationBundle\Tool\DoctrinePager as Pager;
 
-use Bundle\BaseApplicationBundle\Filter\StringFilter;
-use Bundle\BaseApplicationBundle\Filter\BooleanFilter;
-use Bundle\BaseApplicationBundle\Filter\IntegerFilter;
-use Bundle\BaseApplicationBundle\Filter\CallbackFilter;
-use Bundle\BaseApplicationBundle\Filter\ChoiceFilter;
+use Bundle\Sonata\BaseApplicationBundle\Filter\StringFilter;
+use Bundle\Sonata\BaseApplicationBundle\Filter\BooleanFilter;
+use Bundle\Sonata\BaseApplicationBundle\Filter\IntegerFilter;
+use Bundle\Sonata\BaseApplicationBundle\Filter\CallbackFilter;
+use Bundle\Sonata\BaseApplicationBundle\Filter\ChoiceFilter;
 
 
 class Datagrid

+ 1 - 1
Tool/DoctrinePager.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Tool;
+namespace Bundle\Sonata\BaseApplicationBundle\Tool;
 
 use Doctrine\ORM\Query;
 use Doctrine\ORM\QueryBuilder;

+ 1 - 1
Tool/Pager.php

@@ -8,7 +8,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Tool;
+namespace Bundle\Sonata\BaseApplicationBundle\Tool;
 
 /**
  * sfPager class.

+ 1 - 1
Twig/Extension/BaseApplicationExtension.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Bundle\BaseApplicationBundle\Twig\Extension;
+namespace Bundle\Sonata\BaseApplicationBundle\Twig\Extension;
 
 use Symfony\Bundle\TwigBundle\TokenParser\HelperTokenParser;