Commit Graph

3308 Commits

Author SHA1 Message Date
Fabien Potencier
aca2c161c8 [WebProfilerBundle] made various changes to the profiler 2011-03-06 11:58:49 +01:00
Fabien Potencier
be8618ec56 [FrameworkBundle] made various small fixes to the Exception layout 2011-03-06 11:50:22 +01:00
alexandresalome
d7ce23fe53 Change the count span font size 2011-03-06 11:44:58 +01:00
alexandresalome
fa6a9c1db9 Make the width adapt the page 2011-03-06 11:44:58 +01:00
alexandresalome
0ce6630ba3 Change the doctrine image resource 2011-03-06 11:44:58 +01:00
alexandresalome
659bfc5615 Remove png_fix class 2011-03-06 11:44:58 +01:00
alexandresalome
0b41116a7b Change profiler menu entry images to be in template 2011-03-06 11:44:58 +01:00
alexandresalome
56dee48342 Change CSS URL to be relative to CSS folder 2011-03-06 11:44:58 +01:00
hhamon
91caf4b6e3 [WebProfilerBundle] customized search and admin tools in the profiler left sidebar 2011-03-06 11:44:57 +01:00
hhamon
124461ccee [WebProfilerBundle] fixed exception stack trace integration 2011-03-06 11:44:57 +01:00
hhamon
f0e1df2688 [FrameworkBundle] made the exception stack trace integratable in the web profiler 2011-03-06 11:44:57 +01:00
hhamon
f4f78d47c8 [WebProfilerBundle] simplified theme 2011-03-06 11:44:57 +01:00
hhamon
54ac63e3d5 [DoctrineMongoDBBundle] simplified database web profiler menu 2011-03-06 11:44:57 +01:00
hhamon
4bf66a363f [DoctrineBundle] simplified database web profiler menu 2011-03-06 11:44:57 +01:00
hhamon
8367694371 [WebProfilerBundle] simplified new web profiler layout 2011-03-06 11:44:57 +01:00
hhamon
ce7fddd4ea [SecurityBundle] updated profiler panel for the latest profiler theme 2011-03-06 11:44:57 +01:00
hhamon
bfb6e03290 [WebProfilerBundle] added missing security.png pictogram 2011-03-06 11:44:57 +01:00
hhamon
e51c46b21a [DoctrineMongoDBBundle] implemented new web profiler layout 2011-03-06 11:44:56 +01:00
hhamon
d37f52c743 [WebProfilerBundle] implemented new web profiler layout 2011-03-06 11:44:56 +01:00
hhamon
fcc66ad540 [DoctrineMongoDBBundle] fixed authentication panel for the new web debug toolbar layout 2011-03-06 11:44:56 +01:00
hhamon
1134fd17ab [SecurityBundle] fixed authentication panel for the new web debug toolbar layout 2011-03-06 11:44:56 +01:00
hhamon
a8e882ac51 [DoctrineBundle] fix database tab for the new web debug toolbar layout 2011-03-06 11:44:56 +01:00
hhamon
2d68ca4d00 [WebProfilerBundle] changed web debug toolbar css layout 2011-03-06 11:44:56 +01:00
hhamon
f75ec8d4ad [FrameworkBundle] implemented new exception stack trace layout 2011-03-06 11:44:56 +01:00
Fabien Potencier
c2e0537c31 Merge remote branch 'aurelijus/routehelper_cachedrouter_fix'
* aurelijus/routehelper_cachedrouter_fix:
  Add cache warmed routers support to RouteHelper
2011-03-06 10:50:11 +01:00
Lenar Lõhmus
c6bbecf0bb Check if config/template file is actually readable before further processing 2011-03-06 10:46:39 +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
487cddcfee Merge remote branch 'DuoSRX/code-coverage'
* DuoSRX/code-coverage:
  [HttpFoundation] Fixed a typo in response->setLastModified()
  [HttpFoundation] Added some more tests on response
  [HttpFoundation] Added some tests on Response
  [HttpFoundation] Replace a duplicated test with a method in Response
  Fixed code coverage generation when resources folder are deeper
