Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit db5b6be

Browse files
committed
made initial import
0 parents  commit db5b6be

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1648
-0
lines changed

Diff for: .gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
web/bundles/
2+
app/bootstrap*
3+
app/cache/*
4+
app/logs/*
5+
build/
6+
vendor/

Diff for: LICENSE

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2004-2010 Fabien Potencier
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is furnished
8+
to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

Diff for: README

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
Symfony Standard Edition
2+
========================
3+
4+
What's inside?
5+
--------------
6+
7+
Symfony Standard Edition comes pre-configured with the following bundles:
8+
9+
* FrameworkBundle
10+
* SensioFrameworkExtraBundle
11+
* DoctrineBundle
12+
* TwigBundle
13+
* SwiftmailerBundle
14+
* ZendBundle
15+
* AsseticBundle
16+
* WebProfilerBundle (in dev/test env)
17+
* SymfonyWebConfiguratorBundle (in dev/test env)
18+
* AcmeDemoBundle (in dev/test env)
19+
20+
Installation from an Archive
21+
----------------------------
22+
23+
If you have downloaded an archive, unpack it somewhere under your web server
24+
root directory.
25+
26+
If you have downloaded an archive without the vendors, run the
27+
`bin/vendors.sh` script (`git` must be installed on your machine). If you
28+
don't have git, download the version with the vendors included.
29+
30+
Installation from Git
31+
---------------------
32+
33+
Run the following scripts:
34+
35+
* `bin/vendors.sh`
36+
* `bin/build_bootstrap.php`
37+
* `app/console assets:install web/`
38+
39+
Configuration
40+
-------------
41+
42+
Check that everything is working fine by going to the `config.php` page in a
43+
browser and follow the instructions.
44+
45+
The distribution is configured with the following defaults:
46+
47+
* Twig is the only configured template engine;
48+
* Doctrine ORM/DBAL is configured;
49+
* Swiftmailer is configured;
50+
* Annotations for everything are enabled.
51+
52+
A default bundle, `AcmeDemoBundle`, shows you Symfony2 in action. It's only
53+
available in the `dev` environment. After playing with it, you can remove it
54+
by deleting the `src/Acme` directory and removing the routing entry in
55+
`app/config/routing_dev.yml`.
56+
57+
Configure the distribution by editing `app/config/parameters.ini` or by
58+
accessing `/web/config.php` in a browser.
59+
60+
A simple controller is configured at `/hello/{name}`. Access it via
61+
`web/app_dev.php/_demo/hello/Fabien`.
62+
63+
If you want to use the CLI, a console application is available at
64+
`app/console`. Check first that your PHP is correctly configured for the CLI
65+
by running `app/check.php`.
66+
67+
Enjoy!

Diff for: VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.0.0PR7

Diff for: app/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deny from all

Diff for: app/AppCache.php

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
require_once __DIR__.'/AppKernel.php';
4+
5+
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
6+
7+
class AppCache extends HttpCache
8+
{
9+
}

Diff for: app/AppKernel.php

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
use Symfony\Component\HttpKernel\Kernel;
4+
use Symfony\Component\Config\Loader\LoaderInterface;
5+
6+
class AppKernel extends Kernel
7+
{
8+
public function registerBundles()
9+
{
10+
$bundles = array(
11+
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
12+
new Symfony\Bundle\TwigBundle\TwigBundle(),
13+
new Symfony\Bundle\ZendBundle\ZendBundle(),
14+
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
15+
new Symfony\Bundle\DoctrineBundle\DoctrineBundle(),
16+
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
17+
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
18+
);
19+
20+
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
21+
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
22+
$bundles[] = new Symfony\Bundle\WebConfiguratorBundle\SymfonyWebConfiguratorBundle();
23+
$bundles[] = new Acme\DemoBundle\AcmeDemoBundle();
24+
}
25+
26+
return $bundles;
27+
}
28+
29+
public function registerContainerConfiguration(LoaderInterface $loader)
30+
{
31+
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
32+
}
33+
34+
public function registerRootDir()
35+
{
36+
return __DIR__;
37+
}
38+
}

Diff for: app/autoload.php

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
use Symfony\Component\ClassLoader\UniversalClassLoader;
4+
5+
$loader = new UniversalClassLoader();
6+
$loader->registerNamespaces(array(
7+
'Symfony' => array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'),
8+
'Sensio' => __DIR__.'/../vendor/bundles',
9+
'Doctrine\\Common\\DataFixtures' => __DIR__.'/../vendor/doctrine-data-fixtures/lib',
10+
'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib',
11+
'Doctrine\\DBAL\\Migrations' => __DIR__.'/../vendor/doctrine-migrations/lib',
12+
'Doctrine\\MongoDB' => __DIR__.'/../vendor/doctrine-mongodb/lib',
13+
'Doctrine\\ODM\\MongoDB' => __DIR__.'/../vendor/doctrine-mongodb-odm/lib',
14+
'Doctrine\\DBAL' => __DIR__.'/../vendor/doctrine-dbal/lib',
15+
'Doctrine' => __DIR__.'/../vendor/doctrine/lib',
16+
'Zend\\Log' => __DIR__.'/../vendor/zend-log',
17+
'Assetic' => __DIR__.'/../vendor/assetic/src',
18+
'Acme' => __DIR__.'/../src',
19+
));
20+
$loader->registerPrefixes(array(
21+
'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
22+
'Twig_' => __DIR__.'/../vendor/twig/lib',
23+
'Swift_' => __DIR__.'/../vendor/swiftmailer/lib/classes',
24+
));
25+
$loader->register();

Diff for: app/cache/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)