Skip to content

Commit ff41541

Browse files
committed
[DependencyInjection] removed pass time
1 parent 1992c3b commit ff41541

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

src/Symfony/Component/DependencyInjection/Compiler/Compiler.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
class Compiler
2323
{
2424
private $passConfig;
25-
private $currentPass;
26-
private $currentStartTime;
2725
private $log;
2826
private $loggingFormatter;
2927
private $serviceReferenceGraph;
@@ -109,33 +107,9 @@ public function compile(ContainerBuilder $container)
109107
{
110108
$start = microtime(true);
111109
foreach ($this->passConfig->getPasses() as $pass) {
112-
$this->startPass($pass);
113110
$pass->process($container);
114-
$this->endPass($pass);
115111
}
116112

117113
$this->addLogMessage(sprintf('Compilation finished in %.3fs.', microtime(true) - $start));
118114
}
119-
120-
/**
121-
* Starts an individual pass.
122-
*
123-
* @param CompilerPassInterface $pass The pass to start
124-
*/
125-
private function startPass(CompilerPassInterface $pass)
126-
{
127-
$this->currentPass = $pass;
128-
$this->currentStartTime = microtime(true);
129-
}
130-
131-
/**
132-
* Ends an individual pass.
133-
*
134-
* @param CompilerPassInterface $pass The compiler pass
135-
*/
136-
private function endPass(CompilerPassInterface $pass)
137-
{
138-
$this->currentPass = null;
139-
$this->addLogMessage($this->loggingFormatter->formatPassTime($pass, microtime(true) - $this->currentStartTime));
140-
}
141115
}

src/Symfony/Component/DependencyInjection/Compiler/LoggingFormatter.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ public function formatResolveInheritance(CompilerPassInterface $pass, $childId,
3131
return $this->format($pass, sprintf('Resolving inheritance for "%s" (parent: %s).', $childId, $parentId));
3232
}
3333

34-
public function formatPassTime(CompilerPassInterface $pass, $time)
35-
{
36-
return $this->format($pass, sprintf('finished in %.3fs.', $time));
37-
}
38-
3934
public function format(CompilerPassInterface $pass, $message)
4035
{
4136
return sprintf('%s: %s', get_class($pass), $message);

0 commit comments

Comments
 (0)