Benjamin Eberlei
0d9d4ac583
Optimize some code in Form/Configurable, Have ChoiceField always pass data to transformers, implemented and fully unit-tested two Doctrine ORM specific transformers that do Collection to String/Choice Transformations
2010-10-06 14:16:51 +02:00
Benjamin Eberlei
f033fc5578
Refactor ValueTransformers to recieve the original value when reverseTransform() is called. This is required for expensive value transformations for example Doctrine Collections or Proxies to allow access to a value that does not trigger expensive operations (such as database calls) anymore.
2010-10-06 14:16:47 +02:00
Fabien Potencier
dbde494424
made locale determination for translation lazy-loaded
...
This allows to have a stateless-website (without any cookie)
for instance if the locale is part of the domain name
and not attached to the user.
2010-10-06 11:57:38 +02:00
Fabien Potencier
af8cb480a3
[FrameworkBundle] changed Template renderers to be lazy-loaded
2010-10-06 11:53:57 +02:00
Fabien Potencier
caa9d82746
[HttpFoundation] added support for attributes in RequestMatcher
2010-10-05 20:20:28 +02:00
Jonathan H. Wage
c0dc01d9b9
Fixing old path to new one.
2010-10-05 09:36:53 +02:00
Fabien Potencier
4cea8276e3
fixed Doctrine data fixtures path
2010-10-05 09:30:24 +02:00
Jonathan H. Wage
cc3ff12bf8
Fixing container test.
2010-10-05 09:29:42 +02:00
Fabien Potencier
c6ed593022
fixed unit tests
2010-10-05 09:05:29 +02:00
Jonathan H. Wage
3bc3115d8c
Adding setLogger for data fixtures.
2010-10-05 09:00:38 +02:00
Jonathan H. Wage
ff683a694e
Integrating new data fixtures code.
2010-10-05 09:00:33 +02:00
Fabien Potencier
2525998f6e
replaced form field rendering with plain templates
...
Documentation available here:
http://docs.symfony-reloaded.org/master/guides/form/
2010-10-05 08:34:33 +02:00
ornicar
a38069288c
Fix namespace collision
2010-10-04 14:02:35 +02:00
Fabien Potencier
c2f856f074
[FrameworkBundle] fixed comment
2010-10-04 14:01:33 +02:00
Fabien Potencier
e88c0b7fc5
[DoctrineBundle] fixed previous commit
2010-10-03 07:34:56 +02:00
Jonathan H. Wage
8fbf19694f
Adding orm: and mongodb: annotation aliases to avoid conflicts. Recommended is to use the aliases instead of relying on the default namespace for annotations.
...
/** @orm:Entity */
/** @mongodb:Document */
2010-10-03 07:26:49 +02:00
Fabien Potencier
0fc8906feb
[Validator] forced all validation annotations to be in the validation namespace to avoid collisions, removed the need for the wrapping @Validation annotation
...
Before:
/**
* @Validation({@DateTime()})
*/
After:
/**
* @validation:DateTime()
*/
The @validation:Validation() construct is not needed anymore (it is still supported
as this is useful when you have several annotations with the same class).
So, the above is equivalent to:
/**
* @validation:Validation({@validation:DateTime()})
*/
2010-10-02 15:07:00 +02:00
Fabien Potencier
3a4d9cb185
[Validation] fixed license
2010-10-02 12:42:35 +02:00
Fabien Potencier
4deb82f842
[Form] fixed license and phpdoc
2010-10-02 12:38:14 +02:00
Fabien Potencier
47bc809dc3
[TwigBundle] added tests for trans tag and filter
2010-10-02 09:39:48 +02:00
Fabien Potencier
77125288e7
[TwigBundle] updated nodes for the latest version of Twig
2010-10-02 09:39:29 +02:00
Fabien Potencier
8e654e8f9e
[TwigBundle] added the trans filter
2010-10-01 22:20:03 +02:00
Fabien Potencier
68bff2d214
[TwigBundle] fixed trans tags
2010-10-01 22:19:59 +02:00
Fabien Potencier
3696066bfe
[TwigBundle] fixed typo
2010-10-01 22:19:54 +02:00
Fabien Potencier
416bd7872e
[TwigBundle] optimized calls to helpers
2010-10-01 20:50:31 +02:00
Fabien Potencier
3ce8ad1718
fixed HelpersExtension (removed usage of the magic _view context attribute -- helpers should now work from macros)
2010-10-01 20:30:12 +02:00
Fabien Potencier
eff1bdf50f
[TwigBundle] made trans and transchoice tags more flexible
...
Both tags accept variables now:
{% trans label %}
{% transchoice %}
{{ error }}
{% endtranschoice %}
Optionally, the with keywords allows to pass the placeholder values:
{% trans label with vars %}
2010-09-30 19:13:01 +02:00
Fabien Potencier
4297609156
[TwigBundle] moved translator helpers to their own extension (removed usage of the magic _view variable context)
2010-09-30 10:14:58 +02:00
Fabien Potencier
1a055fc7f0
[Validator] fixed typo
2010-09-30 07:21:54 +02:00
Jeremy Mikola
a6caa3d552
[FrameworkBundle] Replaced non-existent definition key
2010-09-30 07:18:10 +02:00
Jordi Boggiano
d28b9ddcda
[HttpFoundation] Fix session::remove() not initializing the session
2010-09-30 07:17:44 +02:00
Alex
568cd57da6
[WebProfilerBundle] updated two references to the bag template to the new style by adding a .php extension to them
2010-09-30 07:17:13 +02:00
Fabien Potencier
6dc6d4a7d3
[TwigBundle] fixed trans tag
2010-09-29 18:11:25 +02:00
Fabien Potencier
7b9a523a43
[TwigBundle] fixed trans tag
2010-09-29 15:26:39 +02:00
Fabien Potencier
8ad2fd2123
[TwigBundle] renamed Helpers to HelpersExtension
2010-09-29 11:39:23 +02:00
Fabien Potencier
0d7c403769
[Form] fixed camelization problem when looking for a method (getCreated_at -> getCreatedAt)
2010-09-29 08:08:25 +02:00
Fabien Potencier
3b1e83380b
[Validator] removed the convention that error parameters are delimited with %%
2010-09-29 07:59:45 +02:00
Jordi Boggiano
7ead257798
[FrameworkBundle] Fixed a windows compatibility issue
2010-09-28 22:26:52 +02:00
Fabien Potencier
6aa190b2a6
[OutputEscaper] added SafeDecoratorInterface
2010-09-28 22:19:17 +02:00
Fabien Potencier
7650dd708f
[FrameworkBundle] fixed comment
2010-09-28 09:33:59 +02:00
Fabien Potencier
a6dc10c31a
changed templating name notation
...
Old notation: bundle:section:name.format:renderer (where both format and renderer are optional)
New notation: bundle:section:name.format.renderer (where only format is optional)
Valid new template names: Blog:Post:index.php, Blog:Post:index.xml.php
The new notation is more explicit and put all templating engines on the same level (there is no
more the concept of a "default" templating engine).
Even if the notation changed, the semantic has not. So, the logical template name for the above
examples is still 'index'. So, if you use a database loader for instance, the template
name is 'index' and everything else are options.
Upgrading current applications can be easily done by appending .php to each existing template
name reference (in both controllers and templates), and changing :twig to .twig for Twig templates
(for twig templates, you should also add .twig within templates themselves when referencing
another Twig templates).
2010-09-28 08:33:33 +02:00
Fabien Potencier
4ac65cebcf
[Translation] renamed Range to Interval
2010-09-28 07:14:43 +02:00
Fabien Potencier
9e50782b9d
fixed request data collector
2010-09-27 21:17:37 +02:00
Brandon Turner
bda264bb81
[Form] Removed invalid unit test
...
The bind() method only accepts arrays - passing objects causes an exception
2010-09-27 17:54:43 +02:00
Fabien Potencier
707205410e
added an IdentityTranslator to make it possible to always relies on the translator service, even if none is configured
2010-09-27 16:53:44 +02:00
Fabien Potencier
9c9edb3904
[FrameworkBundle] added error messages from the Form Component in the default validators.fr.xliff
2010-09-27 16:14:53 +02:00
Sebastian Ionescu
4edd0c269b
updated some helper docblocks - fixed usage of helpers
2010-09-27 15:16:23 +02:00
Fabien Potencier
9580c74f0b
[Validator] changed the convention for placeholders in messages to be compatible with Twig (from %limit% to {{ limit }})
2010-09-27 09:46:56 +02:00
Fabien Potencier
d3aca1c04a
[FrameworkBundle] added support for the Translation component
2010-09-27 09:46:15 +02:00
Fabien Potencier
d6f55c31d1
[TwigBundle] added helpers for translations
2010-09-27 09:45:58 +02:00