1 | <?php |
||
20 | class DoctrineTaskExecutionListener |
||
21 | { |
||
22 | /** |
||
23 | * @var EntityManagerInterface |
||
24 | */ |
||
25 | private $entityManager; |
||
26 | |||
27 | /** |
||
28 | * @param EntityManagerInterface $entityManager |
||
29 | */ |
||
30 | public function __construct(EntityManagerInterface $entityManager = null) |
||
34 | |||
35 | /** |
||
36 | * This method clears the entity-manager after each task to ensure clean state before next task. |
||
37 | * |
||
38 | * @param TaskExecutionEvent $event |
||
39 | */ |
||
40 | public function clearEntityManagerAfterTask(TaskExecutionEvent $event) |
||
48 | } |
||
49 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.