Permalink
Browse files

init project, install symfony2.2

  • Loading branch information...
0 parents commit 519b0277d1823c11898dc6d0750e7edf01a17eab Florian Pondepeyre committed Mar 7, 2013
Showing with 3,910 additions and 0 deletions.
  1. +10 −0 .gitignore
  2. +10 −0 .travis.yml
  3. +19 −0 LICENSE
  4. +174 −0 README.md
  5. +24 −0 UPGRADE-2.2.md
  6. +268 −0 UPGRADE.md
  7. +1 −0 app/.htaccess
  8. +9 −0 app/AppCache.php
  9. +38 −0 app/AppKernel.php
  10. +13 −0 app/Resources/views/base.html.twig
  11. +669 −0 app/SymfonyRequirements.php
  12. +14 −0 app/autoload.php
  13. +55 −0 app/check.php
  14. +65 −0 app/config/config.yml
  15. +29 −0 app/config/config_dev.yml
  16. +27 −0 app/config/config_prod.yml
  17. +16 −0 app/config/config_test.yml
  18. +15 −0 app/config/parameters.yml
  19. 0 app/config/routing.yml
  20. +27 −0 app/config/routing_dev.yml
  21. +42 −0 app/config/security.yml
  22. +22 −0 app/console
  23. +41 −0 app/phpunit.xml.dist
  24. +47 −0 composer.json
  25. +1,425 −0 composer.lock
  26. +1 −0 src/.htaccess
  27. +9 −0 src/Acme/DemoBundle/AcmeDemoBundle.php
  28. +57 −0 src/Acme/DemoBundle/Controller/DemoController.php
  29. +69 −0 src/Acme/DemoBundle/Controller/SecuredController.php
  30. +19 −0 src/Acme/DemoBundle/Controller/WelcomeController.php
  31. +22 −0 src/Acme/DemoBundle/DependencyInjection/AcmeDemoExtension.php
  32. +25 −0 src/Acme/DemoBundle/EventListener/ControllerListener.php
  33. +20 −0 src/Acme/DemoBundle/Form/ContactType.php
  34. +18 −0 src/Acme/DemoBundle/Resources/config/services.xml
  35. +101 −0 src/Acme/DemoBundle/Resources/public/css/demo.css
  36. BIN src/Acme/DemoBundle/Resources/public/images/blue-arrow.png
  37. BIN src/Acme/DemoBundle/Resources/public/images/field-background.gif
  38. BIN src/Acme/DemoBundle/Resources/public/images/logo.gif
  39. BIN src/Acme/DemoBundle/Resources/public/images/search.png
  40. BIN src/Acme/DemoBundle/Resources/public/images/welcome-configure.gif
  41. BIN src/Acme/DemoBundle/Resources/public/images/welcome-demo.gif
  42. BIN src/Acme/DemoBundle/Resources/public/images/welcome-quick-tour.gif
  43. +15 −0 src/Acme/DemoBundle/Resources/views/Demo/contact.html.twig
  44. +9 −0 src/Acme/DemoBundle/Resources/views/Demo/hello.html.twig
  45. +14 −0 src/Acme/DemoBundle/Resources/views/Demo/index.html.twig
  46. +11 −0 src/Acme/DemoBundle/Resources/views/Secured/hello.html.twig
  47. +9 −0 src/Acme/DemoBundle/Resources/views/Secured/helloadmin.html.twig
  48. +6 −0 src/Acme/DemoBundle/Resources/views/Secured/layout.html.twig
  49. +35 −0 src/Acme/DemoBundle/Resources/views/Secured/login.html.twig
  50. +83 −0 src/Acme/DemoBundle/Resources/views/Welcome/index.html.twig
  51. +37 −0 src/Acme/DemoBundle/Resources/views/layout.html.twig
  52. +17 −0 src/Acme/DemoBundle/Tests/Controller/DemoControllerTest.php
  53. +81 −0 src/Acme/DemoBundle/Twig/Extension/DemoExtension.php
  54. +10 −0 web/.htaccess
  55. +26 −0 web/app.php
  56. +28 −0 web/app_dev.php
  57. BIN web/apple-touch-icon.png
  58. +124 −0 web/config.php
  59. BIN web/favicon.ico
  60. +4 −0 web/robots.txt
