Commit Graph

1540 Commits

Author SHA1 Message Date
Johannes M. Schmitt
da5475ec42 service visibility changes 2011-01-05 16:01:48 +01:00
Johannes M. Schmitt
c5ef113b18 DI container optimization 2011-01-05 15:41:11 +01:00
Bernhard Schussek
4b78c4376f [Form] Added FieldFactory mechanism to automatically create fields by introspecting metadata of a class 2011-01-05 15:02:56 +01:00
Bernhard Schussek
17acdd971c [FrameworkBundle] Fixed maxlength attribute in TextField in PHP templates 2011-01-05 15:02:12 +01:00
Fabien Potencier
fc96702483 [DependencyInjection] fixed generation of empty tags when getting a tag from a definition
This change removes a lot of noise in the dumped container.
2011-01-05 15:00:59 +01:00
Fabien Potencier
598d458a3c added CompatAssetsBundle to reintroduce the deprecated css/js helpers/tags
Just add this line in your configuration to enable it:

    <import resource="CompatAssetsBundle/Resources/config/assets.xml" />

This bundle is just to ease the upgrade path. Please don't use it if you don't need to
and upgrade your templates as this bundle will be removed before RC1.
2011-01-05 14:13:01 +01:00
Jeremy Mikola
3ab82cbd53 [FrameworkBundle][Security] Create DIC aliases for security providers that are explicit services
The SecurityFactories expect security services to have a consistent naming convention, which was not the case for providers defined as `{ id: another.service }`.  These providers will now be aliased as "security.authentication.provider.[key]" and can be accessed in the same manner as other providers.
2011-01-05 11:33:14 +01:00
GordonsLondon
1e27d4359c [DoctrineBundle] Added class_metadata_factory_name Configuration option 2011-01-05 08:36:43 +01:00
Fabien Potencier
1148519695 [HttpKernel] unified paths on Windows and *nix 2011-01-04 18:21:58 +01:00
devel
b74bb15975 Fixed an issue with the definition description Mongo DB collections.
Committer: VlastV <me@vlastv.ru>
2011-01-04 18:05:48 +01:00
chesteroni
cdc9c6395d Corrected according to bugfix at Doctrine-jira 2011-01-04 17:57:37 +01:00
Fabien Potencier
aea712d8a2 [ZendBundle] added a simple way to add new writers (add a service with a zend.logger.writer tag) 2011-01-04 14:46:31 +01:00
Fabien Potencier
7fdc61f272 [TwigBundle] added a way to register Twig globals from configuration
<twig:config debug="%kernel.debug%" strict-variables="%kernel.debug%">
        <twig:global key="foo" id="request" />
    </twig:config>

    twig.config:
        globals:
          foo: request
2011-01-04 14:40:25 +01:00
Fabien Potencier
7b7e83f428 removed js and css helpers and Twig integration
These helpers have been removed as they do not work as expected.
Among other things, the order is not the right one when using PHP
templates, and adding assets from an included template is not
possible when using Twig templates.

This should be replaced by integrating a third-party library that
manages assets: minification, compilation, packaging, ...
2011-01-04 14:07:25 +01:00
Fabien Potencier
b60d254be2 [TwigBundle] added request and session as global variables
* removed the "_view" variable from templates
 * removed the "flash()" function (now available from the session directly {{ session.flash('notice') }})
