Symfony Session Namespaces

Permalink
Hi guys,

I'd like to use namespaces in the session class, seehttp://symfony.com/doc/current/components/http_foundation/sessions.... To use namespaces they need to be registered before Session::start() is being called.

I therefore want to override the SessionServiceProvider in a package. How does that work? i tried Core::bind in the on_start method, but that doesn't seem to do anything.

Putting it in app.php doesn't seem logically either, because it's a package.

Any ideas how to tackle this problem?

Thanks, Adri

---

\Core::bind('Concrete\Core\Session\SessionServiceProvider', function() {
exit("test");
return new SomePackage\Session\SessionServiceProvider();
});

A3020
 
A3020 replied on at Permalink Reply
A3020
*bump*