[FrameworkBundle] added some service aliases to avoid some BC breaks
This commit is contained in:
parent
93d81a171c
commit
146a502a0e
@ -40,7 +40,6 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
|
|||||||
* changed the default profiler storage to use the filesystem instead of SQLite
|
* changed the default profiler storage to use the filesystem instead of SQLite
|
||||||
* added support for placeholders in route defaults and requirements (replaced by the value set in the service container)
|
* added support for placeholders in route defaults and requirements (replaced by the value set in the service container)
|
||||||
* added Filesystem component as a dependency
|
* added Filesystem component as a dependency
|
||||||
* [BC BREAK] changed `session.xml` service name `session.storage.native` to `session.storage.native_file`
|
|
||||||
* added new session storage drivers to session.xml: `session.storage.native_memcache`, `session.storage.native_memcached`,
|
* added new session storage drivers to session.xml: `session.storage.native_memcache`, `session.storage.native_memcached`,
|
||||||
`session.storage.native_sqlite`, `session.storage.null`, `session.storage.memcache`,
|
`session.storage.native_sqlite`, `session.storage.null`, `session.storage.memcache`,
|
||||||
and `session.storage.memcached`. Added `session.storage.mock_file` service for functional session testing.
|
and `session.storage.memcached`. Added `session.storage.mock_file` service for functional session testing.
|
||||||
|
@ -38,5 +38,9 @@
|
|||||||
<tag name="kernel.event_subscriber" />
|
<tag name="kernel.event_subscriber" />
|
||||||
<argument type="service" id="service_container" />
|
<argument type="service" id="service_container" />
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
|
<!-- for BC -->
|
||||||
|
<service id="session.storage.native" alias="session.storage.native_file" />
|
||||||
|
<service id="session.storage.filesystem" alias="session.storage.mock_file" />
|
||||||
</services>
|
</services>
|
||||||
</container>
|
</container>
|
||||||
|
@ -46,9 +46,9 @@ class SessionHelper extends Helper
|
|||||||
return $this->session->get($name, $default);
|
return $this->session->get($name, $default);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getFlash($type, $default = null)
|
public function getFlash($name, $default = null)
|
||||||
{
|
{
|
||||||
return $this->session->getFlashes()->get($type);
|
return $this->session->getFlashes()->get($name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getFlashes()
|
public function getFlashes()
|
||||||
@ -56,9 +56,9 @@ class SessionHelper extends Helper
|
|||||||
return $this->session->getFlashes()->all();
|
return $this->session->getFlashes()->all();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasFlash($type)
|
public function hasFlash($name)
|
||||||
{
|
{
|
||||||
return $this->session->getFlashes()->has($type);
|
return $this->session->getFlashes()->has($name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user