Commit Graph

1971 Commits

Author SHA1 Message Date
Fabien Potencier
d5c9f37982 [DependencyInjection] added compiler passes as resources 2011-01-16 10:20:10 +01:00
Fabien Potencier
5c64ca8a30 renamed Container::freeze() to Container::compile() 2011-01-16 08:12:36 +01:00
Ryan Weaver
11085fd6a6 [Validator] Adding a significant amount of PHPDoc to the Validator component. 2011-01-16 07:40:15 +01:00
Ryan Weaver
416713afb1 [Cache] Changing variable from a property to a normal variable for consistency - the variable is passed to the parent constructor and set on the property there. 2011-01-16 07:39:07 +01:00
Ryan Weaver
769344733a [Cache] Fixing a coding standard, adding a small note for clarity, and adding a missing type-hint. 2011-01-16 07:39:03 +01:00
Bulat Shakirzyanov
b3e998efa9 [DoctrineBundle] fixed compiler pass, to stop if orm wasn't enabled 2011-01-16 07:38:04 +01:00
Johannes Schmitt
f1b7bc1fe9 some refactorings/improvements 2011-01-15 21:07:35 +01:00
Johannes M. Schmitt
98b52b607c better support for cookie handling, use native PHP function to set cookies 2011-01-15 20:47:29 +01:00
Fabien Potencier
102491b9b8 [FrameworkBundle] fixed template name parsing for namespaced bundles 2011-01-15 20:45:43 +01:00
Fabien Potencier
38cbc610e9 [FrameworkBundle] fixed controller names conversion when a bundle is defined in two different namespaces 2011-01-15 20:40:55 +01:00
Fabien Potencier
5b61cb5a8d [Framework] added some more test to demonstrate how template and controller name work with a vendor and a category in the namespace 2011-01-15 20:23:48 +01:00
Bertrand Zuchuat
ff82905c57 Typo on command asset:install 2011-01-15 20:11:45 +01:00
hhamon
e2dc7f47cb [HttpFoundation] use pathinfo() native function to determine file extension. Change File::move() and UploadedFile::move() methods to accept a second argument allowing to move the file with a new name instead of moving it with its original name. 2011-01-15 15:44:50 +01:00
Fabien Potencier
272933d2ce fixed typo 2011-01-15 15:30:15 +01:00
Benjamin Eberlei
cada317dee Allow to override platform with your own by defining a service name. 2011-01-15 15:28:39 +01:00
Benjamin Eberlei
ff91ea5f24 Add support for MySQL Session Init Listener, refactored driver and driverClass approach to follow the Doctrine DBAL factory more closely for this to work easily. 2011-01-15 15:27:15 +01:00
Igor Wiedler
d1bc959fc6 [DependencyInjection] Typo in Container
"freezed" should be "frozen".
2011-01-15 15:22:04 +01:00
Fabien Potencier
7ac6d59173 changed the bundle name to be the class name of the bundle, not the last part of the namespace
Let's take some examples to explain the change.

First, if you don't use any vendored bundles, this commit does not change anything.

So, let's say you use a FooBundle from Sensio. The files are stored under Bundle\Sensio\FooBundle.
And the Bundle class is Bundle\Sensio\FooBundle\SensioFooBundle.php.

Before the change, the bundle name ($bundle->getName()) would have returned 'FooBundle'.
Now it returns 'SensioFooBundle'.

Why does it matter? Well, it makes template names and controller names easier to read:

Before:

    Template: Sensio\FooBundle:Bar:index.twig.html
    Controller: Sensio\FooBundle:Bar:indexAction

After

    Template: SensioFooBundle:Bar:index.twig.html
    Controller: SensioFooBundle:Bar:indexAction

NB: Even if the change seems simple enough, the implementation is not. As finding
the namespace from the bundle class name is not trivial

NB2: If you don't follow the bundle name best practices, this will probably
leads to unexpected behaviors.
2011-01-15 15:17:01 +01:00
Fabien Potencier
5f177d5a51 [HttpKernel] removed unused and bugged method 2011-01-15 14:13:00 +01:00
Fabien Potencier
e84c867336 [FrameworkBundle] added some unit tests 2011-01-15 14:04:24 +01:00
Fabien Potencier
a365ab2884 changed the template name format
Before

bundle:section:template.format.renderer

After

bundle:section:template.renderer.format

