Skip to content
Browse files

Added CoreBundle

  • Loading branch information...
1 parent 597a12d commit b156a5b3d60956a2078953a739543133a64cb11c @thaberkern thaberkern committed Jun 17, 2011
View
1 app/AppKernel.php
@@ -20,6 +20,7 @@ public function registerBundles()
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
+ new CuteFlow\CoreBundle\CuteFlowCoreBundle(),
);
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
View
1 app/autoload.php
@@ -13,6 +13,7 @@
'Monolog' => __DIR__.'/../vendor/monolog/src',
'Assetic' => __DIR__.'/../vendor/assetic/src',
'Metadata' => __DIR__.'/../vendor/metadata/src',
+ 'CuteFlow' => __DIR__.'/../src',
));
$loader->registerPrefixes(array(
'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
View
0 app/phpunit.xml.dist → app/phpunit.xml
File renamed without changes.
View
22 src/CuteFlow/CoreBundle/Controller/DefaultController.php
@@ -0,0 +1,22 @@
+<?php
+
+/*
+ * This file is part of the Symfony framework.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
+namespace CuteFlow\CoreBundle\Controller;
+
+use Symfony\Bundle\FrameworkBundle\Controller\Controller;
+
+class DefaultController extends Controller
+{
+ public function indexAction()
+ {
+ return $this->render('CuteFlowCoreBundle:Default:index.html.twig');
+ }
+}
View
18 src/CuteFlow/CoreBundle/CuteFlowCoreBundle.php
@@ -0,0 +1,18 @@
+<?php
+
+/*
+ * This file is part of the Symfony framework.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
+namespace CuteFlow\CoreBundle;
+
+use Symfony\Component\HttpKernel\Bundle\Bundle;
+
+class CuteFlowCoreBundle extends Bundle
+{
+}
View
3 src/CuteFlow/CoreBundle/Resources/config/routing.yml
@@ -0,0 +1,3 @@
+#homepage:
+# pattern: /
+# defaults: { _controller: CuteFlowCoreBundle:Default:index }
View
1 src/CuteFlow/CoreBundle/Resources/views/Default/index.html.twig
@@ -0,0 +1 @@
+Hello!

0 comments on commit b156a5b

Please sign in to comment.
Something went wrong with that request. Please try again.