Lukas Kahwe Smith
fd97c0caca
renamed getPreviouses() to getAllPrevious
2011-04-24 01:08:15 +02:00
Pascal Borreli
8c0beea677
[Phpdoc] Cleaning/fixing
2011-04-23 15:18:47 +00:00
Pascal Borreli
b5769c52d6
Fixed various typo
2011-04-22 23:12:50 +00:00
Fabien Potencier
5ff67a8d54
made request data collector more robust when the user got the request content as a resource
2011-04-19 14:02:32 +02:00
Johannes M. Schmitt
30bac46e1b
[DependencyInjection] make base class of generated container configurable
2011-04-17 12:29:33 +02:00
Fabien Potencier
c6818d8bf7
[HttpKernel] added support for controllers as arrays and object with an __invoke method
...
Controllers can now be any valid PHP callable
2011-04-16 16:26:15 +02:00
Fabien Potencier
ad112da5bc
added the request content to the request data collector
2011-04-15 11:31:08 +02:00
Fabien Potencier
9cc340a262
fixed inconsistencies in file locator classes
2011-04-14 12:52:22 +02:00
Fabien Potencier
b32a7e935a
simplified code
2011-04-13 23:18:28 +02:00
Fabien Potencier
6957dae4f9
[HttpKernel] added support for cookies in Client
2011-04-13 20:25:35 +02:00
Fabien Potencier
66c4bc727c
[HttpFoundation] renamed Cookie::getExpire() to getExpiresTime() to be consistent with the DomCrawler component
2011-04-13 20:10:39 +02:00
hhamon
facb67cbfa
[HttpKernel] private $traces property was not initialized to an empty array. When using the getLog() method to debug traces, it led to a warning in the apache error log.
2011-04-13 14:24:53 +02:00
Victor Berchet
ceb2c976de
[HttpKernel] Fix the case where no resource is found
2011-04-08 08:52:03 +02:00
Pascal Borreli
3dfbc08d73
[HttpKernel][Windows] Removed useless DIRECTORY_SEPARATOR conversion
2011-04-06 17:30:32 +00:00
Victor Berchet
7707c0f251
[Kernel] Fix bundle inheritance
2011-04-06 07:46:08 +02:00
Fabien Potencier
6faacdec27
[HttpKernel] fixed CS
2011-04-05 09:48:36 +02:00
Fabien Potencier
9bcd49683e
Merge remote branch 'vicb/resource_path'
...
* vicb/resource_path:
Update for Bundle names long again (= include the 'Bundle' suffix)
[Kernel] Make locateResource() throws an exception when a resource from a Bundle hides a custom resource
[Kernel] Make resources overriding consistent across bundle directories and resource directories
[Kernel] Improve test semantic
[Kernel] Update tests with shorter bundle names
[Kernel] Restore the tests for the locateResource method
Resource paths should use the full bundle name (with the 'Bundle' postfix)
2011-04-05 09:42:47 +02:00
Fabien Potencier
fe43e1b759
Merge remote branch 'lsmith77/default_namespace2'
...
* lsmith77/default_namespace2:
added default implementation for getNamespace()
2011-04-04 18:46:30 +02:00
Victor Berchet
5317c96fef
Update for Bundle names long again (= include the 'Bundle' suffix)
2011-04-04 11:39:41 +02:00
Victor Berchet
7ed18bf829
[Kernel] Make locateResource() throws an exception when a resource from a Bundle hides a custom resource
2011-04-04 11:24:51 +02:00
Victor Berchet
3cd3dd39ba
[Kernel] Make resources overriding consistent across bundle directories and resource directories
2011-04-04 11:24:51 +02:00
Victor Berchet
8b7c857ef3
Resource paths should use the full bundle name (with the 'Bundle' postfix)
2011-04-04 11:24:51 +02:00
Fabien Potencier
f232b3cdda
reverted Merge remote branch 'kriswallsmith/kernel/shorter-bundle-names'
2011-04-04 11:10:56 +02:00
Ryan Weaver
083b25b68c
[HttpKernel] Wrapping the end of handleException() in a try-catch to prevent response listeners from throwing another exception
2011-04-01 18:01:36 -05:00
Martin Hason
e43b53fea3
[HttpKernel] removed unused class
2011-04-01 10:50:12 +02:00
Lukas Kahwe Smith
ab93d40855
added default implementation for getNamespace()
2011-03-31 14:21:44 +02:00
Johannes Schmitt
c3ab11f9db
removed exit calls
2011-03-29 01:06:04 +02: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
49063a5314
Merge remote branch 'kriswallsmith/kernel/shorter-bundle-names'
...
* kriswallsmith/kernel/shorter-bundle-names:
updated codebase to use shorter bundle names
[HttpKernel] updated component to work with shorter bundle names
[HttpKernel] updated Bundle::getName() to validate bundle class name and rtrim "Bundle"
2011-03-28 18:06:41 +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
Matthieu Bontemps
a294024184
Fix Filesystem->mkdir return value
2011-03-27 19:17:13 +02:00
Kris Wallsmith
a8ffa909ad
[HttpKernel] updated component to work with shorter bundle names
2011-03-27 06:25:13 -07:00
Kris Wallsmith
dd9ad97a0c
[HttpKernel] updated Bundle::getName() to validate bundle class name and rtrim "Bundle"
2011-03-27 05:31:57 -07:00
Ryan Weaver
80c102761c
[HttpKernel] Making the "no response returned from controller" more explanatory when it's possible that the user forgot a return statement in his/her controller
...
Also made "null" show up as null in the exception message, instead of as a blank string (slightly more expressive).
2011-03-26 14:35:55 -05:00
Fabien Potencier
bfd57c5cf0
[HttpKernel] fixed typo
2011-03-26 12:54:13 +01:00
Fabien Potencier
cc46e8d46a
moved the Filesystem class form FrameworBundle to HttpKernel (refactored it slightly)
2011-03-26 08:37:25 +01:00
stealth35
cee94be277
sanitize die (exit)
2011-03-25 11:26:43 +01:00
Fabien Potencier
0e57943531
[HttpKernel] fixed typo
2011-03-25 07:19:02 +01:00
Fabien Potencier
1b8dc80215
[HttpKernel] moved from protected to private
2011-03-23 19:47:16 +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
abb99e9469
[HttpKernel] changed the abstract BaseHttpException to HttpException to allow the creation of any HTTP exception
2011-03-23 11:12:31 +01:00
Kris Wallsmith
10dc18b28b
[HttpKernel] refactored HTTP exceptions to be more flexible
2011-03-21 05:57:35 -07: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
82a5ae669e
[FrameworkBundle] fixed merge problem
2011-03-21 09:43:41 +01:00
Fabien Potencier
45f9c2fbf4
merged francisbesset:cache_clear_command
2011-03-21 09:24:16 +01:00
Victor Berchet
cead49fa2b
[Kernel] Fixed a typo
2011-03-18 11:17:56 +01:00
Fabien Potencier
9e88fc4e66
Merge remote branch 'kriswallsmith/kernel/uploaded-file-for-test'
2011-03-18 08:02:16 +01:00
Kris Wallsmith
a9af77a035
[HttpKernel] fixed file uploads in functional tests
2011-03-17 16:09:31 -07: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
Fabien Potencier
794b3b8e86
fixed phpdoc
2011-03-17 16:02:36 +01:00
Fabien Potencier
1219b98ec5
renamed some methods in the event dispatcher
2011-03-17 15:27:42 +01:00
Bernhard Schussek
c02f4220f2
[HttpKernel] Removed unused onCoreSecurity event
2011-03-17 13:24:38 +01:00
Bernhard Schussek
ab57e5c611
[HttpKernel] Added more code documentation to the HttpKernel events
2011-03-17 13:06:32 +01:00
Bernhard Schussek
5f14d8d6aa
Merge remote branch 'symfony/master' into event-manager
...
Conflicts:
src/Symfony/Bundle/AsseticBundle/CacheWarmer/AssetWriterCacheWarmer.php
src/Symfony/Bundle/AsseticBundle/Tests/CacheWarmer/AssetWriterCacheWarmerTest.php
src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php
src/Symfony/Bundle/FrameworkBundle/Resources/config/profiling.xml
src/Symfony/Component/HttpKernel/HttpKernel.php
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php
2011-03-17 12:34:12 +01:00
Fabien Potencier
e8b0b488cb
[HttpKernel] moved exception management logic to its own method
2011-03-17 09:16:53 +01:00
Fabien Potencier
14903ce915
[HttpKernel] removed the need to call getRootDir() more than once
2011-03-16 21:50:24 +01:00
Fabien Potencier
a6411cb712
[HttpKernel] fixed phpdoc
2011-03-16 21:39:30 +01:00
Fabien Potencier
4da43df963
merged vicb/kernel
2011-03-16 21:30:23 +01:00
Fabien Potencier
f48512cd54
[HttpKernel] renamed default profiler table to sf_profiler_data
2011-03-16 20:47:50 +01:00
Fabien Potencier
ad3b7e912d
merged noelg/profiler
2011-03-16 16:44:44 +01:00
Fabien Potencier
8cc37eaa23
[HttpKernel] fixed CS
2011-03-16 15:16:21 +01:00
Jan Schumann
c7cde09d1c
fixed coding standard
2011-03-15 14:16:19 +01:00
Jan Schumann
bbfb1ffb53
fixed coding standard
2011-03-15 14:08:43 +01:00
Jan Schumann
d1ebc8da9f
- Added abstract PDO profiler storage, updated sqlite storage and added a mysql storage.
...
- Updated profiler config in framework bundle
2011-03-15 14:08:43 +01:00
Fabien Potencier
e5fad94482
[HttpKernel] fixed a unit test
2011-03-15 13:43:45 +01:00
Fabien Potencier
50e463977b
Merge remote branch 'vicb/profiler_again'
2011-03-15 13:37:52 +01:00
Fabien Potencier
b6528c3ea6
Merge remote branch 'hason/container_class'
2011-03-15 11:41:05 +01:00
Martin Hason
ba9653d99a
[HttpKernel] optimized getContainerLoader
2011-03-15 11:00:45 +01:00
Martin Hason
cef70893df
[HttpKernel], [FrameworkBundle] added method getContainerClass and parameter kernel.container_class
2011-03-15 09:16:02 +01:00
Fabien Potencier
f4e4a2aa1b
refactored ConfigCache and optimized container:debug task
2011-03-14 18:37:25 +01:00
Victor Berchet
8128300baa
[WebProfilerBundle] Revert the support for a status in data collectors
2011-03-14 17:24:11 +01:00
Bernhard Schussek
06c682b4fb
Switched from Doctrine's EventManager implementation to the EventManager clone in Symfony2 (now called EventDispatcher again)
2011-03-13 19:49:10 +01:00
Bernhard Schussek
25931caeab
Merge remote branch 'symfony/master' into event-manager
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventManager.php
src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php
src/Symfony/Component/Security/Http/Firewall.php
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php
src/Symfony/Component/Security/Http/Firewall/AccessListener.php
src/Symfony/Component/Security/Http/Firewall/AnonymousAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/BasicAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/ChannelListener.php
src/Symfony/Component/Security/Http/Firewall/ContextListener.php
src/Symfony/Component/Security/Http/Firewall/DigestAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php
src/Symfony/Component/Security/Http/Firewall/ListenerInterface.php
src/Symfony/Component/Security/Http/Firewall/LogoutListener.php
src/Symfony/Component/Security/Http/Firewall/RememberMeListener.php
src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php
tests/Symfony/Tests/Component/Security/Http/Firewall/RememberMeListenerTest.php
2011-03-13 19:15:25 +01:00
Victor Berchet
36d51d7bbd
[WebProfilerBundle] Config panel
...
Split the main Key / Value table in different sections.
Add a list of active bundles.
2011-03-13 16:25:16 +01:00
Victor Berchet
b04a647c65
[WebProfilerBundle] Create a configuration panel
2011-03-13 15:50:44 +01:00
Victor Berchet
f752dd34a0
[Profiler] Profilers now return a status which is used for visual feedback
2011-03-13 15:50:44 +01:00
Francis Besset
bb7986e221
[FrameworkBundle] Added cache:clear command with warmup option
2011-03-11 23:35:48 +01:00
Fabien Potencier
72586b2d5f
Merge remote branch 'opensky/hotfix/test_client'
...
* opensky/hotfix/test_client:
[HttpKernel] added test for uri change
[HttpKernel] got rid of url transformation into uri, as parse_url doesn't work with uris
2011-03-09 21:46:16 +01:00
Fabien Potencier
8716c2ad1e
merged
2011-03-08 15:43:02 +01:00
Bernhard Schussek
2cf3779a2c
Renamed EventArgs classes and adapted remaining code to EventManager
...
The only missing part is ContainerAwareEventManager::addEventSubscriberService(),
because I'm not sure how to find out the class name of a service in the DIC.
Also, inline documentation of this code needs to be finished once it is accepted.
2011-03-07 19:16:05 +01:00
Bernhard Schussek
a54d3e6fb0
Merge remote branch 'symfony/master' into event-manager
2011-03-07 19:15:57 +01:00
Bulat Shakirzyanov
b80f307efd
[HttpKernel] got rid of url transformation into uri, as parse_url doesn't work with uris
2011-03-07 10:54:31 -05:00
ornicar
5d794cc62a
[HttpKernel] Remove method visibility in BundleInterface
2011-03-06 19:17:50 -08:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00
Fabien Potencier
a137d72351
Merge remote branch 'hhamon/cookie_path_fix'
...
* hhamon/cookie_path_fix:
[Security] renamed Cookie::isHttponly() to Cookie::isHttpOnly()
[HttpKernel] renamed Cookie::isHttponly() to Cookie::isHttpOnly()
[BrowserKit] renamed Cookie::isHttponly() to Cookie::isHttpOnly()
[HttpFoundation] fix cookie path default value to / and added some new unit tests to cover the class
2011-03-06 10:44:40 +01:00
Fabien Potencier
54e19b5376
Merge remote branch 'digitalkaoz/httpkernel-debug'
...
* digitalkaoz/httpkernel-debug:
[HttpKernel] added tests for debug stuff
[HttpKernel] reset handling if subject::handle throws an exception, otherwise it wouldnt be able to handle furthermore
2011-03-06 10:37:14 +01:00
Robert Schönthal
415b456b4e
[HttpKernel] reset handling if subject::handle throws an exception, otherwise it wouldnt be able to handle furthermore
2011-03-05 20:21:23 +01:00
Bernhard Schussek
f1393d7b1f
Replaced EventDispatcher by Doctrine's EventManager implementation
...
Doctrine's EventManager implementation has several advantages over the
EventDispatcher implementation of Symfony2. Therefore I suggest that we
use their implementation.
Advantages:
* Event Listeners are objects, not callbacks. These objects have handler
methods that have the same name as the event. This helps a lot when
reading the code and makes the code for adding an event listener shorter.
* You can create Event Subscribers, which are event listeners with an
additional getSubscribedEvents() method. The benefit here is that the
code that registers the subscriber doesn't need to know about its
implementation.
* All events are defined in static Events classes, so users of IDEs benefit
of code completion
* The communication between the dispatching class of an event and all
listeners is done through a subclass of EventArgs. This subclass can be
tailored to the type of event. A constructor, setters and getters can be
implemented that verify the validity of the data set into the object.
See examples below.
* Because each event type corresponds to an EventArgs implementation,
developers of event listeners can look up the available EventArgs methods
and benefit of code completion.
* EventArgs::stopPropagation() is more flexible and (IMO) clearer to use
than notifyUntil(). Also, it is a concept that is also used in other
event implementations
Before:
class EventListener
{
public function handle(EventInterface $event, $data) { ... }
}
$dispatcher->connect('core.request', array($listener, 'handle'));
$dispatcher->notify('core.request', new Event(...));
After (with listeners):
final class Events
{
const onCoreRequest = 'onCoreRequest';
}
class EventListener
{
public function onCoreRequest(RequestEventArgs $eventArgs) { ... }
}
$evm->addEventListener(Events::onCoreRequest, $listener);
$evm->dispatchEvent(Events::onCoreRequest, new RequestEventArgs(...));
After (with subscribers):
class EventSubscriber
{
public function onCoreRequest(RequestEventArgs $eventArgs) { ... }
public function getSubscribedEvents()
{
return Events::onCoreRequest;
}
}
$evm->addEventSubscriber($subscriber);
$evm->dispatchEvent(Events::onCoreRequest, new RequestEventArgs(...));
2011-03-05 15:30:34 +01:00
Hugo Hamon
2cbdd2c18b
[HttpKernel] renamed Cookie::isHttponly() to Cookie::isHttpOnly()
2011-03-03 14:52:26 +01:00
Kris Wallsmith
33d47be32e
[HttpKernel] added an subclass merge extension configuration compiler pass to ensure each bundle's "main" extension is loaded
2011-03-03 13:54:32 +01:00
Pascal Borreli
c70824d22c
[HttpKernel] Fixed Typo
2011-03-01 18:58:08 +01:00
Martin Hason
1d04ebfda5
[HttpKernel] changed extends Extension to implements ExtensionInterface
2011-02-28 09:55:53 +01:00
Pascal Borreli
1fcb99b936
[HttpKernel] Removed useless else
2011-02-27 18:36:38 +01:00
Pascal Borreli
b9a6f9210b
[HttpKernel] Fixed typo
2011-02-26 20:02:06 +01:00
noel guilbert
a8eff2b154
Improved profiler to store and retrieve sub requests data
2011-02-26 17:24:02 +01:00
Victor Berchet
38da529997
[Kernel] Get rid of Kernel::registerRootDir()
2011-02-24 14:02:28 +01:00
Fabien Potencier
f54cedfe5e
added LICENSE files for the subtree repositories
2011-02-22 18:58:15 +01:00
Kris Wallsmith
7c794b349d
[HttpKernel] fixed typo
2011-02-22 07:38:03 -08:00
Fabien Potencier
cef86a3771
[HttpKernel] added a way to change the ESI cache strategy
2011-02-22 13:50:26 +01:00
Fabien Potencier
fc372bc217
[HttpKernel] changed core.view event to use notifyUntil() instead of filter() -- as soon as a listener returns a Response, we are done
2011-02-21 18:24:55 +01:00
Fabien Potencier
bf20238178
fixed a bug in Response content-type auto-detection
...
Without this patch, if you call __toString() on a Response,
the content-type auto-detection would never be trigerred
as __toString() changes the default content-type.
2011-02-21 16:57:25 +01:00
Fabien Potencier
8a8c733369
[HttpKernel] added the possibility to define a parent token for a token in the profiler
...
Note that this is not used yet. I make this change now because the interface needs to be changed.
2011-02-20 21:29:04 +01:00
Fabien Potencier
23e9386a0e
changed all extensions to use the default Extension::getAlias() impl
2011-02-20 08:58:37 +01:00
Ray
8e2d7edb8c
Attempt to create a reasonable default based on the rules enforced in
...
src/Symfony/Component/HttpKernel/bootstrap.php
from commit: 14aa95ba21
2011-02-20 08:53:53 +01:00
Fabien Potencier
b44d044b0a
[HttpKernel] removed the bootstrap files as they do not belong to the component
...
As these files are just about optimizing the performance,
they are now part of the sandbox and the upcoming standard
Symfony distribution.
It should also make your IDE happier!
2011-02-19 17:17:38 +01:00
Fabien Potencier
2c45611f4e
fixed WDT link to the profiler
2011-02-19 14:11:18 +01:00
Fabien Potencier
dff3585162
fixed profiler when using ESI in dev env
2011-02-19 12:18:49 +01:00
Justin Hileman
b8c531e1fc
Add a namespace separator for console commands in Command
sub-directories.
...
Fixes a bug in `Bundle::registerCommands` with console commands in sub-directories of `Command`. `MyBundle\Command\FooCommand` worked great, but with `MyBundle\Command\Bar\BazCommand` Bundle would try to register `MyBundle\CommandBar\BazCommand` instead.
2011-02-17 19:39:21 +01:00
Ryan Weaver
a0fc4240f9
[HttpKernel] Adding a line break to the end of the Kernel die() statements so that the output is more natural when receiving this message from the terminal.
2011-02-17 15:58:45 +01:00
Victor Berchet
1d7f8120e0
Update code with latest Finder changes
2011-02-16 22:53:11 +01:00
Fabien Potencier
14aa95ba21
added the concept of a main DIC extension for bundles
...
This allows for better conventions and better error messages if you
use the wrong configuration alias in a config file.
This is also the first step for a bigger refactoring of how the configuration
works (see next commits).
* Bundle::registerExtensions() method has been renamed to Bundle::build()
* The "main" DIC extension must be renamed to the new convention to be
automatically registered:
SensioBlogBundle -> DependencyInjection\SensioBlogExtension
* The main DIC extension alias must follow the convention:
sensio_blog for SensioBlogBundle
* If you have more than one extension for a bundle (which should really
never be the case), they must be registered manually by overriding the
build() method
* If you use YAML or PHP for your configuration, renamed the following
configuration entry points in your configs:
app -> framework
webprofiler -> web_profiler
doctrine_odm -> doctrine_mongo_db
2011-02-15 22:11:07 +01:00
Pablo Godel
fa66bf4a85
rename file
2011-02-15 21:57:09 +01:00
Pablo Godel
bf09fc1065
rename file
2011-02-15 21:57:08 +01:00
Fabien Potencier
7c8e6669f4
updated bootstrap files
2011-02-15 04:27:46 +01:00
Fabien Potencier
4972bf6350
[DependencyInjection] made getXsdValidationBasePath() and getNamespace() methods from DIC Extension class optional
...
This has been changed so that people that do not use XML for their own extensions do
not need to bother implementing these two methods.
2011-02-15 04:14:48 +01:00
Fabien Potencier
12f99dd066
fixed typo
2011-02-14 20:56:03 +01:00
Fabrice Bernhard
20e31cd3f2
[HttpKernel] Added some details for two commonly encountered errors in Kernel.php and HttpKernel.php
...
I used https://github.com/fabpot/symfony/blob/master/src/Symfony/Component/Form/PropertyPath.php#L324 as a model for the wording
2011-02-14 20:51:55 +01:00
Fabien Potencier
5c905beb13
moved common configuration classes to a new Config component
2011-02-13 22:31:50 +01:00
Fabien Potencier
cf5cfb0b51
updated bootstrap files
2011-02-13 11:24:47 +01:00
Igor Wiedler
e929bc5d1b
[HttpKernel] Allow any 2xx response code in a subrequest
2011-02-11 00:06:41 +01:00
Fabien Potencier
b91f082be5
Revert "moved Resource to the Config component"
...
This reverts commit f53080860a
.
Revert "[Router] config fixes"
This reverts commit 51beecc6f2
.
Revert "moved duplicated files to a new Config component"
This reverts commit a8ec9b27f0
.
2011-02-10 16:14:12 +01:00
Fabien Potencier
a8ec9b27f0
moved duplicated files to a new Config component
2011-02-10 03:43:36 +01:00
Fabien Potencier
e58a84eb09
added a FileLocator to DIC so that we can load resources like @BundleName/Resources/...
2011-02-10 00:44:02 +01:00
Victor Berchet
717efd14fd
[Kernel] some tweaks
2011-02-09 18:43:01 +01:00
Sven Paulus
5d87d83a10
optimize duplication of Request objects
2011-02-09 06:59:36 +01:00
Fabien Potencier
7e0ed2759b
[HttpKernel] fixed phpdoc
2011-02-08 22:36:58 +01:00
Marc Weistroff
9f52333bf6
[HttpKernel] Fixed DataCollector Request attributes when attributes have objects
2011-02-08 19:18:38 +01:00
ornicar
4252680ccf
[HttpKernel] Catch exception when SQLite profiler storage fails to cleanup
2011-02-07 01:52:10 +01:00
Marc Weistroff
ea4ab77b6d
[HttpKernel] HttpCache now sends maxage=0 cache-control directive in case of Esi presence.
2011-02-07 01:43:19 +01:00
Marc Weistroff
bebdcb242d
[HttpKernel] Added response cache-control modification if page is composed of ESIs.
...
Rules are :
- If one of the ESI has validation cache strategy, the whole page will be
forced to validate.
- In none of the ESI has validation, the response will feature a Cache-Control
directive with s-maxage value equals to the smallest TTL of ESIs.
2011-02-07 01:34:14 +01:00
ornicar
2201382fa1
[HttpKernel] Fix issue in SQLite profiler storage when PDO fails to prepare a statement
2011-02-07 01:25:34 +01:00
ornicar
afad113297
[HttpKernel] Fix notice in Kernel
2011-02-06 21:42:17 +01:00
ornicar
c5fb96b86b
[HttpKernel] Add more unit tests for Kernel
2011-02-06 20:05:49 +01:00
ornicar
9ba2943aff
[HttpKernel] Add unit tests for Kernel. Also slightly modify Kernel to make it more testable.
2011-02-06 16:17:35 +01:00
Fabien Potencier
e5403490e7
removed the need to define getNamespace() and getPath() in bundles
2011-02-05 22:40:30 +01:00
ornicar
80b03f92b3
[HttpKernel] Throw exception when SQLite statement execution failed
...
This fixes SQLiteProfilerStorageTest, that was failing using PDO.
2011-02-05 20:44:51 +01:00
Martijn Evers
1e3dc1479c
[Testing][HttpKernel] Added possibility to functional test raw body data
2011-02-04 13:07:13 +01:00
Fabien Potencier
2dfac2a881
fixed typo
2011-02-04 12:20:47 +01:00
Fabien Potencier
f455700b88
fixed previous commit
2011-02-04 12:18:26 +01:00
Victor Berchet
3ed47114d6
[Bundle] Make getPath() less error prone by allowing both backward and forward slashes
2011-02-04 12:12:19 +01:00
Victor Berchet
2a97f89897
[Bundle] Small optimization
2011-02-04 12:10:16 +01:00
marc.weistroff
1316fb547e
Reverted e557500c97
and edf57fc392
which deleted the getRequest() method in HttpCache as this methods is needed in the Esi class.
2011-02-04 11:37:09 +01:00
Fabien Potencier
6ed7dc1e5a
made a small optimization
2011-02-04 05:45:07 +01:00
Fabien Potencier
b6f400a2bc
[DependencyInjection] made an optimization on dumped DIC
...
When dumping a Container, and if it is frozen, we use a plain
PHP array for parameters instead of a ParameterBag.
2011-02-04 00:17:51 +01:00
Fabien Potencier
2d69369c69
[ClassLoader] added the possibility to define more than one directory for a namespace or a prefix
2011-02-03 22:44:22 +01:00
Fabien Potencier
c05fb03c7d
[HttpKernel] changed the core.view event to only be notified when the controller does not return a Response
2011-02-03 19:39:28 +01:00
Fabien Potencier
2c4355460e
[HttpKernel] added a StoreInterface
2011-01-31 14:15:12 +01:00
Fabien Potencier
839cb027a6
[HttpKernel] added a bootstrap file for HTTP cache front controllers
2011-01-31 08:30:32 +01:00
Victor Berchet
f470c5605e
[Request] Fix getting mime type
2011-01-30 20:14:40 +01:00