Permalink
Browse files

Bootstrap Symfony2 project

$> composer create-project symfony/framework-standard-edition fullstack-bdd-uk12 2.1.1
$> cd fullstack-bdd-uk12
$> vim composer.json
$> composer install --dev

First stage of project development - bootstraping. On this stage, we're
creating Symfony2 Standard Edition project and declaring some dependencies
that we will need to use during development:

* doctrine/data-fixtures - to use purger, that will clean database for us
* behat/behat - to describe business requirements for the project
* behat/mink-extension - to test business requirements through web UI
* behat/mink-browserkit-driver - to use Symfony2 driver in Mink
* behat/symfony2-extension - to integrate Behat with Symfony2
* phpspec/phpspec2 - to describe code-level specifications
  • Loading branch information...
0 parents commit d7271a712b896ff6b05d77ca5edff9b709a3d3e4 @everzet committed Sep 14, 2012
Showing with 2,315 additions and 0 deletions.
  1. +8 −0 .gitignore
  2. +1 −0 app/.htaccess
  3. +9 −0 app/AppCache.php
  4. +38 −0 app/AppKernel.php
  5. +13 −0 app/Resources/views/base.html.twig
  6. +638 −0 app/SymfonyRequirements.php
  7. +16 −0 app/autoload.php
  8. +55 −0 app/check.php
  9. +59 −0 app/config/config.yml
  10. +26 −0 app/config/config_dev.yml
  11. +19 −0 app/config/config_prod.yml
  12. +14 −0 app/config/config_test.yml
  13. +15 −0 app/config/parameters.yml
  14. +4 −0 app/config/routing.yml
  15. +27 −0 app/config/routing_dev.yml
  16. +43 −0 app/config/security.yml
  17. +22 −0 app/console
  18. +41 −0 app/phpunit.xml.dist
  19. +56 −0 composer.json
  20. +208 −0 composer.lock
  21. +1 −0 src/.htaccess
  22. +9 −0 src/Acme/DemoBundle/AcmeDemoBundle.php
  23. +57 −0 src/Acme/DemoBundle/Controller/DemoController.php
  24. +69 −0 src/Acme/DemoBundle/Controller/SecuredController.php
  25. +18 −0 src/Acme/DemoBundle/Controller/WelcomeController.php
  26. +22 −0 src/Acme/DemoBundle/DependencyInjection/AcmeDemoExtension.php
  27. +25 −0 src/Acme/DemoBundle/EventListener/ControllerListener.php
  28. +20 −0 src/Acme/DemoBundle/Form/ContactType.php
  29. +18 −0 src/Acme/DemoBundle/Resources/config/services.xml
  30. +294 −0 src/Acme/DemoBundle/Resources/public/css/demo.css
  31. BIN src/Acme/DemoBundle/Resources/public/images/blue-arrow.png
  32. BIN src/Acme/DemoBundle/Resources/public/images/field-background.gif
  33. BIN src/Acme/DemoBundle/Resources/public/images/logo.gif
  34. BIN src/Acme/DemoBundle/Resources/public/images/search.png
  35. BIN src/Acme/DemoBundle/Resources/public/images/welcome-configure.gif
  36. BIN src/Acme/DemoBundle/Resources/public/images/welcome-demo.gif
  37. BIN src/Acme/DemoBundle/Resources/public/images/welcome-quick-tour.gif
  38. +15 −0 src/Acme/DemoBundle/Resources/views/Demo/contact.html.twig
  39. +9 −0 src/Acme/DemoBundle/Resources/views/Demo/hello.html.twig
  40. +14 −0 src/Acme/DemoBundle/Resources/views/Demo/index.html.twig
  41. +11 −0 src/Acme/DemoBundle/Resources/views/Secured/hello.html.twig
  42. +9 −0 src/Acme/DemoBundle/Resources/views/Secured/helloadmin.html.twig
  43. +6 −0 src/Acme/DemoBundle/Resources/views/Secured/layout.html.twig
  44. +29 −0 src/Acme/DemoBundle/Resources/views/Secured/login.html.twig
  45. +65 −0 src/Acme/DemoBundle/Resources/views/Welcome/index.html.twig
  46. +49 −0 src/Acme/DemoBundle/Resources/views/layout.html.twig
  47. +17 −0 src/Acme/DemoBundle/Tests/Controller/DemoControllerTest.php
  48. +80 −0 src/Acme/DemoBundle/Twig/Extension/DemoExtension.php
  49. +10 −0 web/.htaccess
  50. +24 −0 web/app.php
  51. +30 −0 web/app_dev.php
  52. BIN web/apple-touch-icon.png
  53. +98 −0 web/config.php
  54. BIN web/favicon.ico
  55. +4 −0 web/robots.txt
@@ -0,0 +1,8 @@
+web/bundles/
+app/bootstrap.php.cache
+app/cache/*
+app/logs/*
+build/
+vendor
+bin
+composer.phar
@@ -0,0 +1 @@
+deny from all
@@ -0,0 +1,9 @@
+<?php
+
+require_once __DIR__.'/AppKernel.php';
+
+use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
+
+class AppCache extends HttpCache
+{
+}
@@ -0,0 +1,38 @@
+<?php
+
+use Symfony\Component\HttpKernel\Kernel;
+use Symfony\Component\Config\Loader\LoaderInterface;
+
+class AppKernel extends Kernel
+{
+ public function registerBundles()
+ {
+ $bundles = array(
+ new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
+ new Symfony\Bundle\SecurityBundle\SecurityBundle(),
+ new Symfony\Bundle\TwigBundle\TwigBundle(),
+ new Symfony\Bundle\MonologBundle\MonologBundle(),
+ new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
+ new Symfony\Bundle\AsseticBundle\AsseticBundle(),
+ new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
+ new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
+ new JMS\AopBundle\JMSAopBundle(),
+ new JMS\DiExtraBundle\JMSDiExtraBundle($this),
+ new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
+ );
+
+ if (in_array($this->getEnvironment(), array('dev', 'test'))) {
+ $bundles[] = new Acme\DemoBundle\AcmeDemoBundle();
+ $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
+ $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
+ $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
+ }
+
+ return $bundles;
+ }
+
+ public function registerContainerConfiguration(LoaderInterface $loader)
+ {
+ $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
+ }
+}
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="UTF-8" />
+ <title>{% block title %}Welcome!{% endblock %}</title>
+ {% block stylesheets %}{% endblock %}
+ <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
+ </head>
+ <body>
+ {% block body %}{% endblock %}
+ {% block javascripts %}{% endblock %}
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit d7271a7

Please sign in to comment.