Lukas Kahwe Smith
f2ac2a4c8a
changed templating to use setter injection for renderers
2011-01-07 15:08:35 +01:00
Johannes M. Schmitt
314defa8b4
added generic encoder factory
2011-01-06 19:20:56 +01:00
Fabien Potencier
911dbe9cc4
removed a circular reference in the definition of the templating and Twig services
...
* added a new TemplateNameConverter that parses a template name
* removed the dependency between the Twig loader and the Templating engine
2011-01-06 14:52:43 +01:00
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
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
Johannes M. Schmitt
55a48bcfa6
optimized AclVoter, added unit test
2011-01-03 07:46:16 +01:00
Johannes Schmitt
b4288459cc
added ACL system to the Security Component
2010-12-31 09:25:53 +01:00
Johannes Schmitt
db5e180d37
tweaked DI container
2010-12-30 15:59:52 +01:00
Fabien Potencier
2985cfa5a9
[FrameworkBundle] converted the special Profiler class to a DIC compiler class
2010-12-23 12:58:34 +01:00
Fabien Potencier
385ad72d64
[FrameworkBundle] converted the special routing resolver to a DIC compiler pass
2010-12-23 12:55:58 +01:00
Henrik Bjørnskov
3516a043bc
[FrameworkBundle] Moved the adding of Converter tags to a CompilerPass by suggestion of schmittjoh.
2010-12-23 11:08:19 +01:00
Bulat Shakirzyanov
13fc13519e
[FrameworkBundle] registered array session storage service in DIC
2010-12-23 08:30:52 +01:00
Fabien Potencier
1af21221ae
refactored and fix previous commit
2010-12-22 15:33:38 +01:00
Henrik Bjørnskov
baf07a13ac
added converter manager and converter interface incl. tests
2010-12-22 14:38:38 +01:00
Johannes Schmitt
27f540463a
added generic encoder factory
2010-12-21 16:23:46 +01:00
Johannes M. Schmitt
03d25cc7fa
refactored creation of access decision manager to make use of newly added compiler passes
2010-12-21 08:52:48 +01:00
Jordi Boggiano
4f46235ab0
[HttpFoundation] Send proper charset along with the default text/html header
2010-12-16 10:23:53 +01:00
Johannes Schmitt
3c692bd160
fixed user refreshing after unserialization
2010-12-15 17:38:30 +01:00
Fabien Potencier
c9f08c0a68
changed all XML attribute names to take - instead of _ (everything should be consistent now)
2010-12-14 16:30:20 +01:00
Fabien Potencier
9644fcbb71
[FrameworkBundle] changed default name of Routing matcher class to be consistent with the generator class in cache
2010-12-12 14:24:27 +01:00
Johannes Schmitt
abe8047262
added authentication trust resolver
2010-12-12 10:49:43 +01:00
Jeremy Mikola
c8c9fba7d9
[Routing] Add optional "type" param for loader hinting when resource strings are ambiguous
...
Currently, ambiguities only arise for PHP files, as PhpFileLoader and AnnotationFileLoader would both claim support. Future conflicts may occur if the XML, YAML, or PHP loaders were to receive Directory and Glob loaders (as annotations have).
Since the "type" parameter is optional, loader resolution will default to awarding resolution to the first loader to claim support. A previous hack in PhpFileLoader to avoid an AnnotationFileLoader conflict was removed, so that should be the only lost backwards compatibility with this patch. Unit tests were also created for the various loader classes, although only the supports() method is being tested.
This implementation was proposed on the symfony-dev mailing list in response to Fabien's RFC for custom loader notation: http://groups.google.com/group/symfony-devs/browse_thread/thread/3104c1a9e45799d2/20fbe393c1afe088
2010-12-10 09:48:10 +01:00
Kris Wallsmith
5da423be20
[HttpKernel] Added getRequest() to HttpKernelInterface.
2010-12-10 08:43:05 +01:00
Fabien Potencier
973a8f1f24
fixed typo
2010-12-10 07:34:06 +01:00
Fabien Potencier
3dfd59b6bc
updated comment for the request service
2010-12-09 09:43:37 +01:00
Fabien Potencier
04f8bc7317
fixed default httpkernel configuration
2010-12-09 09:41:50 +01:00
Jeremy Mikola
7eea4882db
[HttpKernel] Move request-stashing behavior to the Kernel class
...
Previously, HttpKernel performed request-stashing. By moving this to the Kernel class, the request is now available immediately after the kernel becomes aware of it. If the kernel is allowed to boot lazily (during the first call to handle()), this also allows an actual master Request to be available during booting.
The old "request" service definition (with a bogus class name) can be replaced with a factory-aware definition that retrieves the request directly from the kernel.
2010-12-09 09:38:17 +01:00
Johannes M. Schmitt
d94420f3a5
logout refactoring
2010-12-08 08:26:58 +01:00
Fabien Potencier
978a14c568
[FrameworkBundle] made firewall authentication listeners configurable
2010-12-02 10:09:54 +01:00
Fabien Potencier
d209cbef8b
fixed schema
2010-11-27 11:56:35 +01:00
Fabien Potencier
6ab277ee41
added a LazyLoader for the routing
2010-11-26 17:44:17 +01:00
Fabien Potencier
ad68092291
removed the OutputEscaper component, added escape mechanism in the Templating Engine class
2010-11-23 12:59:21 +01:00
H. Westphal
5b056b2b9a
Refactored web profiler template definitions to make it easier for bundle developers to add their templates
2010-11-23 12:48:35 +01:00
Bernhard Schussek
1bbdb5ec07
[Form][FrameworkBundle][TwigBundle] Refactored the PHP and Twig templating layer
...
Support for theming in PHP templates has been dropped.
True theming should support theme inheritance, e.g. mytheme <- table <- default.
Currently, the Templating component does not support such inheritance. As the
only purpose of the themes so far was to style field groups with tables or
divs, and because automatic rendering of field groups/forms through the render()
method is discouraged and only recommended for rapid prototyping, themes are
dropped for now.
2010-11-16 22:26:35 +01:00
Benjamin Eberlei
5aeb358721
[Validator] Made the namespace prefix for annotations configurable
...
Modified the framework bundle to use validation => Symfony\Component\Validator\Validator defaults.
Enhanced Framework Extension validator configuration to allow to extend this configuration with
user-specified annotations, for example:
validation:
enabled: true
annotations:
namespaces:
myprojectvalidator: MyProject\Validator\
to register @myprojectvalidator:Validator(...)
2010-11-16 07:28:02 +01:00
Jordi Boggiano
d9295058b1
[FrameworkBundle] Make the security context optional
2010-11-15 18:32:02 +01:00
Jordi Boggiano
3813eecf17
[Translation] Added YamlFileLoader
2010-11-15 09:33:00 +01:00
Jordi Boggiano
7bf77cb500
[FrameworkBundle] Add comment to clarify the request service issue
2010-11-13 14:50:32 +01:00
Fabien Potencier
5860bdd75a
[FrameworkBundle] re-added a fake request service so that you can rely on it when defining services with a dependency on it
2010-11-12 17:40:51 +01:00
Fabien Potencier
51a3d0ba6a
refactored session configuration
...
The configuration names have been changed to avoid confusion (user was
ambiguous)
Before:
<app:user default_locale="fr">
<app:session name="SYMFONY" type="Native" lifetime="3600" />
</app:user>
After:
<app:session default_locale="fr" name="SYMFONY" storage_id="native" lifetime="3600" />
2010-11-10 10:47:03 +01:00
ornicar
6f034d2c80
[FrameworkBundle] Make the use_forward option of FormAuthenticationListener configurable
2010-11-10 07:53:03 +01:00
Fabien Potencier
7b02766373
fixed session management
...
Some explanations on how it works now:
* The Session is an optional dependency of the Request. If you create the
Request yourself (which is mandatory now in the front controller) and if
you don't inject a Session yourself (which is recommended if you want the
session to be configured via dependency injection), the Symfony2 Kernel
will associate the Session configured in the Container with the Request
automatically.
* When duplicating a request, the session is shared between the parent and
the child (that's because duplicated requests are sub-requests of the main
one most of the time.) Notice that when you use ::create(), the behavior is
the same as for the constructor; no session is attached to the Request.
* Symfony2 tries hard to not create a session cookie when it is not needed
but a Session object is always available (the cookie is only created when
"something" is stored in the session.)
* Symfony2 only starts a session when:
* A session already exists in the request ($_COOKIE[session_name()] is
defined -- this is done by RequestListener);
* There is something written in the session object (the cookie will be sent
to the Client).
* Notice that reading from the session does not start the session anymore (as
we don't need to start a new session to get the default values, and because
if a session exists, it has already been started by RequestListener.)
2010-11-09 22:34:48 +01:00
Skorney
a5d28d2c1b
Fix security.authentication.form.options array to be not empty
2010-11-03 15:17:26 +01:00
Fabien Potencier
dd4f87b8c2
made form login configurable
2010-10-20 11:42:19 +02:00
Fabien Potencier
bdb051083c
[FrameworkBundle] removed default controller for login
2010-10-20 11:34:21 +02:00
Fabien Potencier
4b321141f9
[FrameworkBundle] added a way to configure the switch-user behavior
2010-10-20 10:59:13 +02:00
Fabien Potencier
71228b5f29
[FrameworkBundle] added a way to configure the logout paths
2010-10-20 10:48:05 +02:00
Fabien Potencier
f216f313e8
added the Security Component and its integration into the MVC framework
...
Happy birthday symfony!
2010-10-19 13:33:17 +02:00
Kris Wallsmith
e1f842344e
[FrameworkBundle] added a DIC tag-based constraint validator factory
2010-10-16 08:34:40 +02:00
Fabien Potencier
7e66933876
fixed inconsistency when calling the Http Kernel instance from an event
2010-10-15 11:02:35 +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
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
d3aca1c04a
[FrameworkBundle] added support for the Translation component
2010-09-27 09:46:15 +02:00
Fabien Potencier
aaba52d928
[FrameworkBundle] made all Router options configurable
2010-09-26 11:28:09 +02:00
Fabien Potencier
866c306dc8
removed the message interpolator system in the Validator component (i18n management should be done globally, not in a specific component)
2010-09-24 16:41:28 +02:00
Fabien Potencier
2862c6cce4
refactored configuration names
...
How to upgrade (have a look at the skeleton):
* the "web:config" namespace is now "app:config"
- <web:config csrf-secret="xxxxxxxxxx" charset="UTF-8" error-handler="null">
- <web:router resource="%kernel.root_dir%/config/routing.xml" />
- <web:validation enabled="true" annotations="true" />
- </web:config>
+ <app:config csrf-secret="xxxxxxxxxx" charset="UTF-8" error-handler="null">
+ <app:router resource="%kernel.root_dir%/config/routing.xml" />
+ <app:validation enabled="true" annotations="true" />
+ </app:config>
* the "web:templating" namespace is now a sub-namespace of "app:config"
- <web:templating
- escaping="htmlspecialchars"
- />
+ <app:config>
+ <app:templating escaping="htmlspecialchars" />
+ </app:config>
* the "web:user" namespace is now a sub-namespace of "app:config"
- <web:user default-locale="fr">
- <web:session name="SYMFONY" type="Native" lifetime="3600" />
- </web:user>
+ <app:config>
+ <app:user default-locale="fr">
+ <app:session name="SYMFONY" type="Native" lifetime="3600" />
+ </app:user>
+ </app:config>
* the "web:test" namespace is now a sub-namespace of "app:config"
- <web:test />
+ <app:config error_handler="false">
+ <app:test />
+ </app:config>
* the "swift:mailer" namespace is now "swiftmailer:config"
- <swift:mailer
+ <swiftmailer:config
transport="smtp"
encryption="ssl"
auth_mode="login"
* the "zend:logger" namespace is now a sub-namespace of "zend:config"
- <zend:logger
- priority="info"
- path="%kernel.logs_dir%/%kernel.environment%.log"
- />
+ <zend:config>
+ <zend:logger priority="info" path="%kernel.logs_dir%/%kernel.environment%.log" />
+ </zend:config>
2010-09-20 21:08:18 +02:00
Fabien Potencier
d657adbfa2
removed Symfony\Framework
...
Things have been moved to Symfony\Component\HttpKernel
and Symfony\Bundle\FrameworkBundle
The kernel configuration namespace was removed and merged
with the main web configuration namespace (kernel:config => web:config,
kernel:test => web:test, and kernel:session => web:session):
Before:
<kernel:config charset="UTF-8" error_handler="null" />
<web:config csrf-secret="xxxxxxxxxx">
<web:router resource="%kernel.root_dir%/config/routing.xml" />
<web:validation enabled="true" annotations="true" />
</web:config>
After:
<web:config csrf-secret="xxxxxxxxxx" charset="UTF-8" error-handler="null">
<web:router resource="%kernel.root_dir%/config/routing.xml" />
<web:validation enabled="true" annotations="true" />
</web:config>
Renamed classes:
Symfony\{Framework => Bundle\FrameworkBundle}\Cache\Cache
Symfony\{Framework => Bundle\FrameworkBundle}\Client
Symfony\{Framework => Bundle\FrameworkBundle}\Debug\EventDispatcher
Symfony\{Framework => Bundle\FrameworkBundle}\Debug\EventDispatcherTraceableInterface
Symfony\{Framework => Bundle\FrameworkBundle}\EventDispatcher
Symfony\{Framework => Component\HttpFoundation}\UniversalClassLoader
Symfony\{Framework => Component\HttpKernel}\Bundle\Bundle
Symfony\{Framework => Component\HttpKernel}\Bundle\BundleInterface
Symfony\{Framework => Component\HttpKernel}\ClassCollectionLoader
Symfony\{Framework => Component\HttpKernel}\Debug\ErrorException
Symfony\{Framework => Component\HttpKernel}\Debug\ErrorHandler
Symfony\{Bundle\FrameworkBundle => Component\HttpKernel}\Debug\ExceptionListener
Symfony\{Framework => Component\HttpKernel}\Kernel
2010-09-17 12:58:24 +02:00
Fabien Potencier
226277fd0e
added a way to activate CSRF protection from the configuration
2010-09-10 14:32:33 +02:00
Fabien Potencier
0b378d1b3e
added a way to conditionnaly enable the profiler based on the request
2010-09-02 13:54:32 +02:00
Fabien Potencier
f3caaf9638
[FrameworkBundle] -
2010-09-01 13:54:19 +02:00
Fabien Potencier
3a95bdab7a
[FrameworkBundle] added the environment in the router classes in the cache
2010-09-01 13:46:55 +02:00
Fabien Potencier
60ea1eef69
added a configuraiton to allow the profiler to be enabled only when an exception occurs
2010-08-31 22:22:31 +02:00
Noël GUILBERT
d94271ba9c
[FrameworkBundle] removed dependency with the DIC
2010-08-30 18:59:01 +02:00
Fabien Potencier
0208800459
refactored exception management (removed the ExceptionManager)
2010-08-29 12:35:48 +02:00
Fabien Potencier
72db4c7342
refactored Profiler and DataCollector classes (the WDT has been removed and will be re-added in the upcoming WebProfilerBundle)
2010-08-29 12:17:06 +02:00
Fabien Potencier
82ff79064a
added a priority to the event dispatcher listeners
2010-08-26 14:08:42 +02:00
Fabien Potencier
ec8500bd64
[FrameworkBundle] added support for previous exceptions in the exception pages
2010-08-24 14:01:57 +02:00
Fabien Potencier
bf82cf42dd
renamed Symfony\Components to Symfony\Component
2010-08-20 23:09:55 +02:00
Fabien Potencier
d5a61e3bc5
added a way to provide asset base URLs in configuration
2010-08-19 16:17:20 +02:00
Fabien Potencier
9881a401f2
[FrameworkBundle] moved internal_routing.xml
2010-08-19 12:47:22 +02:00
Fabien Potencier
d5069fc594
[FrameworkBundle] refactored Exception management
2010-08-17 20:09:38 +02:00
Fabien Potencier
42c2affbb1
[FrameworkBundle] removed Container dependency for RequestListener
2010-08-14 22:44:00 +02:00
Fabien Potencier
e510778e18
[FrameworkBundle] removed old file
2010-08-14 22:19:33 +02:00
Fabien Potencier
4e2df31d64
[FrameworkBundle] moved templating configuration from FrameworkBundle to FrameworkExtension
2010-08-10 15:38:01 +02:00
Fabien Potencier
c043c46116
[FrameworkBundle] fixed actions helper (and allowed short notation in the resolver)
2010-08-10 15:03:31 +02:00
Fabien Potencier
485400dd51
refactored the controller resolver (+ made a small routing optimization)
2010-08-09 15:21:59 +02:00
Fabien Potencier
d440f2edbe
[FrameworkBundle] fixed CS
2010-08-05 08:37:02 +02:00
Fabien Potencier
c6bde10076
[FrameworkBundle] fixed XSD for validation
2010-08-05 08:33:24 +02:00
Fabien Potencier
355ed9b5f9
renamed annotation to tag in the DIC
2010-08-05 07:34:53 +02:00
Fabien Potencier
cae410cfb5
removed auto_start left over
2010-08-04 09:09:35 +02:00
Fabien Potencier
b9199cb21c
[FrameworkBundle] added validation in XSD
2010-08-01 23:28:50 +02:00
Fabien Potencier
e35d345204
changed HttpKernel workflow to allow more flexibility
2010-07-22 22:32:11 +02:00
Fabien Potencier
4e3e86c4a7
refactored routing management (it's now possible to disable the default routing)
...
* removed the Kernel::registerRoutes() method
* added a router entry in <web:config> (replaces the registerRoutes() method)
<web:config>
<web:router resource="%kernel.root_dir%/config/routing.xml" />
</web:config>
* refactored routing configuration in its own routing.xml file (leverages the new routing component API),
which is loaded only if <web:router> is defined in the configuration
2010-07-20 13:11:50 +02:00
Fabien Potencier
93f2d6eaa6
[FrameworkBundle] removed pdo.xml
2010-07-17 07:58:44 +02:00
Fabien Potencier
fb4bd3568d
refactored the controller manager, moved generic parts to the HttpKernel component
2010-07-13 08:53:30 +02:00
Fabien Potencier
15d439809c
renamed Symfony\Bundle\FoundationBundle to Symfony\Bundle\FrameworkBundle
2010-07-09 10:25:52 +02:00