Permalink
Browse files

Initial commit. Well, not exactly.

  • Loading branch information...
0 parents commit cfa10b72effc2ab248d2f533ca0229fcf79195bf @mbontemps mbontemps committed Jul 4, 2011
Showing with 10,010 additions and 0 deletions.
  1. +6 −0 .gitignore
  2. +123 −0 .gitmodules
  3. +20 −0 LICENSE
  4. +88 −0 README.md
  5. +1 −0 app/.htaccess
  6. +9 −0 app/AppCache.php
  7. +70 −0 app/AppKernel.php
  8. +15 −0 app/Resources/SonataAdminBundle/views/CRUD/view_datetime.html.twig
  9. +13 −0 app/Resources/views/base.html.twig
  10. +61 −0 app/autoload.php
  11. +3,062 −0 app/bootstrap.php.cache
  12. +3,637 −0 app/bootstrap_cache.php.cache
  13. 0 app/cache/.gitkeep
  14. +105 −0 app/check.php
  15. +85 −0 app/config/config.yml
  16. +21 −0 app/config/config_dev.yml
  17. +21 −0 app/config/config_dev_local.yml.dist
  18. +18 −0 app/config/config_prod.yml
  19. +21 −0 app/config/config_prod_local.yml.dist
  20. +21 −0 app/config/config_test.yml
  21. +20 −0 app/config/config_test_local.yml.dist
  22. +15 −0 app/config/routing.yml
  23. +14 −0 app/config/routing_dev.yml
  24. +37 −0 app/config/security.yml
  25. +16 −0 app/console
  26. 0 app/logs/.gitkeep
  27. +41 −0 app/phpunit.xml.dist
  28. +1 −0 bin/.htaccess
  29. +92 −0 bin/build_bootstrap.php
  30. +1 −0 src/.htaccess
  31. +37 −0 src/Knp/IpsumBundle/Admin/TimedThingAdmin.php
  32. +13 −0 src/Knp/IpsumBundle/Controller/AsseticController.php
  33. +13 −0 src/Knp/IpsumBundle/Controller/AvalancheImagineController.php
  34. +81 −0 src/Knp/IpsumBundle/Controller/DoctrineOrmController.php
  35. +22 −0 src/Knp/IpsumBundle/Controller/FOSRestController.php
  36. +35 −0 src/Knp/IpsumBundle/Controller/FormController.php
  37. +64 −0 src/Knp/IpsumBundle/Controller/GedmoExtensionsController.php
  38. +22 −0 src/Knp/IpsumBundle/Controller/JMSSecurityExtraController.php
  39. +15 −0 src/Knp/IpsumBundle/Controller/KnpMenuController.php
  40. +24 −0 src/Knp/IpsumBundle/Controller/PagerfantaController.php
  41. +45 −0 src/Knp/IpsumBundle/Controller/SecuredController.php
  42. +32 −0 src/Knp/IpsumBundle/Controller/SensioFrameworkExtraController.php
  43. +18 −0 src/Knp/IpsumBundle/Controller/SummaryController.php
  44. +31 −0 src/Knp/IpsumBundle/Controller/SwiftmailerController.php
  45. +15 −0 src/Knp/IpsumBundle/Controller/TwigController.php
  46. +38 −0 src/Knp/IpsumBundle/DataFixtures/ORM/ThingFixtures.php
  47. +25 −0 src/Knp/IpsumBundle/DataFixtures/ORM/TimedThingFixtures.php
  48. +24 −0 src/Knp/IpsumBundle/DependencyInjection/KnpIpsumExtension.php
  49. +58 −0 src/Knp/IpsumBundle/Entity/Category.php
  50. +90 −0 src/Knp/IpsumBundle/Entity/Thing.php
  51. +150 −0 src/Knp/IpsumBundle/Entity/TimedThing.php
  52. +25 −0 src/Knp/IpsumBundle/EventListener/ControllerListener.php
  53. +37 −0 src/Knp/IpsumBundle/Features/Context/FeatureContext.php
  54. +15 −0 src/Knp/IpsumBundle/Features/helloworld.feature
  55. +67 −0 src/Knp/IpsumBundle/Form/Model/Contact.php
  56. +22 −0 src/Knp/IpsumBundle/Form/Type/ContactType.php
  57. +9 −0 src/Knp/IpsumBundle/KnpIpsumBundle.php
  58. +29 −0 src/Knp/IpsumBundle/Menu/IpsumMenu.php
  59. +33 −0 src/Knp/IpsumBundle/Repository/ThingRepository.php
  60. +18 −0 src/Knp/IpsumBundle/Resources/config/admin.xml
  61. +19 −0 src/Knp/IpsumBundle/Resources/config/menus.xml
  62. +48 −0 src/Knp/IpsumBundle/Resources/config/routing.yml
  63. +3 −0 src/Knp/IpsumBundle/Resources/config/routing/assetic.yml
  64. +3 −0 src/Knp/IpsumBundle/Resources/config/routing/avalanche_imagine.yml
  65. +17 −0 src/Knp/IpsumBundle/Resources/config/routing/doctrine_orm.yml
  66. +3 −0 src/Knp/IpsumBundle/Resources/config/routing/form.yml
  67. +4 −0 src/Knp/IpsumBundle/Resources/config/routing/fos_rest.yml
  68. +13 −0 src/Knp/IpsumBundle/Resources/config/routing/gedmo_extensions.yml
  69. +7 −0 src/Knp/IpsumBundle/Resources/config/routing/jms_securityextra.yml
  70. +3 −0 src/Knp/IpsumBundle/Resources/config/routing/knp_menu.yml
  71. +3 −0 src/Knp/IpsumBundle/Resources/config/routing/pagerfanta.yml
  72. +19 −0 src/Knp/IpsumBundle/Resources/config/routing/secured.yml
  73. +7 −0 src/Knp/IpsumBundle/Resources/config/routing/swiftmailer.yml
  74. +20 −0 src/Knp/IpsumBundle/Resources/config/services.xml
  75. +93 −0 src/Knp/IpsumBundle/Resources/public/css/ipsum.css
  76. BIN src/Knp/IpsumBundle/Resources/public/images/edgar-in-black.jpg
  77. BIN src/Knp/IpsumBundle/Resources/public/images/field-background.gif
  78. BIN src/Knp/IpsumBundle/Resources/public/images/knpipsum.jpg
  79. BIN src/Knp/IpsumBundle/Resources/public/images/nav-item-bg.png
  80. +8 −0 src/Knp/IpsumBundle/Resources/public/js/assetic-demo-0.js
  81. +7 −0 src/Knp/IpsumBundle/Resources/public/js/assetic-demo-1.js
  82. +5 −0 src/Knp/IpsumBundle/Resources/translations/messages.en.yml
  83. +30 −0 src/Knp/IpsumBundle/Resources/views/Assetic/index.html.twig
  84. +17 −0 src/Knp/IpsumBundle/Resources/views/AvalancheImagine/index.html.twig
  85. +11 −0 src/Knp/IpsumBundle/Resources/views/DoctrineOrm/create.html.twig
  86. +29 −0 src/Knp/IpsumBundle/Resources/views/DoctrineOrm/custom_repository.html.twig
  87. +10 −0 src/Knp/IpsumBundle/Resources/views/DoctrineOrm/delete.html.twig
  88. +21 −0 src/Knp/IpsumBundle/Resources/views/DoctrineOrm/index.html.twig
  89. +15 −0 src/Knp/IpsumBundle/Resources/views/DoctrineOrm/layout.html.twig
  90. +25 −0 src/Knp/IpsumBundle/Resources/views/FOSRest/index.html.twig
  91. +14 −0 src/Knp/IpsumBundle/Resources/views/Form/contact.html.twig
  92. +11 −0 src/Knp/IpsumBundle/Resources/views/GedmoExtensions/create.html.twig
  93. +25 −0 src/Knp/IpsumBundle/Resources/views/GedmoExtensions/index.html.twig
  94. +14 −0 src/Knp/IpsumBundle/Resources/views/GedmoExtensions/layout.html.twig
  95. +11 −0 src/Knp/IpsumBundle/Resources/views/GedmoExtensions/update.html.twig
  96. +11 −0 src/Knp/IpsumBundle/Resources/views/JMSSecurityExtra/admin.html.twig
  97. +11 −0 src/Knp/IpsumBundle/Resources/views/JMSSecurityExtra/index.html.twig
  98. +15 −0 src/Knp/IpsumBundle/Resources/views/KnpMenu/index.html.twig
  99. +24 −0 src/Knp/IpsumBundle/Resources/views/Pagerfanta/index.html.twig
  100. +7 −0 src/Knp/IpsumBundle/Resources/views/Secured/admin.html.twig
  101. +11 −0 src/Knp/IpsumBundle/Resources/views/Secured/index.html.twig
  102. +9 −0 src/Knp/IpsumBundle/Resources/views/Secured/layout.html.twig
  103. +30 −0 src/Knp/IpsumBundle/Resources/views/Secured/login.html.twig
  104. +11 −0 src/Knp/IpsumBundle/Resources/views/SensioFrameworkExtra/index.html.twig
  105. +23 −0 src/Knp/IpsumBundle/Resources/views/Summary/index.html.twig
  106. +7 −0 src/Knp/IpsumBundle/Resources/views/SwiftMailer/email.html.twig
  107. +7 −0 src/Knp/IpsumBundle/Resources/views/SwiftMailer/email.txt.twig
  108. +15 −0 src/Knp/IpsumBundle/Resources/views/SwiftMailer/index.html.twig
  109. +13 −0 src/Knp/IpsumBundle/Resources/views/SwiftMailer/send.html.twig
  110. +53 −0 src/Knp/IpsumBundle/Resources/views/Twig/hello.html.twig
  111. +1 −0 src/Knp/IpsumBundle/Resources/views/Twig/included.html.twig
  112. +51 −0 src/Knp/IpsumBundle/Resources/views/layout.html.twig
  113. +54 −0 src/Knp/IpsumBundle/Serializer/Normalizer/DateTimeNormalizer.php
  114. +17 −0 src/Knp/IpsumBundle/Tests/Controller/IpsumControllerTest.php
  115. +81 −0 src/Knp/IpsumBundle/Twig/Extension/IpsumExtension.php
  116. +1 −0 vendor/Zend/Http
  117. +1 −0 vendor/Zend/Tool
  118. +1 −0 vendor/Zend/Uri
  119. +1 −0 vendor/Zend/Validator
  120. +1 −0 vendor/assetic
  121. +1 −0 vendor/behat/behat
  122. +1 −0 vendor/behat/gherkin
  123. +1 −0 vendor/behat/mink
  124. +1 −0 vendor/bundles/Avalanche/Bundle/ImagineBundle
  125. +1 −0 vendor/bundles/Behat/BehatBundle
  126. +1 −0 vendor/bundles/Behat/MinkBundle
  127. +1 −0 vendor/bundles/FOS/RestBundle
  128. +1 −0 vendor/bundles/JMS/SecurityExtraBundle
  129. +1 −0 vendor/bundles/Knp/Bundle/MenuBundle
  130. +1 −0 vendor/bundles/Sensio/Bundle/FrameworkExtraBundle
  131. +1 −0 vendor/bundles/Sensio/Bundle/GeneratorBundle
  132. +1 −0 vendor/bundles/Sonata/AdminBundle
  133. +1 −0 vendor/bundles/Sonata/BluePrintBundle
  134. +1 −0 vendor/bundles/Sonata/jQueryBundle
  135. +1 −0 vendor/bundles/Stof/DoctrineExtensionsBundle
  136. +1 −0 vendor/bundles/Symfony/Bundle/AsseticBundle
  137. +1 −0 vendor/bundles/Symfony/Bundle/DoctrineFixturesBundle
  138. +1 −0 vendor/bundles/Symfony/Bundle/DoctrineMigrationsBundle
  139. +1 −0 vendor/bundles/WhiteOctober/PagerfantaBundle
  140. +1 −0 vendor/doctrine
  141. +1 −0 vendor/doctrine-common
  142. +1 −0 vendor/doctrine-data-fixtures
  143. +1 −0 vendor/doctrine-dbal
  144. +1 −0 vendor/doctrine-migrations
  145. +1 −0 vendor/gedmo-doctrine-extensions
  146. +1 −0 vendor/goutte
  147. +1 −0 vendor/imagine
  148. +1 −0 vendor/metadata
  149. +1 −0 vendor/monolog
  150. +1 −0 vendor/pagerfanta
  151. +1 −0 vendor/swiftmailer
  152. +1 −0 vendor/symfony
  153. +1 −0 vendor/twig
  154. +1 −0 vendor/twig-extensions
  155. +1 −0 vendor/zend-registry
  156. +5 −0 web/.htaccess
  157. +13 −0 web/app.php
  158. +20 −0 web/app_dev.php
  159. +20 −0 web/app_test.php
  160. +201 −0 web/config.php
  161. BIN web/favicon.ico
  162. BIN web/favicon.png
  163. +4 −0 web/robots.txt