Notice that both the renderer and the format are mandatory.
2011-01-15 12:33:27 +01:00
Fabien Potencier
75c6f47937 removed the magic discovering of format in template name 2011-01-15 07:43:16 +01:00
Fabien Potencier
055b6e4d6e made a big refactoring of the templating sub-framework
* better separation of concerns
 * made TwigBundle independant of the PHP Engine from FrameworkBundle (WIP)
 * removed one layer of abstraction in the Templating component (renderers)
 * made it easier to create a new Engine for any templating library
 * made engines lazy-loaded (PHP engine for instance is not started if you only use Twig)
 * reduces memory footprint (if you only use one engine)
 * reduces size of compiled classes.php cache file
2011-01-15 07:43:05 +01:00
Martin Hason
6011073e7c [DependencyInjection] fixed XmlDumper (corrected validity) 2011-01-14 18:16:11 +01:00
Jeremy Bush
4460b49802 Add support for base tag for Link and Form, Fixes #9422 2011-01-14 17:26:24 +01:00
Fabien Potencier
ea6342413c [DependencyInjection] fixed CS 2011-01-14 17:00:43 +01:00
Martin Hason
5ee48c4963 [DependencyInjection] fix XML entities in XmlDumper 2011-01-14 16:56:44 +01:00
Antoine Hérault
3ccc6b98b6 Fix typo 2011-01-14 16:56:14 +01:00
Fabien Potencier
3c5639053f [DoctrineBundle] fixed XSD 2011-01-14 15:01:49 +01:00
Fabien Potencier
5a800ed551 fixed phpdoc 2011-01-14 14:41:56 +01:00
Linnik Sergey
5bc4b22e42 [Form] Fix PHPDoc 2011-01-14 14:41:07 +01:00
Kousuke Ebihara
d347ade94c fixed typo (s/algoritm/algorithm/) 2011-01-14 14:40:28 +01:00
Fabien Potencier
b47cf7984b changed priority meaning to be more intuitive 2011-01-14 14:37:32 +01:00
Fabien Potencier
e41df3dd41 [DoctrineBundle] added missing entry in XSD 2011-01-14 14:21:25 +01:00
Fabien Potencier
a69b9e73ec [DoctrineBundle] added missing entry in XSD 2011-01-14 14:18:16 +01:00
Fabien Potencier
6b4ae4479a [TwigBundle] removed coupling between TemplatingExtension and Templating Engine 2011-01-14 08:57:04 +01:00
Fabien Potencier
1535fa2ad7 [HttpKernel] fixed a unit test 2011-01-14 08:31:58 +01:00
Victor Berchet
cdd3ac962c [SQLiteProfilerStorage] Improve SQLite storage:
- do not rely on request time for db cleanup (important when importing data),
- add indexes
2011-01-14 08:28:17 +01:00
Victor Berchet
9ec69553f3 [Profiler] Use base64 encoding which is more efficient than unpack (space wise) 2011-01-14 08:28:13 +01:00
Martin Hason
2a3d94a6d0 [DependencyInjection] added support for anonymous services in XmlDumper 2011-01-14 08:25:18 +01:00
Bulat Shakirzyanov
3a6f556189 [FrameworkBundle] registered FileSystem as a service, switched commands to use it 2011-01-14 08:23:38 +01:00
Bulat Shakirzyanov
39e33df573 fixed abstract extension to product correct array with just mapping type specified 2011-01-14 08:21:50 +01:00
Fabien Potencier
36d87d9464 [Templating] removed the Engine::output() method 2011-01-13 13:22:52 +01:00
Fabien Potencier
dd9e7367ef [Templating] fixed phpdoc 2011-01-13 13:18:56 +01:00
Fabien Potencier
09034a1b19 [Templating] fixed Engine::load() method 2011-01-13 13:18:48 +01:00
Fabien Potencier
c38c0c303e refactored Templating
* made the renderer argument of Storage ctor mandatory
 * refactored the Engine class to avoid code duplication
 * simplified the check for a template that extends another one but with a different renderer
2011-01-13 11:16:45 +01:00
Fabien Potencier
285e09fe0e switched colors to on by default in phpunit.xml 2011-01-13 09:15:06 +01:00
Fabien Potencier
7b940ce82a [FrameworkBundle] tweaked previous commit 2011-01-13 08:55:12 +01:00
Lukas Kahwe Smith
b4ac7982be make it easier to implement alternative app directory structures 2011-01-13 08:52:25 +01:00
Christophe Coevoet
5506e9d1a3 Fixed loading of validation files for bundles in a vendor namespace 2011-01-13 08:06:10 +01:00