From 3d532f806a0b5cef9c8126438e90c57713d549e0 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 1 Jun 2011 10:55:01 +0200 Subject: [PATCH] [FrameworkBundle] renamed getProfiler to getProfile (as the method now returns a Profile instance) --- UPDATE.md | 3 +++ src/Symfony/Bundle/FrameworkBundle/Client.php | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/UPDATE.md b/UPDATE.md index 2a356f351349..5e0eb5acca42 100644 --- a/UPDATE.md +++ b/UPDATE.md @@ -9,6 +9,9 @@ timeline closely anyway. 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: * `registerPrefixFallback` to `registerPrefixFallbacks` diff --git a/src/Symfony/Bundle/FrameworkBundle/Client.php b/src/Symfony/Bundle/FrameworkBundle/Client.php index af5e8155152d..346dfcdc1a29 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Client.php +++ b/src/Symfony/Bundle/FrameworkBundle/Client.php @@ -15,6 +15,7 @@ use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\Client as BaseClient; 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\Response; @@ -48,11 +49,11 @@ public function getKernel() } /** - * 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')) { return false;