@@ -0,0 +1,6 @@
+web/bundles/
+web/imagine/
+app/cache/*
+app/logs/*
+build/
+app/config/config_*_local.yml
@@ -0,0 +1,123 @@
+[submodule "vendor/symfony"]
+ path = vendor/symfony
+ url = http://github.com/symfony/symfony.git
+[submodule "vendor/twig"]
+ path = vendor/twig
+ url = http://github.com/fabpot/Twig.git
+[submodule "vendor/twig-extensions"]
+ path = vendor/twig-extensions
+ url = http://github.com/fabpot/Twig-extensions.git
+[submodule "vendor/monolog"]
+ path = vendor/monolog
+ url = http://github.com/Seldaek/monolog.git
+[submodule "vendor/doctrine-common"]
+ path = vendor/doctrine-common
+ url = http://github.com/doctrine/common.git
+[submodule "vendor/doctrine-dbal"]
+ path = vendor/doctrine-dbal
+ url = http://github.com/doctrine/dbal.git
+[submodule "vendor/doctrine"]
+ path = vendor/doctrine
+ url = http://github.com/doctrine/doctrine2.git
+[submodule "vendor/swiftmailer"]
+ path = vendor/swiftmailer
+ url = http://github.com/swiftmailer/swiftmailer.git
+[submodule "vendor/assetic"]
+ path = vendor/assetic
+ url = http://github.com/kriswallsmith/assetic.git
+[submodule "vendor/metadata"]
+ path = vendor/metadata
+ url = http://github.com/schmittjoh/metadata.git
+[submodule "vendor/bundles/Sensio/Bundle/FrameworkExtraBundle"]
+ path = vendor/bundles/Sensio/Bundle/FrameworkExtraBundle
+ url = http://github.com/sensio/SensioFrameworkExtraBundle.git
+[submodule "vendor/bundles/JMS/SecurityExtraBundle"]
+ path = vendor/bundles/JMS/SecurityExtraBundle
+ url = http://github.com/schmittjoh/JMSSecurityExtraBundle.git
+[submodule "vendor/bundles/Sensio/Bundle/GeneratorBundle"]
+ path = vendor/bundles/Sensio/Bundle/GeneratorBundle
+ url = http://github.com/sensio/SensioGeneratorBundle.git
+[submodule "vendor/bundles/Symfony/Bundle/AsseticBundle"]
+ path = vendor/bundles/Symfony/Bundle/AsseticBundle
+ url = http://github.com/symfony/AsseticBundle.git
+[submodule "vendor/bundles/Knplabs/Bundle/MenuBundle"]
+ path = vendor/bundles/Knplabs/Bundle/MenuBundle
+ url = http://github.com/knplabs/MenuBundle.git
+[submodule "vendor/imagine"]
+ path = vendor/imagine
+ url = http://github.com/avalanche123/Imagine.git
+[submodule "vendor/bundles/Avalanche/Bundle/ImagineBundle"]
+ path = vendor/bundles/Avalanche/Bundle/ImagineBundle
+ url = http://github.com/avalanche123/AvalancheImagineBundle.git
+[submodule "vendor/behat/behat"]
+ path = vendor/behat/behat
+ url = http://github.com/Behat/Behat.git
+[submodule "vendor/behat/gherkin"]
+ path = vendor/behat/gherkin
+ url = http://github.com/Behat/Gherkin.git
+[submodule "vendor/bundles/Behat/BehatBundle"]
+ path = vendor/bundles/Behat/BehatBundle
+ url = http://github.com/Behat/BehatBundle.git
+[submodule "vendor/behat/mink"]
+ path = vendor/behat/mink
+ url = http://github.com/Behat/Mink.git
+[submodule "vendor/bundles/Behat/MinkBundle"]
+ path = vendor/bundles/Behat/MinkBundle
+ url = http://github.com/Behat/MinkBundle.git
+[submodule "vendor/doctrine-data-fixtures"]
+ path = vendor/doctrine-data-fixtures
+ url = http://github.com/doctrine/data-fixtures.git
+[submodule "vendor/bundles/Symfony/Bundle/DoctrineFixturesBundle"]
+ path = vendor/bundles/Symfony/Bundle/DoctrineFixturesBundle
+ url = http://github.com/symfony/DoctrineFixturesBundle.git
+[submodule "vendor/doctrine-migrations"]
+ path = vendor/doctrine-migrations
+ url = http://github.com/doctrine/migrations.git
+[submodule "vendor/bundles/Symfony/Bundle/DoctrineMigrationsBundle"]
+ path = vendor/bundles/Symfony/Bundle/DoctrineMigrationsBundle
+ url = http://github.com/symfony/DoctrineMigrationsBundle.git
+[submodule "vendor/goutte"]
+ path = vendor/goutte
+ url = http://github.com/fabpot/Goutte.git
+[submodule "vendor/gedmo-doctrine-extensions"]
+ path = vendor/gedmo-doctrine-extensions
+ url = http://github.com/l3pp4rd/DoctrineExtensions.git
+[submodule "vendor/bundles/Stof/DoctrineExtensionsBundle"]
+ path = vendor/bundles/Stof/DoctrineExtensionsBundle
+ url = http://github.com/stof/StofDoctrineExtensionsBundle.git
+[submodule "vendor/bundles/Knp/Bundle/MenuBundle"]
+ path = vendor/bundles/Knp/Bundle/MenuBundle
+ url = git://github.com/knplabs/KnpMenuBundle.git
+[submodule "vendor/Zend/Tool"]
+ path = vendor/Zend/Tool
+ url = http://github.com/knplabs/zend-tool
+[submodule "vendor/Zend/Validator"]
+ path = vendor/Zend/Validator
+ url = http://github.com/knplabs/zend-validator.git
+[submodule "vendor/Zend/Uri"]
+ path = vendor/Zend/Uri
+ url = http://github.com/knplabs/zend-uri.git
+[submodule "vendor/Zend/Http"]
+ path = vendor/Zend/Http
+ url = http://github.com/knplabs/zend-http.git
+[submodule "vendor/zend-registry"]
+ path = vendor/zend-registry
+ url = http://github.com/knplabs/zend-registry.git
+[submodule "vendor/bundles/FOS/RestBundle"]
+ path = vendor/bundles/FOS/RestBundle
+ url = http://github.com/FriendsOfSymfony/FOSRestBundle.git
+[submodule "vendor/pagerfanta"]
+ path = vendor/pagerfanta
+ url = http://github.com/whiteoctober/Pagerfanta.git
+[submodule "vendor/bundles/WhiteOctober/PagerfantaBundle"]
+ path = vendor/bundles/WhiteOctober/PagerfantaBundle
+ url = http://github.com/whiteoctober/WhiteOctoberPagerfantaBundle.git
+[submodule "vendor/bundles/Sonata/AdminBundle"]
+ path = vendor/bundles/Sonata/AdminBundle
+ url = http://github.com/sonata-project/SonataAdminBundle.git
+[submodule "vendor/bundles/Sonata/BluePrintBundle"]
+ path = vendor/bundles/Sonata/BluePrintBundle
+ url = http://github.com/sonata-project/SonataBluePrintBundle.git
+[submodule "vendor/bundles/Sonata/jQueryBundle"]
+ path = vendor/bundles/Sonata/jQueryBundle
+ url = http://github.com/sonata-project/SonatajQueryBundle.git
@@ -0,0 +1,20 @@
+Copyright (c) 2004-2011 Fabien Potencier
+Copyright (c) 2011 KnpLabs
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
@@ -0,0 +1,88 @@
+KnpIpsum: a demo Symfony2 application
+=====================================
+
+KnpIpsum is a demo application using the most successful bundles. It lets you
+discover some of their features and shows you the code used to achieve the
+result.
+
+So it's not exactly the Symfony2 tutorial we wanted first but rather a
+comprehensive set of examples.
+
+The demo is available online at http://knpipsum.knplabs.com
+
+Browse the code on [github](https://github.com/knplabs/KnpIpsum-for-symfony).
+
+Requirements
+------------
+
+* You will need [git](http://git-scm.com/download) to get the project
+* Check Symfony2 requirements
+
+Installation
+------------
+
+ git submodule update --init
+
+To install the assets in the web folder, launch the following commands:
+
+ php app/console assets:install web
+ php app/console --env=prod --no-debug assetic:dump
+
+Configuration
+-------------
+
+Should you need to overwrite the values used in the provided configuration,
+you can configure the project by creating a `app/config/config_dev_local.yml`
+and `app/config/config_prod_local.yml`.
+
+To do that, just copy the corresponding `.dist` files.
+
+Doctrine ORM
+------------
+
+To create the database launch the following commands:
+
+ php app/console doctrine:database:create
+ php app/console doctrine:schema:create
+
+Note:
+ The first command requires to have enough rights for your MySQL user
+ to create the database. If it is not the case, create an empty database
+ by hand and use the second command to create the tables.
+
+
+DoctrineFixturesBundle
+----------------------
+
+To load the fixtures (default location in `src/Knp/IpsumBundle/DataFixtures/ORM`),
+use the following command:
+
+ php app/console doctrine:fixtures:load
+
+BehatBundle
+-----------
+
+To launch behat tests (located in the bundle Features directory):
+
+ php app/console --env=test behat:bundle KnpIpsumBundle
+
+Swift Mailer
+------------
+
+To be able to send emails, please configure it in your local config. By default
+it will look for a SMTP server on localhost without authentication.
+
+Test it
+-------
+
+The main page of the application is configured at `/ipsum`. Access it via
+`web/app_dev.php/ipsum`.
+
+Reporting an issue
+------------------
+
+If you have some issue with KnpIpsum or if your bundle is not presented
+the good way in the demo, please open a ticket on the
+[github issue tracker](https://github.com/knplabs/KnpIpsum-for-symfony/issues)
+
+Enjoy!
@@ -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,70 @@
+<?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\DoctrineBundle\DoctrineBundle(),
+ new Symfony\Bundle\DoctrineMigrationsBundle\DoctrineMigrationsBundle(),
+ new Symfony\Bundle\DoctrineFixturesBundle\DoctrineFixturesBundle(),
+ new Symfony\Bundle\AsseticBundle\AsseticBundle(),
+ new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
+ new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
+ new Avalanche\Bundle\ImagineBundle\AvalancheImagineBundle(),
+ new Knp\Bundle\MenuBundle\KnpMenuBundle(),
+ new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
+ new FOS\RestBundle\FOSRestBundle(),
+ new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
+ new Sonata\jQueryBundle\SonatajQueryBundle(),
+ new Sonata\BluePrintBundle\SonataBluePrintBundle(),
+ new Sonata\AdminBundle\SonataAdminBundle(),
+ new Knp\IpsumBundle\KnpIpsumBundle(),
+ );
+
+ if (in_array($this->getEnvironment(), array('dev', 'test'))) {
+ $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
+ $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
+ }
+
+ if ('test' === $this->getEnvironment()) {
+ $bundles[] = new Behat\MinkBundle\BehatMinkBundle();
+ $bundles[] = new Behat\BehatBundle\BehatBundle();
+ }
+
+ return $bundles;
+ }
+
+ public function registerContainerConfiguration(LoaderInterface $loader)
+ {
+ $loader->load($this->getLocalConfigurationFile($this->getEnvironment()));
+ }
+
+ /**
+ * Returns the config_{environment}_local.yml file or
+ * the default config_{environment}.yml if it does not exist.
+ * Useful to override development password.
+ *
+ * @param string Environment
+ * @return The configuration file path
+ */
+ protected function getLocalConfigurationFile($environment)
+ {
+ $basePath = __DIR__.'/config/config_';
+ $file = $basePath.$environment.'_local.yml';
+
+ if(\file_exists($file)) {
+ return $file;
+ }
+
+ return $basePath.$environment.'.yml';
+ }
+}
@@ -0,0 +1,15 @@
+{#
+
+This file is part of the Sonata package.
+
+(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.
+
+#}
+
+{% extends 'SonataAdminBundle:CRUD:base_view_field.html.twig' %}
+
+{# This template should be removed once https://github.com/sonata-project/SonataAdminBundle/pull/187 is merged #}
+{% block value %}{{ value|date }}{% endblock %}
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>{% block title %}Summary{% endblock %}</title>
+ {% block stylesheets %}{% endblock %}
+ <link rel="shortcut icon" href="{{ asset('favicon.ico') }}" />
+ </head>
+ <body>
+ {% block body %}{% endblock %}
+ {% block javascripts %}{% endblock %}
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit cfa10b7

Please sign in to comment.