2011-03-06 10:44:13 +01:00
Fabien Potencier
bbc5f40636 Merge remote branch 'jakzal/FileLocatorTest'
* jakzal/FileLocatorTest:
  [Config] Added missing tests to satisfy 100% test coverage of FileLocator. Made sure that every path returned with locate() is unique.
2011-03-06 10:40:52 +01:00
Fabien Potencier
31eb5ff443 Merge remote branch 'jakzal/BooleanNodeTest'
* jakzal/BooleanNodeTest:
  [Config] Added tests for BooleanNode.
2011-03-06 10:40:48 +01:00
Fabien Potencier
51023eea86 [HttpFoundation] fixed CS 2011-03-06 10:39:33 +01:00
Fabien Potencier
c02ebbf2d8 Merge remote branch 'digitalkaoz/httpkernel-datacollector'
* digitalkaoz/httpkernel-datacollector:
  [HttpKernel] added Tests for DataCollectors
  [HttpFoundation] more sophisticated checks for valid expiration
2011-03-06 10:38:55 +01:00
Fabien Potencier
89f309a1a3 Merge remote branch 'digitalkaoz/httpkernel-exception'
* digitalkaoz/httpkernel-exception:
  [HttpKernel] added Tests for FlattenException
2011-03-06 10:37:35 +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
Fabien Potencier
4accca3a76 Merge remote branch 'digitalkaoz/httpfoundation-session'
* digitalkaoz/httpfoundation-session:
  [HttpFoundation] added Session tests.
  [HttpFoundation] added a check for array keys existence.
2011-03-06 10:36:15 +01:00
Fabien Potencier
ce60ebbbf5 Merge remote branch 'yethee/fix-target-url'
* yethee/fix-target-url:
  [AsseticBundle] Fixed url for assets in the debugging mode.
2011-03-06 10:34:28 +01:00
Fabien Potencier
1e996901f5 Merge remote branch 'schmittjoh/security'
* schmittjoh/security:
  [Security] forward the entire access denied exception instead of only the message
  [Security] changed defaults for MessageDigestEncoder
  TICKET #9557: session isn't required when using http basic authentification mecanism for example
  [Security] improved entropy to make collision attacks harder
  [Security] added the 'key' attribute of RememberMeToken to serialized string to be stored in session
  Fix the Acl schema generator script.
2011-03-06 10:33:18 +01:00
Fabien Potencier
a972770371 Merge remote branch 'Seldaek/exception_msg'
* Seldaek/exception_msg:
  [Config] Improved exception message a bit
2011-03-06 10:32:12 +01:00
Fabien Potencier
0a8730ab26 Merge remote branch 'lewinski/yaml-escapes'
* lewinski/yaml-escapes:
  [Yaml] Improved support for double quoted values.
2011-03-06 08:34:20 +01:00
Xavier Perez
19090d3fb7 [HttpFoundation] Fixed a typo in response->setLastModified() 2011-03-06 00:17:54 +01:00
Robert Schönthal
44b0bbc0d1 [HttpKernel] added Tests for DataCollectors 2011-03-06 00:15:01 +01:00
Xavier Perez
7900e8624f [HttpFoundation] Added some more tests on response 2011-03-06 00:14:10 +01:00
Robert Schönthal
87e1359ebd [HttpFoundation] more sophisticated checks for valid expiration 2011-03-06 00:13:47 +01:00
Deni
4c54218a4b [AsseticBundle] Fixed url for assets in the debugging mode. 2011-03-06 00:54:21 +03:00
Matthew Lewinski
ed338d9422 [Yaml] Improved support for double quoted values.
Added support for the full range of escaped values in double quoted
strings in chapter 5 of the YAML 1.1 and 1.2 specs. The escaping
and unescaping strategies were factored out into separate classes to
keep the logic isolated.

Added examples from the spec to the unit tests for all escaped values.
2011-03-05 15:39:48 -06:00
Robert Schönthal
935315bd79 [HttpKernel] added Tests for FlattenException 2011-03-05 21:21:19 +01:00
Robert Schönthal
3e7ccae2ba [HttpKernel] added tests for debug stuff 2011-03-05 20:23:35 +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
Xavier Perez
0327e93552 [HttpFoundation] Added some tests on Response 2011-03-05 16:12:17 +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