@@ -0,0 +1,10 @@
+/web/bundles/
+/app/bootstrap.php.cache
+/app/cache/*
+/app/logs/*
+/build/
+/vendor/
+/bin/
+/composer.phar
+
+.idea
@@ -0,0 +1,10 @@
+language: php
+
+php:
+ - 5.3.3
+ - 5.3
+ - 5.4
+
+before_script: composer install
+
+script: phpunit -c app
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2004-2013 Fabien Potencier
+
+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.
174 README.md
@@ -0,0 +1,174 @@
+Symfony Standard Edition
+========================
+
+Welcome to the Symfony Standard Edition - a fully-functional Symfony2
+application that you can use as the skeleton for your new applications.
+
+This document contains information on how to download, install, and start
+using Symfony. For a more detailed explanation, see the [Installation][1]
+chapter of the Symfony Documentation.
+
+1) Installing the Standard Edition
+----------------------------------
+
+When it comes to installing the Symfony Standard Edition, you have the
+following options.
+
+### Use Composer (*recommended*)
+
+As Symfony uses [Composer][2] to manage its dependencies, the recommended way
+to create a new project is to use it.
+
+If you don't have Composer yet, download it following the instructions on
+http://getcomposer.org/ or just run the following command:
+
+ curl -s http://getcomposer.org/installer | php
+
+Then, use the `create-project` command to generate a new Symfony application:
+
+ php composer.phar create-project symfony/framework-standard-edition path/to/install
+
+Composer will install Symfony and all its dependencies under the
+`path/to/install` directory.
+
+### Download an Archive File
+
+To quickly test Symfony, you can also download an [archive][3] of the Standard
+Edition and unpack it somewhere under your web server root directory.
+
+If you downloaded an archive "without vendors", you also need to install all
+the necessary dependencies. Download composer (see above) and run the
+following command:
+
+ php composer.phar install
+
+2) Checking your System Configuration
+-------------------------------------
+
+Before starting coding, make sure that your local system is properly
+configured for Symfony.
+
+Execute the `check.php` script from the command line:
+
+ php app/check.php
+
+Access the `config.php` script from a browser:
+
+ http://localhost/path/to/symfony/app/web/config.php
+
+If you get any warnings or recommendations, fix them before moving on.
+
+3) Browsing the Demo Application
+--------------------------------
+
+Congratulations! You're now ready to use Symfony.
+
+From the `config.php` page, click the "Bypass configuration and go to the
+Welcome page" link to load up your first Symfony page.
+
+You can also use a web-based configurator by clicking on the "Configure your
+Symfony Application online" link of the `config.php` page.
+
+To see a real-live Symfony page in action, access the following page:
+
+ web/app_dev.php/demo/hello/Fabien
+
+4) Getting started with Symfony
+-------------------------------
+
+This distribution is meant to be the starting point for your Symfony
+applications, but it also contains some sample code that you can learn from
+and play with.
+
+A great way to start learning Symfony is via the [Quick Tour][4], which will
+take you through all the basic features of Symfony2.
+
+Once you're feeling good, you can move onto reading the official
+[Symfony2 book][5].
+
+A default bundle, `AcmeDemoBundle`, shows you Symfony2 in action. After
+playing with it, you can remove it by following these steps:
+
+ * delete the `src/Acme` directory;
+
+ * remove the routing entries referencing AcmeBundle in
+ `app/config/routing_dev.yml`;
+
+ * remove the AcmeBundle from the registered bundles in `app/AppKernel.php`;
+
+ * remove the `web/bundles/acmedemo` directory;
+
+ * remove the `security.providers`, `security.firewalls.login` and
+ `security.firewalls.secured_area` entries in the `security.yml` file or
+ tweak the security configuration to fit your needs.
+
+What's inside?
+---------------
+
+The Symfony Standard Edition is configured with the following defaults:
+
+ * Twig is the only configured template engine;
+
+ * Doctrine ORM/DBAL is configured;
+
+ * Swiftmailer is configured;
+
+ * Annotations for everything are enabled.
+
+It comes pre-configured with the following bundles:
+
+ * **FrameworkBundle** - The core Symfony framework bundle
+
+ * [**SensioFrameworkExtraBundle**][6] - Adds several enhancements, including
+ template and routing annotation capability
+
+ * [**DoctrineBundle**][7] - Adds support for the Doctrine ORM
+
+ * [**TwigBundle**][8] - Adds support for the Twig templating engine
+
+ * [**SecurityBundle**][9] - Adds security by integrating Symfony's security
+ component
+
+ * [**SwiftmailerBundle**][10] - Adds support for Swiftmailer, a library for
+ sending emails
+
+ * [**MonologBundle**][11] - Adds support for Monolog, a logging library
+
+ * [**AsseticBundle**][12] - Adds support for Assetic, an asset processing
+ library
+
+ * [**JMSSecurityExtraBundle**][13] - Allows security to be added via
+ annotations
+
+ * [**JMSDiExtraBundle**][14] - Adds more powerful dependency injection
+ features
+
+ * **WebProfilerBundle** (in dev/test env) - Adds profiling functionality and
+ the web debug toolbar
+
+ * **SensioDistributionBundle** (in dev/test env) - Adds functionality for
+ configuring and working with Symfony distributions
+
+ * [**SensioGeneratorBundle**][15] (in dev/test env) - Adds code generation
+ capabilities
+
+ * **AcmeDemoBundle** (in dev/test env) - A demo bundle with some example
+ code
+
+Enjoy!
+
+[1]: http://symfony.com/doc/2.1/book/installation.html
+[2]: http://getcomposer.org/
+[3]: http://symfony.com/download
+[4]: http://symfony.com/doc/2.1/quick_tour/the_big_picture.html
+[5]: http://symfony.com/doc/2.1/index.html
+[6]: http://symfony.com/doc/2.1/bundles/SensioFrameworkExtraBundle/index.html
+[7]: http://symfony.com/doc/2.1/book/doctrine.html
+[8]: http://symfony.com/doc/2.1/book/templating.html
+[9]: http://symfony.com/doc/2.1/book/security.html
+[10]: http://symfony.com/doc/2.1/cookbook/email.html
+[11]: http://symfony.com/doc/2.1/cookbook/logging/monolog.html
+[12]: http://symfony.com/doc/2.1/cookbook/assetic/asset_management.html
+[13]: http://jmsyst.com/bundles/JMSSecurityExtraBundle/master
+[14]: http://jmsyst.com/bundles/JMSDiExtraBundle/master
+[15]: http://symfony.com/doc/2.1/bundles/SensioGeneratorBundle/index.html
@@ -0,0 +1,24 @@
+UPGRADE FROM 2.1 to 2.2
+=======================
+
+ * The ``_internal`` route is not used any more. It should then be removed
+ from both your routing and security configurations. A ``fragments`` key has
+ been added to the framework configuration and must be specified when ESI or
+ Hinclude are in use. No security configuration is required for this path as
+ by default ESI access is only permitted for trusted hosts and Hinclude
+ access uses an URL signing mechanism.
+
+ ```
+ framework:
+ # ...
+ fragments: { path: /_proxy }
+ ```
+
+Functional Tests
+----------------
+
+ * The profiler has been disabled by default in the test environment. You can
+ enable it again by modifying the ``config_test.yml`` configuration file or
+ even better, you can just enable it for the very next request by calling
+ ``$client->enableProfiler()`` when you need the profiler in a test (that
+ speeds up functional tests quite a bit).
Oops, something went wrong.

0 comments on commit 519b027

Please sign in to comment.