[FrameworkBundle] renamed getProfiler to getProfile (as the method now returns a Profile instance)
This commit is contained in:
parent
481d684973
commit
3d532f806a
@ -9,6 +9,9 @@ timeline closely anyway.
|
|||||||
beta3 to beta4
|
beta3 to beta4
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
* `Client::getProfiler` has been removed in favor of `Client::getProfile`,
|
||||||
|
which returns an instance of `Profile`.
|
||||||
|
|
||||||
* Some `UniversalClassLoader` methods have been renamed:
|
* Some `UniversalClassLoader` methods have been renamed:
|
||||||
|
|
||||||
* `registerPrefixFallback` to `registerPrefixFallbacks`
|
* `registerPrefixFallback` to `registerPrefixFallbacks`
|
||||||
|
@ -15,6 +15,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|||||||
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
||||||
use Symfony\Component\HttpKernel\Client as BaseClient;
|
use Symfony\Component\HttpKernel\Client as BaseClient;
|
||||||
use Symfony\Component\HttpKernel\Profiler\Profiler as HttpProfiler;
|
use Symfony\Component\HttpKernel\Profiler\Profiler as HttpProfiler;
|
||||||
|
use Symfony\Component\HttpKernel\Profiler\Profile as HttpProfile;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
@ -48,11 +49,11 @@ class Client extends BaseClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a profiler for the current Response.
|
* Gets the profile associated with the current Response.
|
||||||
*
|
*
|
||||||
* @return HttpProfiler A Profiler instance
|
* @return HttpProfile A Profile instance
|
||||||
*/
|
*/
|
||||||
public function getProfiler()
|
public function getProfile()
|
||||||
{
|
{
|
||||||
if (!$this->kernel->getContainer()->has('profiler')) {
|
if (!$this->kernel->getContainer()->has('profiler')) {
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user