Skip to content

Commit 641e58d

Browse files
author
claudio
committed
- Proyecto base
0 parents  commit 641e58d

File tree

7,918 files changed

+478769
-0
lines changed

Some content is hidden

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

7,918 files changed

+478769
-0
lines changed

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2004-2011 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.

README.md

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
Symfony Standard Edition
2+
========================
3+
4+
Welcome to the Symfony Standard Edition - a fully-functional Symfony2
5+
application that you can use as the skeleton for your new app. If you want
6+
to learn more about the features included, see the "What's Inside?" section.
7+
8+
This document contains information on how to download and start using Symfony.
9+
For a more detailed explanation, see the
10+
[Installation chapter](http://symfony.com/doc/current/book/installation.html)
11+
of the Symfony Documentation.
12+
13+
1) Download the Standard Edition
14+
--------------------------------
15+
16+
If you've already downloaded the standard edition, and unpacked it somewhere
17+
within your web root directory, then move on to the "Installation" section.
18+
19+
To download the standard edition, you have two options:
20+
21+
### Download an archive file (*recommended*)
22+
23+
The easiest way to get started is to download an archive of the standard edition
24+
(http://symfony.com/download). Unpack it somewhere under your web server root
25+
directory and you're done. The web root is wherever your web server (e.g. Apache)
26+
looks when you access `http://localhost` in a browser.
27+
28+
### Clone the git Repository
29+
30+
We highly recommend that you download the packaged version of this distribution.
31+
But if you still want to use Git, you are on your own.
32+
33+
Run the following commands:
34+
35+
git clone http://github.com/symfony/symfony-standard.git
36+
cd symfony-standard
37+
rm -rf .git
38+
39+
2) Installation
40+
---------------
41+
42+
Once you've downloaded the standard edition, installation is easy, and basically
43+
involves making sure your system is ready for Symfony.
44+
45+
### a) Check your System Configuration
46+
47+
Before you begin, make sure that your local system is properly configured
48+
for Symfony. To do this, execute the following:
49+
50+
php app/check.php
51+
52+
If you get any warnings or recommendations, fix these now before moving on.
53+
54+
### b) Install the Vendor Libraries
55+
56+
If you downloaded the archive "without vendors" or installed via git, then
57+
you need to download all of the necessary vendor libraries. If you're not
58+
sure if you need to do this, check to see if you have a ``vendor/`` directory.
59+
If you don't, or if that directory is empty, run the following:
60+
61+
php bin/vendors install
62+
63+
Note that you **must** have git installed and be able to execute the `git`
64+
command to execute this script. If you don't have git available, either install
65+
it or download Symfony with the vendor libraries already included.
66+
67+
### c) Access the Application via the Browser
68+
69+
Congratulations! You're now ready to use Symfony. If you've unzipped Symfony
70+
in the web root of your computer, then you should be able to access the
71+
web version of the Symfony requirements check via:
72+
73+
http://localhost/Symfony/web/config.php
74+
75+
If everything looks good, click the "Bypass configuration and go to the Welcome page"
76+
link to load up your first Symfony page.
77+
78+
You can also use a web-based configurator by clicking on the "Configure your
79+
Symfony Application online" link of the ``config.php`` page.
80+
81+
To see a real-live Symfony page in action, access the following page:
82+
83+
web/app_dev.php/demo/hello/Fabien
84+
85+
3) Learn about Symfony!
86+
-----------------------
87+
88+
This distribution is meant to be the starting point for your application,
89+
but it also contains some sample code that you can learn from and play with.
90+
91+
A great way to start learning Symfony is via the [Quick Tour](http://symfony.com/doc/current/quick_tour/the_big_picture.html),
92+
which will take you through all the basic features of Symfony2 and the test
93+
pages that are available in the standard edition.
94+
95+
Once you're feeling good, you can move onto reading the official
96+
[Symfony2 book](http://symfony.com/doc/current/).
97+
98+
Using this Edition as the Base of your Application
99+
--------------------------------------------------
100+
101+
Since the standard edition is fully-configured and comes with some examples,
102+
you'll need to make a few changes before using it to build your application.
103+
104+
The distribution is configured with the following defaults:
105+
106+
* Twig is the only configured template engine;
107+
* Doctrine ORM/DBAL is configured;
108+
* Swiftmailer is configured;
109+
* Annotations for everything are enabled.
110+
111+
A default bundle, ``AcmeDemoBundle``, shows you Symfony2 in action. After
112+
playing with it, you can remove it by following these steps:
113+
114+
* delete the ``src/Acme`` directory;
115+
* remove the routing entries referencing AcmeBundle in ``app/config/routing_dev.yml``;
116+
* remove the AcmeBundle from the registered bundles in ``app/AppKernel.php``;
117+
118+
119+
What's inside?
120+
---------------
121+
The Symfony Standard Edition comes pre-configured with the following bundles:
122+
123+
* **FrameworkBundle** - The core Symfony framework bundle
124+
* **SensioFrameworkExtraBundle** - Adds several enhancements, including template
125+
and routing annotation capability ([documentation](http://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html))
126+
* **DoctrineBundle** - Adds support for the Doctrine ORM
127+
([documentation](http://symfony.com/doc/current/book/doctrine.html))
128+
* **TwigBundle** - Adds support for the Twig templating engine
129+
([documentation](http://symfony.com/doc/current/book/templating.html))
130+
* **SecurityBundle** - Adds security by integrating Symfony's security component
131+
([documentation](http://symfony.com/doc/current/book/security.html))
132+
* **SwiftmailerBundle** - Adds support for Swiftmailer, a library for sending emails
133+
([documentation](http://symfony.com/doc/2.0/cookbook/email.html))
134+
* **MonologBundle** - Adds support for Monolog, a logging library
135+
([documentation](http://symfony.com/doc/2.0/cookbook/logging/monolog.html))
136+
* **AsseticBundle** - Adds support for Assetic, an asset processing library
137+
([documentation](http://symfony.com/doc/2.0/cookbook/assetic/asset_management.html))
138+
* **JMSSecurityExtraBundle** - Allows security to be added via annotations
139+
([documentation](http://symfony.com/doc/current/bundles/JMSSecurityExtraBundle/index.html))
140+
* **WebProfilerBundle** (in dev/test env) - Adds profiling functionality and
141+
the web debug toolbar
142+
* **SensioDistributionBundle** (in dev/test env) - Adds functionality for configuring
143+
and working with Symfony distributions
144+
* **SensioGeneratorBundle** (in dev/test env) - Adds code generation capabilities
145+
([documentation](http://symfony.com/doc/current/bundles/SensioGeneratorBundle/index.html))
146+
* **AcmeDemoBundle** (in dev/test env) - A demo bundle with some example code
147+
148+
Enjoy!

app/.htaccess

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deny from all

app/AppCache.php

Lines changed: 9 additions & 0 deletions
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+
}

app/AppKernel.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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\SecurityBundle\SecurityBundle(),
13+
new Symfony\Bundle\TwigBundle\TwigBundle(),
14+
new Symfony\Bundle\MonologBundle\MonologBundle(),
15+
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
16+
new Symfony\Bundle\DoctrineBundle\DoctrineBundle(),
17+
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
18+
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
19+
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
20+
new FOS\UserBundle\FOSUserBundle(),
21+
new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
22+
new Sonata\UserBundle\SonataUserBundle('FOSUserBundle'),
23+
new Sonata\EasyExtendsBundle\SonataEasyExtendsBundle(),
24+
new Sonata\AdminBundle\SonataAdminBundle(),
25+
new Sonata\jQueryBundle\SonatajQueryBundle(),
26+
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
27+
new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
28+
new Application\Sonata\UserBundle\ApplicationSonataUserBundle(),
29+
new Avalanche\Bundle\ImagineBundle\AvalancheImagineBundle(),
30+
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
31+
new JMS\I18nRoutingBundle\JMSI18nRoutingBundle(),
32+
new Sonata\MediaBundle\SonataMediaBundle(),
33+
new Application\Sonata\MediaBundle\ApplicationSonataMediaBundle(),
34+
new Dodici\Fansworld\WebBundle\DodiciFansworldWebBundle(),
35+
);
36+
37+
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
38+
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
39+
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
40+
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
41+
}
42+
43+
return $bundles;
44+
}
45+
46+
public function registerContainerConfiguration(LoaderInterface $loader)
47+
{
48+
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
49+
}
50+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* This file is part of the <name> project.
4+
*
5+
* (c) <yourname> <youremail>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
11+
namespace Application\Sonata\MediaBundle;
12+
13+
use Symfony\Component\HttpKernel\Bundle\Bundle;
14+
15+
16+
/**
17+
* This file has been generated by the EasyExtends bundle ( http://sonata-project.org/easy-extends )
18+
*
19+
* References :
20+
* bundles : http://symfony.com/doc/current/book/bundles.html
21+
*
22+
* @author <yourname> <youremail>
23+
*/
24+
class ApplicationSonataMediaBundle extends Bundle
25+
{
26+
/**
27+
* {@inheritdoc}
28+
*/
29+
public function getParent()
30+
{
31+
return 'SonataMediaBundle';
32+
}
33+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
/**
3+
* This file is part of the <name> project.
4+
*
5+
* (c) <yourname> <youremail>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
11+
namespace Application\Sonata\MediaBundle\Document;
12+
13+
use Sonata\MediaBundle\Document\BaseGallery as BaseGallery;
14+
15+
/**
16+
* This file has been generated by the EasyExtends bundle ( http://sonata-project.org/easy-extends )
17+
*
18+
* References :
19+
* working with object : http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/working-with-objects.html
20+
*
21+
* @author <yourname> <youremail>
22+
*/
23+
class Gallery extends BaseGallery
24+
{
25+
26+
/**
27+
* @var integer $id
28+
*/
29+
protected $id;
30+
31+
/**
32+
* Get id
33+
*
34+
* @return integer $id
35+
*/
36+
public function getId()
37+
{
38+
return $this->id;
39+
}
40+
41+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
/**
3+
* This file is part of the <name> project.
4+
*
5+
* (c) <yourname> <youremail>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
11+
namespace Application\Sonata\MediaBundle\Document;
12+
13+
use Sonata\MediaBundle\Document\BaseMedia as BaseMedia;
14+
15+
/**
16+
* This file has been generated by the EasyExtends bundle ( http://sonata-project.org/easy-extends )
17+
*
18+
* References :
19+
* working with object : http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/working-with-objects.html
20+
*
21+
* @author <yourname> <youremail>
22+
*/
23+
class Media extends BaseMedia
24+
{
25+
26+
/**
27+
* @var integer $id
28+
*/
29+
protected $id;
30+
31+
/**
32+
* Get id
33+
*
34+
* @return integer $id
35+
*/
36+
public function getId()
37+
{
38+
return $this->id;
39+
}
40+
41+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
/**
3+
* This file is part of the <name> project.
4+
*
5+
* (c) <yourname> <youremail>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
11+
namespace Application\Sonata\MediaBundle\Entity;
12+
13+
use Sonata\MediaBundle\Entity\BaseGallery as BaseGallery;
14+
15+
/**
16+
* This file has been generated by the Sonata EasyExtends bundle ( http://sonata-project.org/easy-extends )
17+
*
18+
* References :
19+
* working with object : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
20+
*
21+
* @author <yourname> <youremail>
22+
*/
23+
class Gallery extends BaseGallery
24+
{
25+
26+
/**
27+
* @var integer $id
28+
*/
29+
protected $id;
30+
31+
/**
32+
* Get id
33+
*
34+
* @return integer $id
35+
*/
36+
public function getId()
37+
{
38+
return $this->id;
39+
}
40+
}

0 commit comments

Comments
 (0)