diff --git a/CLChillMainBundle.php b/CLChillMainBundle.php
deleted file mode 100644
index 583e1fbd3..000000000
--- a/CLChillMainBundle.php
+++ /dev/null
@@ -1,9 +0,0 @@
-render('CLChillMainBundle:Admin:index.html.twig', array(
+ return $this->render('ChillMainBundle:Admin:index.html.twig', array(
'menu_composer' => $this->get('cl_chill_main_menu_composer'),
'menu' => $menu,
'header_title' => $header_title,
diff --git a/Controller/DefaultController.php b/Controller/DefaultController.php
index a7fe14140..bd9deaa42 100644
--- a/Controller/DefaultController.php
+++ b/Controller/DefaultController.php
@@ -1,6 +1,6 @@
render('CLChillMainBundle::layout.html.twig');
+ return $this->render('ChillMainBundle::layout.html.twig');
}
}
diff --git a/Controller/MenuController.php b/Controller/MenuController.php
index f4dc976bb..dfccd69ed 100644
--- a/Controller/MenuController.php
+++ b/Controller/MenuController.php
@@ -1,6 +1,6 @@
countries as $code => $name) {
- $country = new \CL\Chill\MainBundle\Entity\Country();
+ $country = new \Chill\MainBundle\Entity\Country();
$country->setLabel(ucwords($name));
$manager->persist($country);
}
diff --git a/DependencyInjection/CLChillMainExtension.php b/DependencyInjection/ChillMainExtension.php
similarity index 85%
rename from DependencyInjection/CLChillMainExtension.php
rename to DependencyInjection/ChillMainExtension.php
index 3cf9f4be0..b08e267e4 100644
--- a/DependencyInjection/CLChillMainExtension.php
+++ b/DependencyInjection/ChillMainExtension.php
@@ -1,6 +1,6 @@
getParameter('kernel.bundles');
- //add CLChillMain to assetic-enabled bundles
+ //add ChillMain to assetic-enabled bundles
if (!isset($bundles['AsseticBundle'])) {
throw new MissingBundleException('AsseticBundle');
}
$asseticConfig = $container->getExtensionConfig('assetic');
- $asseticConfig['bundles'][] = 'CLChillMainBundle';
+ $asseticConfig['bundles'][] = 'ChillMainBundle';
$container->prependExtensionConfig('assetic',
- array('bundles' => array('CLChillMainBundle')));
+ array('bundles' => array('ChillMainBundle')));
//add installation_name to globals
$chillMainConfig = $container->getExtensionConfig($this->getAlias());
diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php
index 400d3386d..c0af5d67e 100644
--- a/DependencyInjection/Configuration.php
+++ b/DependencyInjection/Configuration.php
@@ -1,6 +1,6 @@
{% endstylesheets %}
diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig
index 685455242..79dc31c51 100644
--- a/Resources/views/layout.html.twig
+++ b/Resources/views/layout.html.twig
@@ -5,21 +5,21 @@
{{ installation.name }}{% block title %}{% endblock %}
{% stylesheets output="css/all.css" filter="cssrewrite"
- "bundles/clchillmain/css/gumby.css"
- "bundles/clchillmain/css/chillmain.css"
- "bundles/clchillmain/js/lib_jquery_ui_pickadate/jquery-ui-1.10.3.pickadate.css" %}
+ "bundles/Chillmain/css/gumby.css"
+ "bundles/Chillmain/css/chillmain.css"
+ "bundles/Chillmain/js/lib_jquery_ui_pickadate/jquery-ui-1.10.3.pickadate.css" %}
{% endstylesheets %}
{% block css%}{% endblock %}
{% javascripts output="js/libs.js"
- "bundles/clchillmain/js/modernizr-2.6.2.min.js"
- "bundles/clchillmain/js/jquery-2.0.2.min.js"
- "bundles/clchillmain/js/gumby.js"
- "bundles/clchillmain/js/gumby.init.js"
- "bundles/clchillmain/js/ui/*.js"
- "bundles/clchillmain/js/lib_jquery_ui_pickadate/jquery-ui-1.10.3.pickadate.js" %}
+ "bundles/Chillmain/js/modernizr-2.6.2.min.js"
+ "bundles/Chillmain/js/jquery-2.0.2.min.js"
+ "bundles/Chillmain/js/gumby.js"
+ "bundles/Chillmain/js/gumby.init.js"
+ "bundles/Chillmain/js/ui/*.js"
+ "bundles/Chillmain/js/lib_jquery_ui_pickadate/jquery-ui-1.10.3.pickadate.js" %}
{% endjavascripts %}
diff --git a/Routing/MenuComposer.php b/Routing/MenuComposer.php
index eb8417b53..f592863f0 100644
--- a/Routing/MenuComposer.php
+++ b/Routing/MenuComposer.php
@@ -1,6 +1,6 @@
.
*/
-namespace CL\Chill\MainBundle\Routing;
+namespace Chill\MainBundle\Routing;
-use CL\Chill\MainBundle\Routing\MenuComposer;
+use Chill\MainBundle\Routing\MenuComposer;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -51,7 +51,7 @@ class MenuTwig extends \Twig_Extension implements ContainerAwareInterface
* @var mixed[]
*/
private $defaultParams = array(
- 'layout' => 'CLChillMainBundle:Menu:defaultMenu.html.twig',
+ 'layout' => 'ChillMainBundle:Menu:defaultMenu.html.twig',
'args' => array(),
'activeRouteKey' => null
);
@@ -73,7 +73,7 @@ class MenuTwig extends \Twig_Extension implements ContainerAwareInterface
*
* Expected params :
* - args: the arguments to build the path (i.e: if pattern is /something/{bar}, args must contain {'bar': 'foo'}
- * - layout: the layout. Absolute path needed (i.e.: CLChillXyzBundle:section:foo.html.twig)
+ * - layout: the layout. Absolute path needed (i.e.: ChillXyzBundle:section:foo.html.twig)
* - activeRouteKey : the key active, will render the menu differently.
*
* see https://redmine.champs-libres.coop/issues/179 for more informations
diff --git a/Tests/Controller/DefaultControllerTest.php b/Tests/Controller/DefaultControllerTest.php
index 6b49cccf5..69e7f4e47 100644
--- a/Tests/Controller/DefaultControllerTest.php
+++ b/Tests/Controller/DefaultControllerTest.php
@@ -1,6 +1,6 @@
.
*/
-namespace CL\Chill\MainBundle\Tests\Services;
+namespace Chill\MainBundle\Tests\Services;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\DomCrawler\Crawler;
diff --git a/Tests/Services/MenuComposerTest.php b/Tests/Services/MenuComposerTest.php
index 671f6b146..0006421d2 100644
--- a/Tests/Services/MenuComposerTest.php
+++ b/Tests/Services/MenuComposerTest.php
@@ -1,6 +1,6 @@
forward('CLChillMainBundle:Admin:index',
- array(
- 'menu' => 'admin_appointment',
- 'page_title' => 'menu.appointment.admin.index',
- 'header_title' => 'menu.appointment.header_index'
- )
- );
- }
-```
-
-qui ira chercher à son tour toutes les entrées ont comme option le menu correspondant. Exemple pour admin_appointment:
-
-```yaml
-options:
- menu: admin_appointment
- #(...)
-```
\ No newline at end of file