This commit is contained in:
Romain Neutron
2014-03-01 14:40:03 +01:00
parent f0e197ccd5
commit b836dc8632
3 changed files with 3 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ class LiveInformation
/** /**
* Returns live informations about some tasks. * Returns live informations about some tasks.
* *
* @param Task[] $tasks * @param Task[] $tasks
* @param boolean $throwException * @param boolean $throwException
* *
* @return array * @return array
@@ -89,9 +89,10 @@ class LiveInformation
try { try {
return $this->notifier->notify(Notifier::MESSAGE_INFORMATIONS); return $this->notifier->notify(Notifier::MESSAGE_INFORMATIONS);
} catch (RuntimeException $e) { } catch (RuntimeException $e) {
if($throwException) { if ($throwException) {
throw $e; throw $e;
} }
return []; return [];
} }
} }

View File

@@ -9,7 +9,6 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
use Symfony\Component\Routing\Generator\UrlGenerator;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
interface Bridge_Api_Interface interface Bridge_Api_Interface

View File

@@ -9,7 +9,6 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
use Alchemy\Phrasea\Application;
use Doctrine\ORM\NoResultException; use Doctrine\ORM\NoResultException;
use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManager;