Fabien Potencier
7941ff61f0
[FrameworkBundle] added a note
2011-05-11 11:05:57 +02:00
Fabien Potencier
09de9fe85f
Merge remote branch 'danielholmes/client_kernel_shutdown'
...
* danielholmes/client_kernel_shutdown:
[FrameworkBundle] added a check in Client to only shutdown the kernel if a previous request has been made
2011-05-11 11:04:14 +02:00
Fabien Potencier
e2df25b43a
made a slight change to the previous merge
2011-05-11 10:45:23 +02:00
Fabien Potencier
b7d64c5304
Merge remote branch 'danielholmes/functional_test_changes'
...
* danielholmes/functional_test_changes:
[FrameworkBundle] fixed CS
[FrameworkBundle][HttpKernel] added a default tearDown on the WebTestCase which will shut down the currently used kernel (if there is one) in Web functional tests
2011-05-11 10:33:23 +02:00
Martin Hason
7f95ea69aa
[FrameworkBundle] Validator messages: added Czech translation
2011-05-10 14:18:57 +02:00
Fabien Potencier
50c1cce014
Merge remote branch 'schmittjoh/security'
...
* schmittjoh/security:
[HttpFoundation] added unit test
[Security][HttpFoundation] splits Request::hasSession() into hasSession(), and hasPreviousSession()
[SecurityBundle] added some tests
add provider to configuration
update DI to handle change in config and another provider
separate dbal specific acl config
add provider to configuration
update DI to handle change in config and another provider
separate dbal specific acl config
2011-05-09 14:26:36 +02:00
Fabien Potencier
b1f91f8ddc
Merge remote branch 'Seldaek/session_storage'
...
* Seldaek/session_storage:
[FrameworkBundle] Do not override the session storage for test
2011-05-09 14:13:19 +02:00
Fabien Potencier
0c46797a35
fixed CS
2011-05-09 13:52:49 +02:00
Fabien Potencier
9286f78116
Merge remote branch 'usefulthink/windows-symlink-errormessage'
...
* usefulthink/windows-symlink-errormessage:
[FrameworkBundle] added errormessage for windows in AssetsInstallCommand
2011-05-09 13:52:05 +02:00
jsor
e4c87cf558
Corrected german spelling of email (See: http://de.wikipedia.org/wiki/E-Mail#Artikel_und_Schreibweise )
2011-05-09 13:47:57 +02:00
Martin Schuhfuss
ad41d21675
[FrameworkBundle] added errormessage for windows in AssetsInstallCommand
...
As it has recently been discussed [on the mailing-list][1], windows doesn't
support symlinks for the assets:install command. In order to avoid a 'call to
undefined-function'-message in this case, this patch adds an exception which
will be thrown when the symlink-funktion isn't present and the
`--symlink`-Option was specified.
[1]: https://groups.google.com/group/symfony-devs/browse_thread/thread/4b8ad9634bdab155
2011-05-09 12:11:54 +02:00
Fabien Potencier
e1e365d75a
Merge remote branch 'udat/translator-typo'
...
* udat/translator-typo:
[FrameworkBundle] Fixed typo
2011-05-09 09:01:26 +02:00
Artur Kotyrba
1985333583
[FrameworkBundle] Fixed typo
2011-05-08 21:02:16 +02:00
Johannes Schmitt
f7e03f2d87
Merge remote branch 'origin/master' into annotations
...
Conflicts:
UPDATE.md
src/Symfony/Bundle/DoctrineBundle/Resources/config/orm.xml
src/Symfony/Bundle/DoctrineBundle/Tests/DependencyInjection/AbstractDoctrineExtensionTest.php
2011-05-08 07:28:23 +02:00
Christophe Coevoet
87391119be
[FrameworkBundle] Changed the priority of the ProfilerListener
...
Running it before other onCoreResponse listeners avoids seeing them
as called listeners in the event panel. The priority is set to -100
because it has to be called before the WebProfilerListener (-128) so
that the token is set.
2011-05-07 20:40:30 +02:00
Jordi Boggiano
43484c21a6
[FrameworkBundle] Do not override the session storage for test
2011-05-06 17:04:37 +02:00
Fabien Potencier
62c0b10b88
[FrameworkBundle] prevented search engine indexing on exception pages
2011-05-06 12:33:37 +02:00
Fabien Potencier
ca3c5e652e
moved ErrorHandler management to the distributions
2011-05-05 08:53:13 +02:00
Johannes Schmitt
362b7264d1
[Security][HttpFoundation] splits Request::hasSession() into hasSession(), and hasPreviousSession()
...
This closes #774 , and fixes #772 .
2011-05-05 08:38:07 +02:00
Michel Weimerskirch
476644a92c
[Form] Support for the HTML5 "pattern" attribute, see http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#the-pattern-attribute
...
If you use the MinLength validator with your entities, the ValidatorTypeGuesser gets the value, stored as "minlength". Then, the FormFactory generates a "pattern" attribute out of minlength and maxlength.
Modern browsers such as Chrome use this attribute to validate the form before submitting.
a "pattern" attribute is generated that validates the
2011-05-04 23:16:41 +02:00
Fabien Potencier
36bcfcc5ee
Merge remote branch 'bschussek/form'
...
* bschussek/form:
[Form] CSRF fields are not included in the children of a FormView anymore if the view is not the root
[Form] FormView::offsetUnset() is now supported. It was possible anyway using getChildren() and setChildren().
[Form] Split the option "modifiable" of the "collection" type into "allow_add" and "allow_delete"
[Form] Added test for last commit by kriswallsmith and improved dealing with original names
[Form] Fixed variable scope when entering nested form helpers
[Form] Added tests for blocks/templates in the format _<ID>_(widget|row|label|...)
[Form] updated listener to check that data is an array
2011-05-04 22:13:33 +02:00
Bernhard Schussek
74cca63938
[Form] CSRF fields are not included in the children of a FormView anymore if the view is not the root
2011-05-04 18:27:20 +02:00
Bernhard Schussek
bf1dfbbe99
[Form] Added test for last commit by kriswallsmith and improved dealing with original names
...
The form component should now guarantee to always pass an UploadedFile object to your model. There you can call getOriginalName() to retrieve the original name of the uploaded file. For security reasons, the real file name is a generated hash value.
2011-05-04 17:04:44 +02:00
Bernhard Schussek
eb50d766da
[Form] Fixed variable scope when entering nested form helpers
...
The consequence of this commit is that variables are accessible that have been passed to a surrounding form helper.
Example template:
{% block my_widget_label %}
<label>{{ label }}
{% endblock %}
{% block my_widget_row %}
{# It is not necessary to explicitely pass through the label variable #}
{{ form_label(form) }}
{{ form_widget(form) }}
{% endblock %}
Example usage:
{{ form_row(form.mywidget, { 'label': 'My Widget' }) }}
2011-05-04 15:40:15 +02:00
Bernhard Schussek
38098604af
[Form] Added tests for blocks/templates in the format _<ID>_(widget|row|label|...)
2011-05-04 15:33:51 +02:00
Bart00
f9940b4175
Change "zou moeten" to "moet", ("zou moeten" implies that the problem is not so severe and was translated from english too literally)
...
Also fixes some typo's
2011-05-04 05:11:50 -07:00
Fabien Potencier
2e5bd42be3
Merge remote branch 'hollodk/master'
...
* hollodk/master:
Made some better translation.
First sample of translation.
2011-05-04 13:00:33 +02:00
Michael Holm
dc58b79e58
Made some better translation.
2011-05-04 12:47:06 +02:00
lenar
1cfed9e24e
added translation for Estonian
2011-05-04 12:20:22 +03:00
Michael Holm
8be22f19d7
First sample of translation.
2011-05-04 01:59:48 +02:00
wtfzdotnet
898019559a
Some changes to the translation of "should" -> "zou moeten", "must" -> "moeten".
2011-05-03 14:06:33 -07:00
Daniel Gomes
8870d3f31e
Merge remote-tracking branch 'upstream/master'
2011-05-03 14:28:33 +01:00
Daniel Gomes
0147df6b22
added translation for European Portugues (Portugal)
2011-05-03 14:27:37 +01:00
Jordi Boggiano
04f9b23b34
[FrameworkBundle] Adjust styling and display of logs
2011-05-03 14:44:27 +02:00
Johannes Schmitt
12a77440b8
[FrameworkBundle] fixed default
2011-05-03 14:41:50 +02:00
Johannes Schmitt
672c4ef122
Merge remote branch 'origin/master' into annotations
...
Conflicts:
UPDATE.md
2011-05-03 14:38:51 +02:00
Johannes Schmitt
d29c7811aa
[FrameworkBundle] updated configuration
2011-05-03 14:36:42 +02:00
Daniel Holmes
807859f962
[FrameworkBundle] added a check in Client to only shutdown the kernel if a previous request has been made
2011-05-03 21:26:45 +10:00
Daniel Holmes
34b44a0ff1
[FrameworkBundle] fixed CS
2011-05-03 15:00:01 +10:00
Daniel Holmes
9107ede18c
[FrameworkBundle][HttpKernel] added a default tearDown on the WebTestCase which will shut down the currently used kernel (if there is one) in Web functional tests
2011-05-03 14:17:33 +10:00
Fabien Potencier
3e514c6eb8
[FrameworkBundle] simplified code
2011-05-02 23:04:24 +02:00
Fabien Potencier
12fb4a0a95
Merge remote branch 'Seldaek/monolog_bundle'
...
* Seldaek/monolog_bundle:
[MonologBundle] Added support for new Monolog log level
[FrameworkBundle] Treat all log messages >=ERR as errors
2011-05-02 22:59:14 +02:00
Fabien Potencier
d0e31b8ca6
changed Application to have nice error messages when something bad happens early on the CLI
2011-05-02 18:35:38 +02:00
Jordi Boggiano
25d7009c1c
[FrameworkBundle] Treat all log messages >=ERR as errors
2011-05-02 18:31:51 +02:00
Kris Wallsmith
562d84a964
updated my email address
2011-05-02 05:59:56 -07:00
Matt Drollette
0029cbc397
made esi service public
2011-05-01 14:35:26 -05:00
Fabien Potencier
f55237dad7
[FrameworkBundle] fixed typo
2011-05-01 17:38:14 +02:00
Fabien Potencier
11cdff93f3
[FrameworkBundle] refactored container:debug command
...
* Use a dumper to serialize the container into the cache (XML)
* Only keep the "real" services (abstract ones are not displayed anymore)
2011-05-01 17:21:20 +02:00
Fabien Potencier
d31c403bae
Merge remote branch 'pborreli/tests-fix-typos'
...
* pborreli/tests-fix-typos:
Various typos
[WebProfilerBundle] Fixed typo
[WebProfilerBundle] Adding unit tests
2011-04-30 21:53:15 +02:00
Pascal Borreli
391744719a
Various typos
2011-04-30 19:40:15 +00:00
Johannes Schmitt
0d0c737630
Merge remote branch 'origin/master' into annotations
...
Conflicts:
UPDATE.md
2011-04-30 10:55:43 +02:00
Fabien Potencier
bb7b7e851d
[FrameworkBundle] refactored tests
2011-04-30 07:36:59 +02:00
Fabien Potencier
2adc56d181
Merge remote branch 'danielholmes/request_listener_test'
...
* danielholmes/request_listener_test:
[FrameworkBundle] added RequstListener test verifying request context http port fix
2011-04-30 07:26:08 +02:00
Fabien Potencier
55aff78a59
Merge remote branch 'noelg/i18n-translations-dir'
...
* noelg/i18n-translations-dir:
[translations] Moved the application translations directory under Resources to be consistent with bundles
2011-04-30 07:24:13 +02:00
Fabien Potencier
79ac931358
Merge remote branch 'igorw/templating-optional-globals'
...
* igorw/templating-optional-globals:
[TwigBundle] Default $globals to null as in FrameworkBundle/PhpEngine
make Templating Engine $globals optional
2011-04-30 07:20:22 +02:00
Daniel Holmes
625cb11d1e
[FrameworkBundle] added RequstListener test verifying request context http port fix
2011-04-30 14:24:26 +10:00
Deni
9dfe5bc5a4
[FrameworkBundle] Fixed russian translation of the Choice constraint
2011-04-30 01:20:20 +04:00
Igor Wiedler
e7c0aea587
make Templating Engine $globals optional
2011-04-29 22:36:24 +02:00
noel guilbert
f644bbc027
[translations] Moved the application translations directory under Resources to be consistent with bundles
2011-04-29 17:48:38 +02:00
Fabien Potencier
746ac2d24e
[FrameworkBundle] removed the need to specify the http/https port when you don't switch from http to https or the other way round
2011-04-29 16:42:49 +02:00
Fabien Potencier
2eb06bee1e
[FrameworkBundle] updated XSD
2011-04-29 16:35:33 +02:00
Johannes Schmitt
7e26575bbd
[FrameworkBundle] added framework-wide annotation reader, updated validator tests
2011-04-29 15:54:44 +02:00
Fabien Potencier
72a5ba78a0
Merge remote branch 'xmontana/master'
...
* xmontana/master:
renamed catalan translation filename according to locale
renamed catalan translation filename according to locale
2011-04-29 11:06:21 +02:00
Johannes Schmitt
7938fb3c28
Merge remote branch 'schmittjoh/annotations' into annotations
2011-04-29 08:39:00 +02:00
Fabien Potencier
3a36c08d8e
added the possibility to easily customize the template of just one widget of a form (PHP edition)
2011-04-29 07:33:55 +02:00
Johannes Schmitt
8ef0fc4976
fixed unit tests
2011-04-28 23:26:27 +02:00
Johannes Schmitt
d151d2d4b8
added Annotations library
2011-04-28 23:09:08 +02:00
Xmontana
277bfb28b0
renamed catalan translation filename according to locale
2011-04-28 21:00:29 +02:00
chispita
cea05575a2
renamed catalan translation filename according to locale
2011-04-28 20:57:06 +02:00
Fabien Potencier
4cbc33a785
removed the automatic loading of the compiled classes (should be done explicitely by the end user now)
2011-04-28 14:19:10 +02:00
Fabien Potencier
3fe385e4fb
removed the autoloader map feature
...
This feature added complexity to the framework but wasn't used in the core anyway.
You can still use the Map class loader in your application though. But most of the time, using the APC
autoloader is just better.
2011-04-28 13:38:22 +02:00
Fabien Potencier
9f11ab4177
Merge remote branch 'noelg/session-storage-bug'
...
* noelg/session-storage-bug:
Fixed a bug when the storage service is initialized later by another bundle. In this case, we can't add the storage class to the compiled class as the service does not exists.
2011-04-28 11:40:09 +02:00
Fabien Potencier
05f1481c6a
[Form] added the possibility to configure the CSRF field name and the disabling of the CSRF feature altogether
2011-04-28 11:28:44 +02:00
noel guilbert
6f1df3338d
Fixed a bug when the storage service is initialized later by another bundle.
...
In this case, we can't add the storage class to the compiled class as the
service does not exists.
2011-04-28 11:27:56 +02:00
Fabien Potencier
2e9278993c
added Definition::getArgument() (very useful when unit testing a Container)
2011-04-28 11:26:10 +02:00
Fabien Potencier
e72f1a9873
added a global secret setting to configure CSRF, the temporary storage, and possibly more
2011-04-28 10:49:59 +02:00
Fabien Potencier
9f846997ef
Merge remote branch 'Infranology/normalize-bools'
...
* Infranology/normalize-bools:
capitalized 'boolean'
replaced 'bool' with 'Boolean'
2011-04-27 07:48:12 +02:00
Eriksen Costa
4db0752894
replaced 'bool' with 'Boolean'
2011-04-27 02:35:03 -03:00
Fabien Potencier
aa3ec504ae
removed File::getWebPath()
...
This has been removed for several reasons:
* the framework does not know where the document root is and should not care
* as the document root was static, it was impossible to have several document roots depending on some business rules (see next one)
* sometimes, the document root is not under the web root directory (so the logic of getWebPath() is not always correct)
* the feature was not used anywhere in the core
2011-04-27 06:49:05 +02:00
Benoît Merlet
d9ac718b97
fixed typo
2011-04-26 19:54:39 +02:00
Fabien Potencier
28aa8e729a
[FrameworkBundle] fixed typo
2011-04-26 18:27:51 +02:00
Fabien Potencier
f29ddad5ba
removed unused file
2011-04-26 15:38:09 +02:00
Fabien Potencier
e45d5fa857
merged vicb:template-factorization
2011-04-26 14:38:47 +02:00
Fabien Potencier
dead820d77
Merge remote branch 'xmontana/master'
...
* xmontana/master:
Validator messages: added Catalan translation
2011-04-26 12:39:41 +02:00
Xmontana
dacfa633f6
Validator messages: added Catalan translation
2011-04-26 11:56:55 +02:00
Lukas Kahwe Smith
dbdf4ad750
cosmetic tweak (use defaultFalse() instead of defaultValue(false))
2011-04-26 09:50:41 +02:00
Fabien Potencier
ee89163858
Merge remote branch 'mweimerskirch/validators_translations'
...
* mweimerskirch/validators_translations:
[FrameworkBundle] Validator messages: added German translation
[FrameworkBundle] Validator messages: added Luxembourgish translation
2011-04-26 07:11:29 +02:00
Fabien Potencier
0493b669f7
Merge remote branch 'udat/110425-fixes'
...
* udat/110425-fixes:
[Bridge][Twig] removed unused argument passed to setRendered() method
[Translation] removed unnecessary default parameter value
[Templating] removed unused argument passed to setRendered() method
[HttpKernel] removed unused argument passed to ClosureLoader constructor
[BrowserKit] fixed typo
[Routing] removed redundant parameter in addRoute method
2011-04-26 07:11:07 +02:00
Michel Weimerskirch
246ad1b03f
[FrameworkBundle] Validator messages: added German translation
2011-04-25 23:14:50 +02:00
Michel Weimerskirch
45dd5f33ed
[FrameworkBundle] Validator messages: added Luxembourgish translation
2011-04-25 23:13:04 +02:00
Artur Kotyrba
05698f66a2
[Templating] removed unused argument passed to setRendered() method
2011-04-25 22:58:23 +02:00
Francis Besset
291c35cd45
[FrameworkBundle] Fixed french validators messages
2011-04-25 21:19:11 +02:00
Fabien Potencier
d6bdb7af88
Merge remote branch 'vicb/tweaks_110425'
...
* vicb/tweaks_110425:
[AsseticBundle] Remove an unused property
[Cache warmers] A few tweaks
2011-04-25 20:54:08 +02:00
Fabien Potencier
7c95bda751
[Routing] simplified route compiler
2011-04-25 12:38:20 +02:00
Victor Berchet
829bc54392
[Cache warmers] A few tweaks
2011-04-25 11:57:41 +02:00
Fabien Potencier
59c6609aec
Merge remote branch 'vicb/service-event'
...
* vicb/service-event:
[FrameworkBundle] Optimization of the method ContainerAwareEventDispacther::dispatch()
[FrameworkBundle] Fix an issue with ContainerAwareEventDispatcher when re-entering a scope
2011-04-24 22:06:56 +02:00
Fabien Potencier
2f3ddb88ef
Merge remote branch 'bschussek/form'
...
* bschussek/form:
[Form] Automatically setting "data_class" option if objects are passed at the creation of a form
[Form] Improved the way passed data is handled in FormFactory
[Form] Simplified FileType code
[HttpFoundation] TemporaryStorage automatically creates the directory if it doesn't exist yet
[Form] Changed FormBuilder::build() to FormBuilder::create(). You hvae to pass the resulting builder to FormBuilder::add() manually now
[Form] Added FieldTypeValidatorExtension and fixed FQCN of DelegatingValidator
2011-04-24 21:53:24 +02:00
Fabien Potencier
08bf2af455
fixed email
2011-04-24 13:59:46 +02:00
Bernhard Schussek
4f2fee8190
Merge remote branch 'tna/form-validation' into form
2011-04-24 10:43:15 +02:00
Fabien Potencier
b906cb59b8
Merge remote branch 'lsmith77/getAllPrevious'
...
* lsmith77/getAllPrevious:
renamed getPreviouses() to getAllPrevious
2011-04-24 08:46:54 +02:00
Lukas Kahwe Smith
fd97c0caca
renamed getPreviouses() to getAllPrevious
2011-04-24 01:08:15 +02:00
Tobias Naumann
bc9817c85e
[Form] Added FieldTypeValidatorExtension and fixed FQCN of DelegatingValidator
2011-04-24 01:05:12 +02:00
Pascal Borreli
8c0beea677
[Phpdoc] Cleaning/fixing
2011-04-23 15:18:47 +00:00
Pascal Borreli
b90aba14e6
[FrameworkBundle] Fixed typo in css
2011-04-23 15:17:39 +00:00
Fabien Potencier
5591f34c01
[FrameworkBundle] made some small tweaks
2011-04-23 15:40:32 +02:00
Fabien Potencier
f05801cace
[FrameworkBundle] removed the router.options.resource_type and routing.resource arguments
2011-04-23 15:31:13 +02:00
Fabien Potencier
8db6c28432
removed obsolete config parameter
2011-04-23 15:19:33 +02:00
Fabien Potencier
8cc5caf1f3
changed the default directory for the upload temp dir, made the dir mandatory
2011-04-23 15:09:55 +02:00
Fabien Potencier
02c66e658c
removed the nestingLevel configuration for file temporary storages
2011-04-23 15:06:07 +02:00
Fabien Potencier
800effcccd
Merge remote branch 'lsmith77/remove_interface_injection'
...
* lsmith77/remove_interface_injection:
removed support for interface injection as well as all relevant tests
2011-04-23 12:08:49 +02:00
Fabien Potencier
9bffd8c2db
[FrameworkBundle] moved some default values to the Configuration class
2011-04-23 12:07:14 +02:00
Fabien Potencier
e7892071bb
[FrameworkBundle] fixed wrong usage of obsolete session.class parameter
2011-04-23 11:43:35 +02:00
Lukas Kahwe Smith
d9491a743e
removed support for interface injection as well as all relevant tests
2011-04-23 11:42:31 +02:00
Fabien Potencier
3ed0ff7b03
[FrameworkBundle] removed two parameters
2011-04-23 11:34:17 +02:00
Victor Berchet
209b95f232
[FrameworkBundle] Add a unit test for the TemplateFinder class
2011-04-23 11:24:28 +02:00
Victor Berchet
33dd89fd02
[Template cache warmers] Factorize common code
2011-04-23 11:24:28 +02:00
Fabien Potencier
9a4da005a2
Merge remote branch 'bschussek/form-extensions'
...
* bschussek/form-extensions:
[Form] Refactored code from CoreExtension to new ValidatorExtension
[Form] Added FormTypeExtensionInterface
[Form] Reorganized code into "form extensions"
2011-04-23 09:11:25 +02:00
Fabien Potencier
07933ddfd4
Merge remote branch 'pborreli/fix-typo'
...
* pborreli/fix-typo:
Fixed various typo
2011-04-23 09:07:23 +02:00
Pascal Borreli
b5769c52d6
Fixed various typo
2011-04-22 23:12:50 +00:00
Pascal Borreli
c4623fc2c0
[FrameworkBundle][Windows] Fixed testValidationPaths on windows
2011-04-22 20:49:09 +00:00
Bernhard Schussek
6f1bc356a8
[Form] Refactored code from CoreExtension to new ValidatorExtension
...
CoreExtension is now independent of the Symfony2 validator.
2011-04-22 19:38:21 +02:00
Bernhard Schussek
1ce2db87e2
[Form] Added FormTypeExtensionInterface
...
With implementations of this interface, existing types can be amended.
The Csrf extension, for example, now contains a class FormTypeCsrfExtension
that adds CSRF capabilities to the "form" type.
To register new type extensions in the DIC, tag them with "form.type_extension"
and the name of the extended type as alias.
2011-04-22 19:24:38 +02:00
Bernhard Schussek
54e66c518f
[Form] Reorganized code into "form extensions"
...
The extension classes are now the only constructor argument of the FormFactory class. They replace the existing "type loader" classes.
new FormFactory(array(
new CoreExtension($validator, $storage),
new CsrfExtension($csrfProvider),
new DoctrineOrmExtension($em),
));
Together with a few upcoming commits this mechanism will make
* extension of the form framework in bundles and
* usage of the forms outside of Symfony2
much easier.
2011-04-22 17:41:21 +02:00
Fabien Potencier
7644e86683
refactored session configuration
...
* made the options array only for "global" options that are valid for all session storages
* changed the PDO session storage constructor signature to accept an array of options for DB configuration
* changed the storage_id to be the full service id, instead of just part of it
* removed the class parameter for session as it can be changed via the .class parameter (it was the only example in the framework)
* removed the configuration for the PDO session storage for now
2011-04-22 13:34:57 +02:00
Fabien Potencier
de8f10e236
Merge remote branch 'Infranology/framework-bundle-updated-method-call' into form
...
* Infranology/framework-bundle-updated-method-call: (91 commits)
[FrameworkBundle] updated method call
moved DoctrineMongoDBBundle to its own repository
[AsseticBundle] fixed unit tests
[FrameworkBundle] removed unneeded files in tests
updated vendors
[FrameworkBundle] removed the need to boot a Kernel in a unit test file
[FrameworkBundle] removed the need to boot a Kernel in a unit test file
[Routing] added getContext() accessor
[HttpFoundation] fixed a potential security problem in Request
updated vendors
Added 201 to the possible status codes that indicate a response is a redirect.
[FrameworkBundle] made ESI URL relative as allowed by the spec (no need to generate absolute URLs)
[AsseticBundle] fixed router and controller
[AsseticBundle] removed fake front controller from URL before creating route
[AsseticBundle] updated twig integration to check debug mode at runtime rather than compile time since twig cannot vary its cache by debug mode
[Routing] the global parameters must not be added in the QS when generating URLs
removed the possibility to pass a message to the trans tag
simplified exceptions as Twig is now smart enough to automatically add line information
made the %count% variable automatically available when using the transchoice filter (similar to how the tag works)
[Container] Added function array_unique on getServiceIds to return only one service name
...
2011-04-22 09:35:11 +02:00
Eriksen Costa
7bbb8beb17
[FrameworkBundle] updated method call
2011-04-21 23:20:52 -03:00
Eriksen Costa
589b0ab4ed
Merge branch 'master' into form-frameworkbundle-form-guessers-fix
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddFormGuessersPass.php
src/Symfony/Component/Form/MoneyField.php
2011-04-21 23:03:40 -03:00
Ryan Weaver
fb4eb9c2e9
[FrameworkBundle] Adding check for invalid form type for better exception message
2011-04-21 19:51:10 -05:00
Fabien Potencier
30e907663b
[FrameworkBundle] removed unneeded files in tests
2011-04-21 22:43:38 +02:00
Fabien Potencier
d86aa74e3d
[FrameworkBundle] removed the need to boot a Kernel in a unit test file
2011-04-21 22:34:53 +02:00
Fabien Potencier
4dc5b8ec78
[FrameworkBundle] removed the need to boot a Kernel in a unit test file
2011-04-21 21:49:05 +02:00
Fabien Potencier
314684df24
[FrameworkBundle] made ESI URL relative as allowed by the spec (no need to generate absolute URLs)
...
see http://www.w3.org/TR/esi-lang (Section 3.1 "Relative URIs will be resolved relative to the template.")
2011-04-21 18:54:01 +02:00
Fabien Potencier
ea021062ba
Merge remote branch 'vicb/assetic-cache-warmer'
...
* vicb/assetic-cache-warmer:
[AsseticBundle] Update the cache warmer tests
[AsseticBundle] Fix the cache warmers
2011-04-20 23:31:40 +02:00
Fabien Potencier
9c2d49e4f5
Merge remote branch 'weaverryan/fixtures_old_xml_namespace'
...
* weaverryan/fixtures_old_xml_namespace:
[FrameworkBundle] Upating XML test fixtures for newer namespace
2011-04-20 23:13:20 +02:00
Ryan Weaver
a5aba7dbd7
[FrameworkBundle] Upating XML test fixtures for newer namespace
...
This wasn't actually affecting anything (which is why it wasn't caught), but this is more correct.
2011-04-20 16:08:55 -05:00
Fabien Potencier
7266b41ade
[FrameworkBundle] added the current locale as the default value for _locale when generating routes
2011-04-20 23:03:01 +02:00
Victor Berchet
1191e3aa66
[AsseticBundle] Fix the cache warmers
2011-04-20 17:37:21 +02:00
Victor Berchet
6ae61eb9ff
[FrameworkBundle] Optimization of the method ContainerAwareEventDispacther::dispatch()
2011-04-20 15:05:22 +02:00
Victor Berchet
cc89d4b1a5
[FrameworkBundle] Fix an issue with ContainerAwareEventDispatcher when re-entering a scope
2011-04-20 15:04:56 +02:00
Fabien Potencier
1df8b2ee37
[FrameworkBundle] fixed methods that have been renamed in the previous commit
2011-04-20 14:31:42 +02:00
Fabien Potencier
9d2ea4ec31
Merge remote branch 'kriswallsmith/dic/method-renames'
...
* kriswallsmith/dic/method-renames:
added method renames to UPDATE
[DependencyInjection] renamed ContainerBuilder::remove() as removeDefinition() to be more consistent with other definition-related methods
[DependencyInjection] renamed Definition::setArgument() as replaceArgument() to be more specific
2011-04-20 14:28:09 +02:00
Fabien Potencier
477d81f9b1
Merge remote branch 'vicb/service-event-tests'
...
* vicb/service-event-tests:
[FrameworkBundle] Added a test for listener services not available in the current scope
[FrameworkBundle] Add unit tests for ContainerAwareEventDispatcher
[FrameworkBundle] Initialize the listenerId property in the ContainerAwareEventDispatcher class
2011-04-20 14:25:55 +02:00
Fabien Potencier
117321d3c6
replaced array for request context in Routing by a RequestContext class
2011-04-20 14:19:32 +02:00
Kris Wallsmith
cdf706d357
[DependencyInjection] renamed Definition::setArgument() as replaceArgument() to be more specific
2011-04-20 04:47:44 -07:00
Fabien Potencier
07aae98495
[Routing] added support for _scheme requirement
...
The _scheme requirement can be used to force routes to always match one given scheme
and to always be generated with the given scheme.
So, if _scheme is set to https, URL generation will force an absolute URL if the
current scheme is http. And if you request the URL with http, you will be redirected
to the https URL.
2011-04-20 10:49:32 +02:00
Victor Berchet
b4df0ea9ed
[FrameworkBundle] Added a test for listener services not available in the current scope
2011-04-20 09:56:44 +02:00
Victor Berchet
a4c41179e0
[FrameworkBundle] Add unit tests for ContainerAwareEventDispatcher
2011-04-20 09:51:38 +02:00
Victor Berchet
b45d117fbf
[FrameworkBundle] Initialize the listenerId property in the ContainerAwareEventDispatcher class
2011-04-20 09:51:32 +02:00
Ryan Weaver
6f16820328
[FrameworkBundle] Removing unnecessary and buggy functionality from ContainerDebugCommand
2011-04-19 17:01:22 -05:00
Fabien Potencier
91602dfef4
[FrameworkBundle] made possible to interact with the Kernel/Container after a request in functional tests
2011-04-19 22:55:39 +02:00
Fabien Potencier
95d4bcc5db
fixed unit tests (broken by previous commit)
2011-04-19 14:10:41 +02:00
Bernhard Schussek
57722550de
[Form] Added test for 'email' type and fixed a few bugs
2011-04-18 13:04:18 +02:00
Bernhard Schussek
23e9ad7a99
Merge remote branch 'mvrhov/email_type' into mvrhov_merge
2011-04-18 12:57:38 +02:00
Bernhard Schussek
325049ac73
Revert "[Form] removed validation.xml file (not used anymore)"
...
This reverts commit 3e476e1c30
.
2011-04-18 12:53:41 +02:00
Miha Vrhovnik
50011fa344
Added html5 email input to the forms
2011-04-18 11:17:41 +02:00
Fabien Potencier
3e476e1c30
[Form] removed validation.xml file (not used anymore)
2011-04-17 22:33:31 +02:00
Brikou CARRE
e898445b94
removed empty lines/trailing spaces
2011-04-15 21:12:02 +02:00
Bernhard Schussek
a05575bba1
[Form] Removed obsolete code. Use the 'attr' var instead
2011-04-15 15:48:14 +02:00
Bernhard Schussek
d0c572716a
Merge remote branch 'henrikbjorn/form' into henrik_merge
2011-04-15 15:34:29 +02:00
Bernhard Schussek
bc0efff28d
[Form][FrameworkBundle] Fixed escaping of choice widgets
2011-04-15 15:27:15 +02:00
Henrik Bjørnskov
e687685f98
[Form] change FormView::setVar,getVar,getVars,hasVar to set,get,all,has
...
[Form] Fixed {get,set,has}Var references in templating php
[Form] Added getVars to FormView to ease usage in Twig. Also added some phpdoc and cleaned up the get method by adding a default value
[Form] Fix
[Form] Delete file generated by test
2011-04-15 15:25:37 +02:00
Bernhard Schussek
3d92549382
[FrameworkBundle] Fixed various escaping problems and added test cases for them
2011-04-15 14:38:46 +02:00
Bernhard Schussek
990bef8afb
[Form][FrameworkBundle][TwigBundle] Fixed: CSRF fields are not rendered for nested forms anymore
2011-04-15 14:05:33 +02:00
Fabien Potencier
0b563c32ac
Merge remote branch 'schmittjoh/diLogging'
...
* schmittjoh/diLogging:
[DependencyInjection] enable debug related passes only in debug environment
[DependencyInjection] removed pass time
[DependencyInjection] fixes a bug which might have occurred when using property injection under certain circumstances
[DependencyInjection] fixed method name
[FrameworkBundle] whitespace fix
[DependencyInjection] refactored code a bit, added some more logging messages
[DependencyInjection] dump a readable format
[DependencyInjection] better logging
2011-04-15 10:38:54 +02:00
Johannes M. Schmitt
49ecb90221
[DependencyInjection] enable debug related passes only in debug environment
2011-04-15 10:14:13 +02:00
Fabien Potencier
067bd0009e
Merge remote branch 'kriswallsmith/scalar-nodes'
...
* kriswallsmith/scalar-nodes:
removed a lot of special normalization logic in the configuration by using xml values instead of attributes
2011-04-15 07:44:22 +02:00
Johannes M. Schmitt
e5b6ce1d08
[FrameworkBundle] whitespace fix
2011-04-14 21:04:45 +02:00
Johannes M. Schmitt
ee05534815
[DependencyInjection] dump a readable format
2011-04-14 20:42:19 +02:00
Bernhard Schussek
c6fe6a750d
[Form] Added functional test for the 'size' attribute in the select tags of a time field
2011-04-14 15:29:55 +02:00
Bernhard Schussek
44af72bbf4
Merge remote branch 'symfony/master' into experimental
2011-04-14 15:04:59 +02:00
Bernhard Schussek
72b17cd67c
[Form] Renamed TemplateContext to FormView
2011-04-14 15:02:51 +02:00
Bernhard Schussek
ca6ae09779
[Form] Removed TemplateContext::create()
2011-04-14 14:42:17 +02:00
Bernhard Schussek
4907c7d81d
[Form] Added test coverage for expanded choice fields
2011-04-14 14:18:25 +02:00
Bernhard Schussek
c2dcebf6ea
[FrameworkBundle] Added test coverage for FormHelper and fixed various rendering bugs
2011-04-14 13:37:27 +02:00
Samuel Laulhau
db90e0ab8d
fix Undefined property: Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand::
2011-04-14 13:11:03 +02:00
Fabien Potencier
9cc340a262
fixed inconsistencies in file locator classes
2011-04-14 12:52:22 +02:00
Bernhard Schussek
ce5f3073bd
Fixed test suite and names of accessor methods in TemplateContext
2011-04-14 03:52:52 +02:00
Fabien Potencier
56a4f0463a
Merge remote branch 'vicb/fix-dbg-evt-mgr'
...
* vicb/fix-dbg-evt-mgr:
[FrameworkBundle] Fix an issue when adding a scoped service as an event listener
2011-04-13 23:24:04 +02:00
Fabien Potencier
b32a7e935a
simplified code
2011-04-13 23:18:28 +02:00
Fabien Potencier
ea84bb025b
fixed session management in functional tests
2011-04-13 23:11:25 +02:00
Victor Berchet
3322cdbefc
[FrameworkBundle] Fix an issue when adding a scoped service as an event listener
2011-04-13 23:08:08 +02:00
Bernhard Schussek
8031ad77c8
Merge remote branch 'fabpot/form' into fabpot_merge
2011-04-13 15:58:15 +02:00
Kris Wallsmith
672291087c
removed a lot of special normalization logic in the configuration by using xml values instead of attributes
2011-04-13 05:59:46 -07:00
Fabien Potencier
9162e4c760
Merge remote branch 'weaverryan/controller_not_found_exception'
...
* weaverryan/controller_not_found_exception:
[FrameworkBundle] Adding a shortcut method to the controller for throwing the NotFoundHttpException
2011-04-13 14:20:37 +02:00
Fabien Potencier
8e3d125902
fixed CS
2011-04-13 14:07:54 +02:00
Fabien Potencier
4e047b5e27
Merge remote branch 'vicb/event_debug'
...
* vicb/event_debug:
[FrameworkBundle] Make some TraceableEventDispacther properties private
[Event] Tweak phpDoc for consistency
[FrameworkBundle] Add error detection to the TraceableEventDispatcher
2011-04-13 14:07:05 +02:00
Bernhard Schussek
2a18be1c9f
Merge remote branch 'symfony/master' into experimental
2011-04-13 13:53:20 +02:00
Fabien Potencier
6c8e4a567c
Merge remote branch 'francisbesset/translator_validators_fr'
...
* francisbesset/translator_validators_fr:
[FrameworkBundle] Fixed validators translation french message
2011-04-13 13:49:27 +02:00
Fabien Potencier
d46732bb48
Merge remote branch 'schmittjoh/addMissingInterface'
...
* schmittjoh/addMissingInterface:
[FrameworkBundle] added ContainerAwareInterface to services.xml
2011-04-13 13:44:57 +02:00
Fabien Potencier
0c93b6bbe4
Merge remote branch 'vicb/locate_template2'
...
* vicb/locate_template2:
[FrameworkBundle] Enforce templates instances of TemplateReferenceInterface
[FrameworkBundle] Add unit tests for the CacheTemplateLocator class
[FrameworkBundle] Add unit tests for the TemplateLocator class
[TwigBundle] Fix the cache warmer
[TwigBundle] Tweak cache warmer configuration
[FrameworkBundle] Fix resource inheritance in the template cache warmer
2011-04-13 13:38:11 +02:00
Fabien Potencier
92f77cce97
Merge remote branch 'lsmith77/ResolveInvalidReferencesPass'
...
* lsmith77/ResolveInvalidReferencesPass:
updated tests (aka removed exceptions handling)
use synthetic services instead of special exceptions
2011-04-13 11:46:52 +02:00
Johannes Schmitt
2397bcbe94
[DependencyInjection] better logging
2011-04-13 00:51:32 +02:00
Fabien Potencier
d873f21f69
[FrameworkBundle] removed links in exceptions when the file does not exist (mostly useful because of shortcut notations for templates)
2011-04-12 15:23:02 +02:00
Fabien Potencier
b68624aa7f
[FrameworkBundle] tweaked regexp
2011-04-12 15:19:57 +02:00
Johannes M. Schmitt
61dba2dd34
[FrameworkBundle] added ContainerAwareInterface to services.xml
2011-04-12 15:10:15 +02:00
Fabien Potencier
55a8f8d098
extracted common layout for internal/core pages
...
CSS styles should probably be renamed at some point.
2011-04-12 12:32:59 +02:00
Lukas Kahwe Smith
a4b04c4add
use synthetic services instead of special exceptions
2011-04-12 10:07:46 +02:00
Benjamin Eberlei
d27dc86c25
[FrameworkBundle][Validation] Fix bug where YAML Validation files are not detected.
2011-04-11 23:26:11 +02:00
Fabien Potencier
27d2b049f8
Merge remote branch 'Seldaek/init_bundle'
...
* Seldaek/init_bundle:
[FrameworkBundle] Allow init:bundle to be called with / as namespace separator
2011-04-11 18:39:36 +02:00
Fabien Potencier
92c8edc2b5
Merge remote branch 'weaverryan/router_debug_format_tweak'
...
* weaverryan/router_debug_format_tweak:
[FrameworkBundle] router:debug - better string dumping to avoid namespace escaping
2011-04-11 18:39:04 +02:00
Fabien Potencier
2be704e212
Merge remote branch 'weaverryan/request_listener_log_change'
...
* weaverryan/request_listener_log_change:
[FrameworkBundle] Tweak to how the routing parameters are output
2011-04-11 18:38:39 +02:00
Fabien Potencier
78c5a0ac90
Merge remote branch 'weaverryan/assets_install_command_mods'
...
* weaverryan/assets_install_command_mods:
[FrameworkBundle] Improving the output and help messages in the task (no behavioral change)
2011-04-11 18:37:00 +02:00
Fabien Potencier
aa26624161
Merge remote branch 'vicb/template_logical_name'
...
* vicb/template_logical_name:
Display template logical names in exception messages
2011-04-11 18:35:51 +02:00
Fabien Potencier
7f2294395c
[Form] reverted the templating part to be similar to what we have today
2011-04-11 16:42:51 +02:00
Francis Besset
b4d8091cdc
[FrameworkBundle] Fixed validators translation french message
2011-04-10 19:02:03 +02:00
Jordi Boggiano
7d61c003da
[FrameworkBundle] Allow init:bundle to be called with / as namespace separator
2011-04-10 12:22:25 +02:00
Ryan Weaver
409df12a36
[FrameworkBundle] router:debug - better string dumping to avoid namespace escaping
...
Before this change, the var_export causes namespaces to be escaped:
Before: 'Symfony\\Component\\...'
After: Symfony\Component\...
2011-04-09 17:53:33 -05:00
Ryan Weaver
3e41bef1e8
[FrameworkBundle] Tweak to how the routing parameters are output
...
The json_encode is actually really nice, except that it results in the "escaped" namesapces (e.g. Symfony\\Component\\...).
2011-04-09 17:35:31 -05:00
Ryan Weaver
91df6d9f5c
[FrameworkBundle] Improving the output and help messages in the task (no behavioral change)
2011-04-09 09:13:24 -05:00
Victor Berchet
e254ff8cc6
Display template logical names in exception messages
2011-04-08 19:56:12 +02:00
Victor Berchet
e80a693cfe
[FrameworkBundle] Enforce templates instances of TemplateReferenceInterface
2011-04-08 18:54:19 +02:00
Victor Berchet
c45d5c89cc
[FrameworkBundle] Add unit tests for the CacheTemplateLocator class
2011-04-08 18:54:19 +02:00
Victor Berchet
27a327e0de
[FrameworkBundle] Add unit tests for the TemplateLocator class
2011-04-08 18:54:19 +02:00
Victor Berchet
7cc51d8596
[FrameworkBundle] Fix resource inheritance in the template cache warmer
2011-04-08 18:54:19 +02:00
Johannes M. Schmitt
6408d5fc03
[FrameworkBundle] made css rule a bit more conservative
2011-04-08 17:49:56 +02:00
Fabien Potencier
a230090537
removed some json_encode() calls to use the new getLogicalName() method instead
2011-04-08 17:28:27 +02:00
Martin Hason
6c4801945e
[FrameworkBundle] added getLogicalName() method to TemplateReference
2011-04-08 10:32:46 +02:00
Ryan Weaver
5ecf1cd1d1
[FrameworkBundle] Taking advantage of the known type of $template to render meaningfull information about the template
...
The $template variable is not type-hinted, but this is just because the `locate` method must follow the signature of the interface.
According to the PHPDoc, the $template variable is in fact an instance of TemplateReferenceInterface, meaning we can call getPath()
on it. The previous method of json_encode just returned two empty braces, at least in my experience.
2011-04-07 18:29:34 -05:00
Bernhard Schussek
67582c9a5c
Merge remote branch 'symfony/master' into experimental
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php
2011-04-06 16:06:26 +02:00
Kris Wallsmith
d0f45fd3b6
[FrameworkBundle] added configuration for caching validator metadata
2011-04-06 04:07:38 -07:00
Victor Berchet
f331a7f8f9
[FrameworkBundle] Make some TraceableEventDispacther properties private
2011-04-06 09:42:48 +02:00
Victor Berchet
745d144e79
[Event] Tweak phpDoc for consistency
2011-04-06 09:42:48 +02:00
Victor Berchet
a6c3b4bfa2
[FrameworkBundle] Add error detection to the TraceableEventDispatcher
2011-04-06 09:42:38 +02:00
Kris Wallsmith
eca0243d3e
[FrameworkBundle] added condition so invalid session config isn't created
2011-04-05 15:42:43 -07:00
Fabien Potencier
839782b6e4
[FrameworkBundle] added support for routing redirection
2011-04-05 15:21:32 +02:00
Victor Berchet
b640fcb0f0
[Config] Introduction of an ConfigurationInterface
2011-04-05 11:26:28 +02:00
Fabien Potencier
dfbc0a899d
Merge remote branch 'vicb/link_format'
...
* vicb/link_format:
[Templating] Fix for getting the file link format from XDebug settings
2011-04-05 10:52:50 +02:00
Victor Berchet
170375a946
[Templating] Fix for getting the file link format from XDebug settings
2011-04-05 10:36:11 +02:00
Fabien Potencier
6daf09a61d
Merge remote branch 'subsven/master'
...
* subsven/master:
Add (Boolean) cast to constructor arguments
Add a configuration option to restrict profiler storage to the master request
2011-04-05 10:03:58 +02:00
Fabien Potencier
b126c50aea
[FrameworkBundle] fixed CS
2011-04-05 08:24:46 +02:00
Fabien Potencier
9ff8080d9f
Merge remote branch 'danielholmes/phpunit_xml_dir'
...
* danielholmes/phpunit_xml_dir:
[FrameworkBundle] removed function for checking for phpunit.xml in cwd
[FrameworkBundle] fixed error with arg reversing from previous changes
[FrameworkBundle] refactored getPhpUnitXmlDir in to separate parts and added support for --confguration=... style phpunit flag
[FrameworkBundle] fixed getPhpUnitXmlDir to work with directory paths with spaces in them
2011-04-05 08:16:53 +02:00
Fabien Potencier
ea7a87a1b7
[FrameworkBundle] simplified code
2011-04-05 08:10:17 +02:00
Fabien Potencier
515b6e48a0
merged vicb/event_dispatcher
2011-04-05 08:08:57 +02:00
Fabien Potencier
747c98f178
[FrameworkBundle] removed the debug.file_link_format parameter
2011-04-05 08:03:29 +02:00
Fabien Potencier
4d4876d9ba
Merge remote branch 'vicb/file_link_format'
...
* vicb/file_link_format:
[FrameworkBundle] Make specifying a custom file_link_format easier
[FrameworkBundle] Fix for getting the file link format fallback to XDebug configuration
2011-04-05 07:57:07 +02:00
Fabien Potencier
d61a685786
Merge remote branch 'vicb/wdtb_and_events'
...
* vicb/wdtb_and_events:
[WebProfilerBundle] Event panel: details & links to the listener method when applicable
[WebProfilerBundle] Tweak html markup and css
[WebProfilerBundle] Update the event panel layout
[WebProfilerBundle] Style abbr elements
2011-04-05 07:46:34 +02:00
Victor Berchet
b5f3d14714
[WebProfilerBundle] Event panel: details & links to the listener method when applicable
2011-04-05 01:23:31 +02:00
Victor Berchet
5a1d5e5082
[FrameworkBundle] Make specifying a custom file_link_format easier
2011-04-05 01:15:21 +02:00
Victor Berchet
9998ab18e9
[FrameworkBundle] Fix for getting the file link format fallback to XDebug configuration
2011-04-04 23:39:37 +02:00
Victor Berchet
1f1ee3cb01
[WebProfilerBundle] Update the event panel layout
2011-04-04 20:15:39 +02:00
Victor Berchet
b95295caac
[FrameworkBundle] A listener is always an object
2011-04-04 19:51:14 +02:00
Victor Berchet
46480b7e89
[FrameworkBundle] Fix the traceable event dispatcher
2011-04-04 19:22:55 +02:00
Victor Berchet
852d5c37df
[FrameworkBundle] Delete .gitkeep files
2011-04-04 17:40:18 +02:00
Bernhard Schussek
bfa3c71140
[Form] Added Bundle suffixes again
2011-04-04 15:33:21 +02:00
Bernhard Schussek
0cf8cc762a
Merge remote branch 'symfony/master' into experimental
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/money_field.html.php
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/percent_field.html.php
2011-04-04 15:16:08 +02:00
Fabien Potencier
01ee1bfed1
merged stof/monolog
2011-04-04 12:29:15 +02:00
Fabien Potencier
1cb03b1448
[FrameworkBundle] removed templating.loader.cache.path parameter
2011-04-04 11:56:41 +02:00
Fabien Potencier
1fd44ea736
Merge remote branch 'vicb/cache_template'
...
* vicb/cache_template:
[FrameworkBundle] Fix the cache template loader
2011-04-04 11:49:13 +02:00
Fabien Potencier
49a7f525b9
Revert "[FrameworkBundle] Updated the files generated by init:bundle to use the new bundle logical names"
...
This reverts commit d0e2b5b611
.
2011-04-04 11:42:52 +02:00
Fabien Potencier
f232b3cdda
reverted Merge remote branch 'kriswallsmith/kernel/shorter-bundle-names'
2011-04-04 11:10:56 +02:00
Fabien Potencier
743592d81e
Revert "fixed remaining Bundle suffixes"
...
This reverts commit 315147c6c8
.
2011-04-04 11:08:56 +02:00
Fabien Potencier
6c2954a2d5
Revert "[FrameworkBundle] fixed shorter bundle name in test"
...
This reverts commit d1f3852868
.
2011-04-04 11:08:30 +02:00
Victor Berchet
788ed5126b
[FrameworkBundle] Fix the cache template loader
2011-04-02 19:18:32 +02:00
Fabien Potencier
e92ac9eeef
Merge remote branch 'weaverryan/exception_page_changes'
...
* weaverryan/exception_page_changes:
[FrameworkBundle] When there are multiple nested exceptions, this hides the stacktrace from all exceptions by default
[FrameworkBundle] Fixing small bug on exception page where the +/- icons didn't toggle correctly
2011-04-02 18:33:55 +02:00
Bernhard Schussek
d3b7c4e8c1
[Form] Moved getLabel(), isChoiceSelected() and isChoiceGroup() from ChoiceListInterface to ThemeRenderer
2011-04-02 14:14:18 +02:00
Ryan Weaver
39f81753ce
[FrameworkBundle] When there are multiple nested exceptions, this hides the stacktrace from all exceptions by default
...
This addresses the potential issue where a user doesn't realize that there are multiple exception messages because the
full stack trace of the first exception is displayed (pushing the others far far down the page). This hides the stacktrace
of all exceptions (when there are more than one) by default, making each exception message easily viewable.
2011-04-02 06:25:34 -05:00
Ryan Weaver
a166b8de64
[FrameworkBundle] Fixing small bug on exception page where the +/- icons didn't toggle correctly
2011-04-02 06:24:00 -05:00
Bernhard Schussek
37e8e1270c
[Form][FrameworkBundle][TwigBundle] Renamed view variable 'disabled' to 'read_only' to match with the according FormInterface methods
2011-04-02 12:18:43 +02:00
Bernhard Schussek
39b0aafc00
Merge remote branch 'symfony/master' into experimental
...
Conflicts:
src/Symfony/Bundle/DoctrineBundle/Resources/config/orm.xml
2011-04-02 12:08:27 +02:00
Kris Wallsmith
6c3f50a585
[FrameworkBundle] fixed interface and usage in RouterHelper
2011-04-01 20:58:17 -07:00
Martin Hason
57b1b4992b
[FrameworkBundle] fixed bugs
...
- not existing service in DI container
- called invalid method
2011-04-01 10:34:13 +02:00
Martin Hason
c045f2896b
[FrameworkBundle] fixed test on windows
2011-04-01 10:31:43 +02:00
Martin Hason
3baebe4e3b
[FrameworkBundle] fixed CS
2011-04-01 10:28:09 +02:00
Fabien Potencier
046e3637db
[FrameworkBundle] removed unused parameters
2011-04-01 08:32:31 +02:00
Fabien Potencier
eb21f5b76e
[FrameworkBundle] moved some validation related services to the XML services file
2011-04-01 08:26:19 +02:00
Fabien Potencier
33add37f7c
[FrameworkBundle] removed the validator.annotations.namespaces parameter
...
The parameter has been removed and the service moved to the XML file (for consistency).
The behavior is still the same as before as any non-public service
which is not referenced anywhere will be automatically removed by a
compiler pass.
2011-04-01 08:15:38 +02:00
Fabien Potencier
fe19646470
[HttpKernel] made the _route request attribute _internal for embedded controller renderings
2011-04-01 07:39:12 +02:00
Bernhard Schussek
bbeddf7789
Merge remote branch 'symfony/master' into experimental
2011-03-31 12:32:20 +02:00
Jeremy Mikola
553f5525a5
[FrameworkBundle] Change validator's annotation prefix from "validation" to "assert"
2011-03-30 20:04:18 -04:00
Fabien Potencier
07838c9612
[FrameworkBundle] removed the possibility to change the method name for validation static method loader (as it would break third-party bundles)
2011-03-30 23:21:17 +02:00
Fabien Potencier
c8fe15bfcf
[FrameworkBundle] removed exception_listener.controller parameter
2011-03-30 19:21:04 +02:00
Fabien Potencier
68d340b845
[FrameworkBundle] removed translator.fallback_locale parameter
2011-03-30 19:16:13 +02:00
Fabien Potencier
40606edd1c
[FrameworkBundle] removed templating.assets.version and templating.assets.base_urls parameters
2011-03-30 19:05:22 +02:00
Fabien Potencier
ce4a8de789
[FrameworkBundle] removed the session.default_locale parameter
2011-03-30 17:34:23 +02:00
Fabien Potencier
5e0c046abd
[FrameworkBundle] removed %error_handle.level% parameter
2011-03-30 17:02:38 +02:00
Fabien Potencier
be702fd426
Merge remote branch 'thesalla/init_bundle_fix'
...
* thesalla/init_bundle_fix:
[FrameworkBundle] Updated the files generated by init:bundle to use the new bundle logical names
2011-03-30 15:53:16 +02:00
Bernhard Schussek
55c14680d3
Merge remote branch 'symfony/master' into experimental
2011-03-30 10:31:21 +02:00
Fabien Potencier
49d67645d7
[Console] moved Output constants to OutputInterface
2011-03-29 21:53:28 +02:00
Gyula Sallai
d0e2b5b611
[FrameworkBundle] Updated the files generated by init:bundle to use the new bundle logical names
2011-03-29 21:36:00 +02:00
Sven Paulus
4948666c6a
Add (Boolean) cast to constructor arguments
2011-03-29 17:39:47 +02:00
Sven Paulus
601d3f5d95
Add a configuration option to restrict profiler storage to the master request
...
We a currently working on a project were a single requested URL typically
leads to some hundred controller calls. Using the dev controller got
incredibly slow since recent Symfony2 changes because for each controller
invocation a new entry gets added to the profiler storage (totalling over
100mb of data on each request in our case).
With the new configuration attribute "only-master-requests" it is possible
to limit the profiler storage to the master requests, keeping the profiler
usable for us.
2011-03-29 16:58:34 +02:00
Daniel Holmes
11fb84538a
[FrameworkBundle] removed function for checking for phpunit.xml in cwd
2011-03-29 21:54:32 +11:00
Daniel Holmes
0b65923c37
[FrameworkBundle] fixed error with arg reversing from previous changes
2011-03-29 14:58:43 +11:00
Daniel Holmes
e87f5d507e
[FrameworkBundle] refactored getPhpUnitXmlDir in to separate parts and added support for --confguration=... style phpunit flag
2011-03-29 14:42:27 +11:00
Daniel Holmes
5f6ddc200d
[FrameworkBundle] fixed getPhpUnitXmlDir to work with directory paths with spaces in them
2011-03-29 13:41:58 +11:00
Bernhard Schussek
544f763c2c
[FrameworkBundle][TwigBundle] Adapted bundle references to latest symfony/master changes
2011-03-28 22:58:05 +02:00
Bernhard Schussek
53838abf3f
Merge remote branch 'symfony/master' into experimental
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/money_field.html.php
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/percent_field.html.php
src/Symfony/Component/Form/Resources/config/validation.xml
2011-03-28 22:52:15 +02:00
Fabien Potencier
ea5b68383f
Merge remote branch 'kriswallsmith/doctrine/test-fixes'
...
* kriswallsmith/doctrine/test-fixes:
[FrameworkBundle] fixed shorter bundle name in test
[HttpKernel] updated tests for shorter bundle names
[DoctrineMongoDBBundle] updated tests with shorter bundle names
[DoctrineBundle] updated tests with shorter bundle names
2011-03-28 20:48:59 +02:00
Kris Wallsmith
d1f3852868
[FrameworkBundle] fixed shorter bundle name in test
2011-03-28 11:38:22 -07:00
Fabien Potencier
3d44c44f9a
Merge remote branch 'mbontemps/httpCache-fix'
...
* mbontemps/httpCache-fix:
Add a public getter for the Esi instance
Fix kernel access in HttpCache due to kernel attribute privatization
2011-03-28 19:50:12 +02:00
Fabien Potencier
315147c6c8
fixed remaining Bundle suffixes
2011-03-28 19:04:02 +02:00
Matthieu Bontemps
8e4686787a
Add a public getter for the Esi instance
2011-03-28 13:45:23 +02:00
Matthieu Bontemps
aba6363452
Fix kernel access in HttpCache due to kernel attribute privatization
2011-03-28 11:58:16 +02:00
Bernhard Schussek
1fa004ceb2
[Form] Simplified the interface names of the Renderer subnamespace
2011-03-27 23:39:01 +02:00
Ryan Weaver
ad80966d83
[FrameworkBundle] Adding a shortcut method to the controller for throwing the NotFoundHttpException
...
The rationale is that this is a very common task and we can't expect non-advanced users to have to remember what the fully-qualified
class name of the Exception is in order to use it.
2011-03-27 10:50:26 -05:00
Kris Wallsmith
ade83e2e80
updated codebase to use shorter bundle names
...
Controllers:
"BlogBundle:Post:show" is now "Blog:Post:show"
Templates:
"BlogBundle:Post:show.html.twig" is now "Blog:Post:show.html.twig"
Resources:
"@BlogBundle/Resources/config/blog.xml" is now "@Blog/Resources/config/blog.xml"
Doctrine:
"$em->find('BlogBundle:Post', $id)" is now "$em->find('Blog:Post', $id)"
2011-03-27 06:25:43 -07:00
Bernhard Schussek
67d85c6bc7
[Form] Fixed signature of FormThemeInterface::render()
2011-03-27 13:48:38 +02:00
Bernhard Schussek
b21929423e
[Form] Completely removed the fields variable in the renderer. The renderer itself supports ArrayAccess and Traversable
2011-03-27 13:48:36 +02:00
Bernhard Schussek
a58cfab37d
[Form] Removed form.type.loader tag and according compiler pass to simplify configuration. Custom types that are not in the DIC can be instantiated manually and passed wherever a type is desired.
2011-03-26 18:48:55 +01:00
Bernhard Schussek
ed69d7fa35
[Form] Fixed rendering using the PHP Templating engine
2011-03-26 18:38:03 +01:00
Bernhard Schussek
fae319e77a
[Form] Renderers are now created explicitely using FormFactory::createRenderer(). This improves performance on requests where a form does not need to be rendered
2011-03-26 16:03:34 +01:00
Bernhard Schussek
a396f8fdc8
Merge remote branch 'symfony/master' into experimental
2011-03-26 16:03:21 +01:00
Ryan Weaver
1910e23df8
[FrameworkBundle] Adding a title tag to make the default error page just a little bit longer so that chrome displays it
...
The background is that Chrome only displays the content returned on an error page if payload is at least 512 bytes.
Prior to this change, the 404 page was just a few bytes short, resulting in the Chrome error message instead of the
real one returned by Symfony (confusing for the user).
2011-03-26 07:36:03 -05:00
Fabien Potencier
124f1d8e44
moved the Filesystem class form FrameworBundle to HttpKernel (refactored it slightly)
2011-03-26 08:37:10 +01:00
Fabien Potencier
1a6f138fe8
[FrameworkBundle] simplified code
2011-03-26 08:22:29 +01:00
Fabien Potencier
3553ed89d4
Merge remote branch 'stealth35/use_filesystemiterator'
...
* stealth35/use_filesystemiterator:
simplify folders deletion
work with Traversable
added FilesystemIterator namespace
tab to spaces
use FilesytemIterator insteed opendir
2011-03-26 08:20:44 +01:00
Fabien Potencier
d9af9890a3
Merge remote branch 'umpirsky/master'
...
* umpirsky/master:
Fixed Russian translation according to suggestions on be63154655 (commitcomment-312900)
.
2011-03-26 08:17:23 +01:00
umpirsky
37d7c400ce
Fixed Russian translation according to suggestions on be63154655 (commitcomment-312900)
.
2011-03-25 10:56:41 -07:00
stealth35
41bdfe25c0
simplify folders deletion
2011-03-25 17:51:47 +01:00
Bernhard Schussek
18b98353d5
Merge branch 'master' into experimental
...
Conflicts:
src/Symfony/Component/Form/Resources/config/validation.xml
2011-03-25 16:07:19 +01:00
stealth35
566320d1a9
work with Traversable
2011-03-25 15:58:27 +01:00
stealth35
280eca4af4
added FilesystemIterator namespace
2011-03-25 15:28:14 +01:00
stealth35
4d62fd5e6c
tab to spaces
2011-03-25 13:35:59 +01:00
stealth35
bdaee9dd09
use FilesytemIterator insteed opendir
2011-03-25 11:38:24 +01:00
stealth35
cee94be277
sanitize die (exit)
2011-03-25 11:26:43 +01:00
Bernhard Schussek
eb18676354
Merge branch 'master' into experimental
2011-03-25 09:24:38 +01:00
Fabien Potencier
043988f670
Merge remote branch 'aurelijus/wrong_arguments_for_exception'
...
* aurelijus/wrong_arguments_for_exception:
removed 0
Updated arguments for MethodNotAllowedHttpException
2011-03-25 06:59:44 +01:00
Bernhard Schussek
7b412cc762
[Form] Removed FormFactory::addGuessers() and moved guessers to constructor arg instead
2011-03-25 02:26:14 +01:00
Bernhard Schussek
9c4095a356
[FrameworkBundle] AddFormTypesPass now uses the service ID as alias if no alias is given
2011-03-25 02:18:21 +01:00
Bernhard Schussek
729438fdea
Merge branch 'rename-execute' into experimental
...
Conflicts:
src/Symfony/Component/Form/FileField.php
src/Symfony/Component/Form/Resources/config/validation.xml
2011-03-25 01:38:49 +01:00
Bernhard Schussek
50642bb830
[Form] Added EntityType DIC configuration to DoctrineBundle
2011-03-24 23:35:02 +01:00
Kris Wallsmith
2f8d5cd1c0
[FrameworkBundle] fixed build of config for asset packages
2011-03-24 15:18:50 -07:00
Benjamin Eberlei
8d6dd2b9af
[Form] Add Arbitrary Attribute Support to Form Rendering.
2011-03-24 22:08:08 +01:00
Aurelijus
e2492a4879
removed 0
2011-03-24 16:21:55 +02:00
Aurelijus
8f3b3a760d
Updated arguments for MethodNotAllowedHttpException
2011-03-24 16:17:34 +02:00
Bernhard Schussek
2faa47d03b
[Form] Added fallback templates to TwigThemeFactory
2011-03-24 15:11:43 +01:00
Bernhard Schussek
1211d77f49
[Form] Introduced renderer theme factories so that themes can be changed during runtime
2011-03-24 14:27:21 +01:00
Bernhard Schussek
5b41810b6d
Revert "[Form] Changed naming of Themes to ThemeEngines. Theme templates are now 'themes'"
...
This reverts commit 1efd680b68
.
2011-03-24 10:55:12 +01:00
Bernhard Schussek
5078a63c74
Revert "[Form] Fixed more naming of themes and theme engines"
...
This reverts commit 1aa34b7240
.
2011-03-24 10:54:47 +01:00
Bernhard Schussek
1aa34b7240
[Form] Fixed more naming of themes and theme engines
2011-03-23 22:51:37 +01:00
Bernhard Schussek
1efd680b68
[Form] Changed naming of Themes to ThemeEngines. Theme templates are now 'themes'
2011-03-23 22:34:58 +01:00
Kris Wallsmith
d3792e2ec8
[FrameworkBundle] cleaned up test class
2011-03-23 13:02:49 -07:00
Bernhard Schussek
9839aafb7d
Merge remote branch 'symfony/master' into experimental
2011-03-23 19:18:38 +01:00
Fabien Potencier
662a4b3740
removed the status message from HttpException, changed the signature so that most useful arguments are first, fixed many small problems introduced with previous HTTP exception refactoring
...
Quote from HTTP (bis) spec (Part 2 - 5.1.1):
The Reason Phrase exists for the
sole purpose of providing a textual description associated with the
numeric status code, out of deference to earlier Internet application
protocols that were more frequently used with interactive text
clients. A client SHOULD ignore the content of the Reason Phrase.
2011-03-23 16:11:54 +01:00
Fabien Potencier
a2294106fb
fixed finding resources under the main app/ directory
...
* Now, all resources can be stored globally (templates, assets, ...)
* The new directory is app/Resources/...
2011-03-23 09:04:21 +01:00
Fabien Potencier
3ca23c92ff
Merge remote branch 'weaverryan/controller-cannot-find-exception'
...
* weaverryan/controller-cannot-find-exception:
[FrameworkBundle] Giving a more specific message when a Bundle:Controller:Action controller class cannot be found
2011-03-23 07:13:45 +01:00
Fabien Potencier
cbe1f6f763
[FrameworkBundle] fixed cache:clear command for non-namespaced AppKernel classes
2011-03-23 07:06:36 +01:00
Ryan Weaver
98d03d1aec
[FrameworkBundle] Giving a more specific message when a Bundle:Controller:Action controller class cannot be found
...
It's a detail, but it hits usability. For normal bundles (those without children), we're able to actually print the namespace where we're looking for the Controller. For bundles with children, this would be a very verbose message, but we can at least print all of the bundles that we looked inside of.
2011-03-22 22:10:45 -05:00
Fabien Potencier
20245da86d
[FrameworkBundle] fixed cache_warmer configuration
2011-03-22 22:56:46 +01:00
Fabien Potencier
0ca1d1a8cd
[FrameworkBundle] fixed CS
2011-03-22 19:46:08 +01:00
lenar
6ec84bad76
namespaced Kernel support for cache:clear
2011-03-22 19:45:17 +01:00
Fabien Potencier
bb206a7b7b
[FrameworkBundle] fixed profiler on requests for which no route matches
2011-03-22 16:57:37 +01:00
Fabien Potencier
1991437766
Merge remote branch 'kriswallsmith/router/method-not-allowed'
2011-03-22 16:40:41 +01:00
Fabien Potencier
b0cee4527a
Merge remote branch 'weaverryan/controller_redirect'
2011-03-22 16:10:56 +01:00
Ryan Weaver
9ee9f5552b
[FrameworkBundle] Adding the redirect method back to the base controller
...
Some question whether or not the base Controller should be included at all. I think it absolutely must be included because it's important for beginners and for rapid development of smaller features/applications (and rapid development is good for beginners).
So, assuming that we *do* like the base Controller, we should really use it to its fullest potential - making the lives of developers as easy as possible.
2011-03-22 08:21:07 -05:00
Bernhard Schussek
0ede9198ea
Merge remote branch 'symfony/master' into experimental
2011-03-22 12:39:12 +01:00
Bernhard Schussek
270a98e413
[Form] Added support for types that are not registered in the DIC. These are identified by their FQ class name.
2011-03-22 12:33:15 +01:00
Bernhard Schussek
61804bbd8b
Merge remote branch 'symfony/master' into experimental
2011-03-21 20:27:39 +01:00
ornicar
1061194abf
[FrameworkBundle] Fix CacheClearCommand help message
2011-03-21 09:21:47 -07:00
Kris Wallsmith
2217a0d7e4
[FrameworkBundle] updated to support 405 Method Not Found responses
2011-03-21 05:58:02 -07:00
Fabien Potencier
85778caba1
[FrameworkBundle] added --without-debug option to cache:clear as the debug flag value can be different from the one used for the command execution (think generating the prod cache but still with debug information when running the command)
2011-03-21 11:29:20 +01:00
Fabien Potencier
e4a636a885
[FrameworkBundle] refactored the cache:clear command
...
* removed the hack on the Kernel
* removed inheritance from the warmup command
* major cleanup
2011-03-21 11:03:55 +01:00
Fabien Potencier
9cf9f674e8
[FrameworkBundle] simplified cache:clear and cache:warmup implementations
2011-03-21 10:03:58 +01:00
Fabien Potencier
e520956624
[FrameworkBundle] fixed help for cache:warmup
2011-03-21 10:03:32 +01:00
Fabien Potencier
5a528bcb55
[FrameworkBundle] change cache:clear warmup option to no-warmup as most of the time people will want to use the warmup version (especially in production env)
2011-03-21 09:39:28 +01:00
Fabien Potencier
00d47889a2
[FrameworkBundle] removed hardcoded AppKernel class name
2011-03-21 09:33:58 +01:00
Fabien Potencier
b00a903858
[FrameworkBundle] removed clearDir() method in some commands (use Filesystem::remove() instead)
2011-03-21 09:31:04 +01:00
Fabien Potencier
45f9c2fbf4
merged francisbesset:cache_clear_command
2011-03-21 09:24:16 +01:00
Bernhard Schussek
2dbb41714a
[Form] Merged Field and Form. Merged FieldBuilder and FormBuilder. After the refactoring, the distinction between the two concepts is small enough to merge them
2011-03-20 13:35:19 +01:00
Bernhard Schussek
c4b7a77ece
Merge remote branch 'beberlei/forms' into beberlei-merge
...
Conflicts:
src/Symfony/Component/Form/Type/Loader/DefaultTypeLoader.php
2011-03-19 19:01:57 +01:00
Bernhard Schussek
3586268bc2
[Form] Renamed field types. They are now always the name of the type with a 'Type' suffix
2011-03-19 18:31:24 +01:00
Benjamin Eberlei
39c2d3f166
[Form] Add PhpTheme that relies on no Template Engine, generalize tests to use for PhpTheme and PhpEngineTheme. Fixed some bugs
2011-03-19 17:47:18 +01:00
Bernhard Schussek
7f9284105d
[Form] Moved namespace FieldGuesser to Type\Guesser
2011-03-19 16:46:03 +01:00
Benjamin Eberlei
af60ddf8ad
Moved PhpTheme to FrameworkBundle and renamed to PhpEngineTheme
2011-03-19 15:27:39 +01:00
Benjamin Eberlei
32e1a7c8f9
Merge bschussek/experimental into branch forms.
2011-03-19 15:18:52 +01:00
Benjamin Eberlei
44e85ae2f2
Finished first version of PhpTheme, added huge functional test.
2011-03-19 15:17:31 +01:00
Bernhard Schussek
3e17b26105
[Form] Moved CSRF protection into separate field
2011-03-19 15:06:54 +01:00
Bernhard Schussek
8742cafc21
[FrameworkBundle] Fixed DI configuration for field types
2011-03-19 14:00:27 +01:00
Bernhard Schussek
89215d167d
Merge remote branch 'symfony/master' into experimental
2011-03-19 13:25:41 +01:00
Benjamin Eberlei
d44e2264ba
Merge branch 'experimental' of git://github.com/bschussek/symfony into forms
2011-03-19 09:36:30 +01:00
Fabien Potencier
962372c2d4
Merge remote branch 'thesalla/hungarian_translations'
2011-03-18 16:30:14 +01:00
Gyula Sallai
89a593423d
[FrameworkBundle] Fixed typos and corrected some minor grammatical mistakes in hungarian validator translations
2011-03-18 16:09:55 +01:00
Fabien Potencier
0c8ff92ecd
made the controller name in the WDT clickable
2011-03-18 16:09:21 +01:00
Fabien Potencier
f97006f738
[FrameworkBundle] fixed IDE setting for exceptions
2011-03-18 15:47:44 +01:00
Fabien Potencier
20a717ea3c
[WebProfileBundle] added the controller callable name in the WDT (also tweaked the CSS to free some space)
2011-03-18 14:57:41 +01:00
Jordi Boggiano
8fabca609f
Added monolog tags to create all core channels
2011-03-18 12:29:20 +01:00
Fabien Potencier
0d052201fe
[FrameworkBundle] fixed class load order
2011-03-18 12:07:42 +01:00
Fabien Potencier
c5a6c8432f
Merge remote branch 'vicb/templating'
2011-03-18 11:54:20 +01:00
Fabien Potencier
3627eee3c6
Merge remote branch 'vicb/cfg_rebase'
...
* vicb/cfg_rebase:
[Config] Ability to add and override node types without having to subclass NodeBuilder
[DoctrineBundle] Fix some typos
[SwiftMailerBundle] Fix a merge issue in the configuration
Tweak PHPDocs in the extension configuration files
[Config] Component refactoring
2011-03-18 11:41:43 +01:00
Victor Berchet
7f523466f4
[TwigBundle] Fix the cache warmer
2011-03-18 11:23:23 +01:00
Bernhard Schussek
3f70f89339
Merge remote branch 'symfony/master' into experimental
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
src/Symfony/Component/HttpFoundation/File/UploadedFile.php
2011-03-18 10:39:40 +01:00
Fabien Potencier
060f34fca9
[FrameworkBundle] fixed class loading order
2011-03-18 09:24:07 +01:00
Fabien Potencier
d02a700c06
[FrameworkBundle] fixed the traceable event manager
2011-03-18 07:42:41 +01:00
Fabien Potencier
a71f63e61d
[FrameworkBundle] fixed class loading order
2011-03-18 07:36:02 +01:00
Fabien Potencier
1af43a1562
fixed various bugs introduced during the event system migration
2011-03-18 07:35:59 +01:00
Bernhard Schussek
52f382a859
Merge branch 'event-manager' into experimental
2011-03-18 01:55:37 +01:00
John Wards
7c0fe6a3df
[FrameworkBundle] Fixed order of the classes to compile for EventDispatcher
2011-03-18 01:54:57 +01:00
John Wards
694c7fd402
[FrameworKBundle] Fixed TraceableEventDispatcher to use parent::getListeners() because parent::$listeners is now private. Passed event name to listenerToString()
2011-03-18 01:54:57 +01:00
John Wards
c56a803b8a
[FrameworkBundle] Fixed undefined $response variable in ProfilerListener
2011-03-18 01:54:57 +01:00
John Wards
cd3e184b76
[FrameworkBundle] Fixed typo in ProfileListener
2011-03-18 01:54:57 +01:00
John Wards
380afc5e95
[FrameworkBundle] Added missing argument for listenerToString() call
2011-03-18 01:54:57 +01:00
John Wards
d5adaa2e98
[FrameworkBundle] Fixed filename of TraceableEventDispatcher
2011-03-18 01:54:49 +01:00
Benjamin Eberlei
76b0041d1b
[Form] Implemented first PhpTheme attempt
2011-03-17 22:47:19 +01:00
Benjamin Eberlei
3bc825bbd4
Merge branch 'experimental' of git://github.com/bschussek/symfony into forms
2011-03-17 19:05:59 +01:00
Benjamin Eberlei
85b61fe1e2
First attempt of PhpTheme.
2011-03-17 19:05:48 +01:00
Fabien Potencier
6c8e71c8e7
renamed filterCore* to onCore*
...
The onCore* events are fired at some pre-defined points during the
handling of a request. At this is more important than the fact
that you can change things from the event.
2011-03-17 17:01:59 +01:00
Victor Berchet
0e84757d94
Tweak PHPDocs in the extension configuration files
2011-03-17 16:29:03 +01:00
Victor Berchet
1e0ed22c55
[Config] Component refactoring
...
The Config component API have changed and the extension configuration files must be updated accordingly:
1. Array nodes must enclosed their children definition in ->children() ... ->end() calls:
Before:
$treeBuilder->root('zend', 'array')
->arrayNode('logger')
->scalarNode('priority')->defaultValue('INFO')->end()
->booleanNode('log_errors')->defaultFalse()->end()
->end();
After:
$treeBuilder->root('zend', 'array')
->children()
->arrayNode('logger')
->children()
->scalarNode('priority')->defaultValue('INFO')->end()
->booleanNode('log_errors')->defaultFalse()->end()
->end()
->end()
->end();
2. The 'builder' method (in NodeBuilder) has been dropped in favor of an 'append' method (in ArrayNodeDefinition)
Before:
$treeBuilder->root('doctrine', 'array')
->arrayNode('dbal')
->builder($this->getDbalConnectionsNode())
->end();
After:
$treeBuilder->root('doctrine', 'array')
->children()
->arrayNode('dbal')
->append($this->getDbalConnectionsNode())
->end()
->end();
3. The root of a TreeBuilder is now an NodeDefinition (and most probably an ArrayNodeDefinition):
Before:
$root = $treeBuilder->root('doctrine', 'array');
$this->addDbalSection($root);
public function addDbalSection(NodeBuilder $node)
{
...
}
After:
$root = $treeBuilder->root('doctrine', 'array');
$this->addDbalSection($root);
public function addDbalSection(ArrayNodeDefinition $node)
{
...
}
4. The NodeBuilder API has changed (this is seldom used):
Before:
$node = new NodeBuilder('connections', 'array');
After:
The recommended way is to use a tree builder:
$treeBuilder = new TreeBuilder();
$node = $treeBuilder->root('connections', 'array');
An other way would be:
$builder = new NodeBuilder();
$node = $builder->node('connections', 'array');
Some notes:
- Tree root nodes should most always be array nodes, so this as been made the default:
$treeBuilder->root('doctrine', 'array') is equivalent to $treeBuilder->root('doctrine')
- There could be more than one ->children() ... ->end() sections. This could help with the readability:
$treeBuilder->root('doctrine')
->children()
->scalarNode('default_connection')->end()
->end()
->fixXmlConfig('type')
->children()
->arrayNode('types')
....
->end()
->end()
2011-03-17 16:26:15 +01:00
Fabien Potencier
1219b98ec5
renamed some methods in the event dispatcher
2011-03-17 15:27:42 +01:00
Bernhard Schussek
1c9a00733f
Merge branch 'event-manager' into experimental
...
Conflicts:
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php
2011-03-17 13:38:24 +01:00