2011-01-04 14:03:41 +01:00
Fabien Potencier
0e487cdda6 [TwigBundle] replaced current {{ foo }} syntax for translation placeholders to %foo% 2011-01-04 08:47:23 +01:00
Ryan Weaver
9b10c8a866 [WebProfileBundle] Adding more information to the Response content returned when an intercept is redirected.
Since this is a debug-only feature, I think the more details we can include, the less trouble it'll cause when people are not expecting their requests to be intercepted. It's a good feature - this better-communicates what's happening.
2011-01-04 08:13:51 +01:00
Fabien Potencier
5c6f4fbdd7 [HttpFoundation] added missing directory in fixtures 2011-01-03 22:09:47 +01:00
Bernhard Schussek
39c9bf160e [Validator] Implemented @Ip constraint 2011-01-03 22:07:15 +01:00
Bernhard Schussek
114b2cf6c1 [FrameworkBundle] Attributes can now be passed when rendering form fields with the PHP renderer 2011-01-03 22:07:12 +01:00
Bernhard Schussek
acdd5c06de [Form] Changed value transformers to throw UnexpectedTypeException instances 2011-01-03 22:07:08 +01:00
Bernhard Schussek
48af2fc86e [Form][FrameworkBundle][HttpFoundation] The session is now automatically started when a form is CSRF protected 2011-01-03 22:07:04 +01:00
Bernhard Schussek
e9a7531a26 [Form] added the constrained method Field::isTransformationSuccessful() 2011-01-03 22:06:59 +01:00
Bernhard Schussek
8513082007 [Form][HttpFoundation] Improved File and UploadedFile class 2011-01-03 22:06:56 +01:00
Bernhard Schussek
708c780213 [Validator] Renamed @Validation constraint to @Set 2011-01-03 22:06:52 +01:00
Bernhard Schussek
ba422e8472 [Form] Added support for virtual field groups 2011-01-03 22:06:46 +01:00
Fabien Potencier
8b843e2662 [TwigBundle] fixed trans tag due to Twig changes 2011-01-03 20:09:48 +01:00
Fabien Potencier
8ca90d5233 fixed typo in phpdoc 2011-01-03 15:11:55 +01:00
Fabien Potencier
acbdbfca52 fixed typo 2011-01-03 14:59:27 +01:00
Fabien Potencier
5c6b594dae [TwigBundle] converted form filters to functions
|render_enctype -> form_enctype()
|render         -> form_field()
|render_hidden  -> form_hidden()
|render_errors  -> form_errors()
|render_label   -> form_label()
|render_data    -> form_data()
2011-01-03 14:45:16 +01:00
Fabien Potencier
e20a246eee [TwigBundle] fixed format_args configuration 2011-01-03 14:26:20 +01:00
Fabien Potencier
55b343b27c [TwigBundle] simplified code a bit 2011-01-03 12:34:14 +01:00
Fabien Potencier
2e9b8a4117 [TwigBundle] removed HelperTokenParser 2011-01-03 12:16:24 +01:00
Fabien Potencier
13bcf7cdac [TwigBundle] converted flash tag to a function 2011-01-03 12:14:54 +01:00
Fabien Potencier
3f492cae40 [TwigBundle] removed usage of HelperTokenParser for the js/css tags 2011-01-03 12:12:26 +01:00
Fabien Potencier
840bd8aacd [TwigBundle] removed usage of HelperTokenParser for the 'render' tag 2011-01-03 11:56:52 +01:00
Fabien Potencier
eb4788e98e [DependencyInjection] made service keys and aliases case insensitive (as method names are case insensitive in PHP) 2011-01-03 09:07:06 +01:00
Victor Berchet
de42cfdf3e fix a typo 2011-01-03 08:48:57 +01:00
Victor Berchet
b7db5482d7 Container builder tweaks 2011-01-03 08:48:25 +01:00
Benjamin Eberlei
302dbd1225 Refactor Doctrine Bundle to use Symfony DIC Enabled EventManager. 2011-01-03 08:07:26 +01:00
Benjamin Eberlei
fa7fdedf4b Introduced meta-bundle DoctrineAbstractBundle to squash 400+ loc of code duplication from ORM and MongoDB Bundles. 2011-01-03 08:07:22 +01:00
Johannes M. Schmitt
55a48bcfa6 optimized AclVoter, added unit test 2011-01-03 07:46:16 +01:00
Igor Wiedler
1577110c35 fix PHPUnit assertType deprecation warnings
PHPUnit 3.5.6 deprecates assertType in favor of assertInternalType and
assertInstanceOf. It will be completely removed in 3.6.
2011-01-03 07:44:30 +01:00
Christophe Coevoet
da9d2e82f6 Added the Typehint needed by the type-hinting in Twig_Node 2011-01-02 16:25:18 +01:00
Johannes M. Schmitt
a99d8c8558 fix possible duplicate security identities 2011-01-02 10:53:54 +01:00
Bernhard Schussek
2daa6b5bfe [TwigBundle] Fixed display of DateFields in twig templates 2011-01-02 10:41:12 +01:00
Bernhard Schussek
52ecffe51b [Validator] Implemented Locale constraint 2011-01-02 10:41:09 +01:00
Bernhard Schussek
b9c2e98315 [Form][Locale] Implemented LocaleField and added script for updating ICU data 2011-01-02 10:41:05 +01:00
Bernhard Schussek
d8b8ae0608 [FrameworkBundle][TwigBundle] Introduced field_row template for Form rendering 2011-01-02 10:41:00 +01:00
Fabien Potencier
62cd09e708 [TwigBundle] replaced the asset tag with an asset function (from {% asset css/foo.css %} to {{ asset('css/foo.css') }} 2010-12-31 16:59:44 +01:00