Skip to content

Commit

Permalink
made initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 7, 2011
0 parents commit db5b6be
Show file tree
Hide file tree
Showing 52 changed files with 1,648 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
@@ -0,0 +1,6 @@
web/bundles/
app/bootstrap*
app/cache/*
app/logs/*
build/
vendor/
19 changes: 19 additions & 0 deletions LICENSE
@@ -0,0 +1,19 @@
Copyright (c) 2004-2010 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.
67 changes: 67 additions & 0 deletions README
@@ -0,0 +1,67 @@
Symfony Standard Edition
========================

What's inside?
--------------

Symfony Standard Edition comes pre-configured with the following bundles:

* FrameworkBundle
* SensioFrameworkExtraBundle
* DoctrineBundle
* TwigBundle
* SwiftmailerBundle
* ZendBundle
* AsseticBundle
* WebProfilerBundle (in dev/test env)
* SymfonyWebConfiguratorBundle (in dev/test env)
* AcmeDemoBundle (in dev/test env)

Installation from an Archive
----------------------------

If you have downloaded an archive, unpack it somewhere under your web server
root directory.

If you have downloaded an archive without the vendors, run the
`bin/vendors.sh` script (`git` must be installed on your machine). If you
don't have git, download the version with the vendors included.

Installation from Git
---------------------

Run the following scripts:

* `bin/vendors.sh`
* `bin/build_bootstrap.php`
* `app/console assets:install web/`

Configuration
-------------

Check that everything is working fine by going to the `config.php` page in a
browser and follow the instructions.

The distribution 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.

A default bundle, `AcmeDemoBundle`, shows you Symfony2 in action. It's only
available in the `dev` environment. After playing with it, you can remove it
by deleting the `src/Acme` directory and removing the routing entry in
`app/config/routing_dev.yml`.

Configure the distribution by editing `app/config/parameters.ini` or by
accessing `/web/config.php` in a browser.

A simple controller is configured at `/hello/{name}`. Access it via
`web/app_dev.php/_demo/hello/Fabien`.

If you want to use the CLI, a console application is available at
`app/console`. Check first that your PHP is correctly configured for the CLI
by running `app/check.php`.

Enjoy!
1 change: 1 addition & 0 deletions VERSION
@@ -0,0 +1 @@
2.0.0PR7
1 change: 1 addition & 0 deletions app/.htaccess
@@ -0,0 +1 @@
deny from all
9 changes: 9 additions & 0 deletions app/AppCache.php
@@ -0,0 +1,9 @@
<?php

require_once __DIR__.'/AppKernel.php';

use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;

class AppCache extends HttpCache
{
}
38 changes: 38 additions & 0 deletions app/AppKernel.php
@@ -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\TwigBundle\TwigBundle(),
new Symfony\Bundle\ZendBundle\ZendBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Symfony\Bundle\DoctrineBundle\DoctrineBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
);

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Symfony\Bundle\WebConfiguratorBundle\SymfonyWebConfiguratorBundle();
$bundles[] = new Acme\DemoBundle\AcmeDemoBundle();
}

return $bundles;
}

public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
}

public function registerRootDir()
{
return __DIR__;
}
}
25 changes: 25 additions & 0 deletions app/autoload.php
@@ -0,0 +1,25 @@
<?php

use Symfony\Component\ClassLoader\UniversalClassLoader;

$loader = new UniversalClassLoader();
$loader->registerNamespaces(array(
'Symfony' => array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'),
'Sensio' => __DIR__.'/../vendor/bundles',
'Doctrine\\Common\\DataFixtures' => __DIR__.'/../vendor/doctrine-data-fixtures/lib',
'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib',
'Doctrine\\DBAL\\Migrations' => __DIR__.'/../vendor/doctrine-migrations/lib',
'Doctrine\\MongoDB' => __DIR__.'/../vendor/doctrine-mongodb/lib',
'Doctrine\\ODM\\MongoDB' => __DIR__.'/../vendor/doctrine-mongodb-odm/lib',
'Doctrine\\DBAL' => __DIR__.'/../vendor/doctrine-dbal/lib',
'Doctrine' => __DIR__.'/../vendor/doctrine/lib',
'Zend\\Log' => __DIR__.'/../vendor/zend-log',
'Assetic' => __DIR__.'/../vendor/assetic/src',
'Acme' => __DIR__.'/../src',
));
$loader->registerPrefixes(array(
'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
'Twig_' => __DIR__.'/../vendor/twig/lib',
'Swift_' => __DIR__.'/../vendor/swiftmailer/lib/classes',
));
$loader->register();
Empty file added app/cache/.gitkeep
Empty file.

0 comments on commit db5b6be

Please sign in to comment.