Use short array declaration

This commit is contained in:
Romain Neutron
2013-11-18 11:58:12 +01:00
parent 2898b317c4
commit 56b373ee6e
723 changed files with 8350 additions and 8352 deletions

View File

@@ -28,11 +28,11 @@ class API_V1_Timer implements ServiceProviderInterface
$n++;
$name = $event->getName() . '#' . $n;
}
$app['api.timers']->add(array(
$app['api.timers']->add([
'name' => $name,
'memory' => memory_get_usage(),
'time' => microtime(true) - $app['api.timers.start'],
));
]);
};
$app['dispatcher']->addListener(KernelEvents::CONTROLLER, $callback, -999999);