Skip to content

Commit

Permalink
[FrameworkBundle] renamed getProfiler to getProfile (as the method no…
Browse files Browse the repository at this point in the history
…w returns a Profile instance)
  • Loading branch information
fabpot committed Jun 1, 2011
1 parent 481d684 commit 3d532f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions UPDATE.md
Expand Up @@ -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`
Expand Down
7 changes: 4 additions & 3 deletions src/Symfony/Bundle/FrameworkBundle/Client.php
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3d532f8

Please sign in to comment.