[DoctrineBundle] fixes issues with $this->container->get('form.context')
when the value of default_connection key of doctrine.dbal is changed
from default in config.yml
Merge remote branch 'kadeer/master'

* kadeer/master:
  [DoctrineBundle] fixes issues with $this->container->get('form.context') when the value of default_connection key of doctrine.dbal is changed from default in config.yml
[FrameworkBundle] fixed CS
[FrameworkBundle] fixed test on windows
[FrameworkBundle] fixed bugs

- not existing service in DI container
- called invalid method
[HttpKernel] removed unused class
[Config] simplified DirectoryResource to only allow one regex
[Routing] updated for DirectoryResource changes
Merge remote branch 'hason/frameworkbundle'

* hason/frameworkbundle:
  [HttpKernel] removed unused class
  [FrameworkBundle] fixed bugs
  [FrameworkBundle] fixed test on windows
  [FrameworkBundle] fixed CS
[AsseticBundle] added coalescing directory resources that check the kernel for bundle templates
[AsseticBundle] fixed definition of filter configs
[HttpKernel] fixed test
[Process] changed run() behavior to always populate getOutput() and getErrorOutput()
[AsseticBundle] moved some parameter defaults to Configuration
[AsseticBundle] fixed twig classes for api changes in assetic
[HttpKernel] Wrapping the end of handleException() in a try-catch to prevent response listeners from throwing another exception
[DependencyInjection] Fixing a bug where "ignore_errors" doesn't work in YAML and XML

Tests added, the arguments were simply mismatched.
[Config] Improving the exception when a resource cannot be imported

This improves, for example, the exception one would receive if they tried to import a resource from a bundle that doesn't exist.
Previously, the deep "bundle is not activated" exception would be thrown. That has value, however there is no indication of where
the exception is actually occurring.

In this new implementation, we throw an exception that explains exactly which resource, and from which source resource, cannot be
loaded. The deeper exception is still thrown as a nested exception.

Two caveats:

  * The `HttpKernel::varToString` method was replicated
  * This introduces a new `Exception` class, which allows us to prevent lot's of exceptions from nesting into each other in the case
    that some deeply imported resource cannot be imported (each upstream import that fails doesn't add its own exception).
Update PDO session storage to check if any rows are updated when doing a session write. If no rows are udpated when performing a session write it generally means that we have created a new session id somewhere and we have not inserted into the database. This is the case for when calling regenerate_session_id() from the native session storage class. It will update the session id then call sessionWrite() to save the session but since the new session id does not exist in the DB, no rows are updated and any new session attributes such as security tokens are lost.

See http://www.php.net/manual/en/function.session-set-save-handler.php#103055 for more details
[FrameworkBundle] fixed interface and usage in RouterHelper