You are here

public function TraceableEventDispatcher::setProfiler in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Debug/TraceableEventDispatcher.php \Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher::setProfiler()

Sets the profiler.

The traceable event dispatcher does not use the profiler anymore. The job is now done directly by the Profiler listener and the data collectors themselves.

Parameters

Profiler|null $profiler A Profiler instance:

Deprecated

since version 2.4, to be removed in 3.0.

File

vendor/symfony/http-kernel/Debug/TraceableEventDispatcher.php, line 39

Class

TraceableEventDispatcher
Collects some data about event listeners.

Namespace

Symfony\Component\HttpKernel\Debug

Code

public function setProfiler(Profiler $profiler = null) {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
}