|
3 | 3 |
|
4 | 4 | use Procrastinator\Deferred\Deferred; |
5 | 5 | use Procrastinator\Deferred\DoctrineEventConditionalDeferred; |
6 | | -use Doctrine\Common\EventArgs; |
7 | 6 |
|
8 | 7 | class DoctrineEventConditionalExecutorDecorator extends ExecutorDecorator |
9 | 8 | { |
10 | | - private $events = array(); |
| 9 | + private $events = []; |
11 | 10 |
|
12 | | - public function postConnect(EventArgs $args) |
| 11 | + public function postConnect() |
13 | 12 | { |
14 | 13 | $this->rememberEvent(__FUNCTION__); |
15 | 14 | } |
16 | 15 |
|
17 | | - public function onSchemaCreateTable(EventArgs $args) |
| 16 | + public function onSchemaCreateTable() |
18 | 17 | { |
19 | 18 | $this->rememberEvent(__FUNCTION__); |
20 | 19 | } |
21 | 20 |
|
22 | | - public function onSchemaCreateTableColumn(EventArgs $args) |
| 21 | + public function onSchemaCreateTableColumn() |
23 | 22 | { |
24 | 23 | $this->rememberEvent(__FUNCTION__); |
25 | 24 | } |
26 | 25 |
|
27 | | - public function onSchemaDropTable(EventArgs $args) |
| 26 | + public function onSchemaDropTable() |
28 | 27 | { |
29 | 28 | $this->rememberEvent(__FUNCTION__); |
30 | 29 | } |
31 | 30 |
|
32 | | - public function onSchemaAlterTable(EventArgs $args) |
| 31 | + public function onSchemaAlterTable() |
33 | 32 | { |
34 | 33 | $this->rememberEvent(__FUNCTION__); |
35 | 34 | } |
36 | 35 |
|
37 | | - public function onSchemaAlterTableAddColumn(EventArgs $args) |
| 36 | + public function onSchemaAlterTableAddColumn() |
38 | 37 | { |
39 | 38 | $this->rememberEvent(__FUNCTION__); |
40 | 39 | } |
41 | 40 |
|
42 | | - public function onSchemaAlterTableRemoveColumn(EventArgs $args) |
| 41 | + public function onSchemaAlterTableRemoveColumn() |
43 | 42 | { |
44 | 43 | $this->rememberEvent(__FUNCTION__); |
45 | 44 | } |
46 | 45 |
|
47 | | - public function onSchemaAlterTableChangeColumn(EventArgs $args) |
| 46 | + public function onSchemaAlterTableChangeColumn() |
48 | 47 | { |
49 | 48 | $this->rememberEvent(__FUNCTION__); |
50 | 49 | } |
51 | 50 |
|
52 | | - public function onSchemaAlterTableRenameColumn(EventArgs $args) |
| 51 | + public function onSchemaAlterTableRenameColumn() |
53 | 52 | { |
54 | 53 | $this->rememberEvent(__FUNCTION__); |
55 | 54 | } |
56 | 55 |
|
57 | | - public function onSchemaColumnDefinition(EventArgs $args) |
| 56 | + public function onSchemaColumnDefinition() |
58 | 57 | { |
59 | 58 | $this->rememberEvent(__FUNCTION__); |
60 | 59 | } |
61 | 60 |
|
62 | | - public function onSchemaIndexDefinition(EventArgs $args) |
| 61 | + public function onSchemaIndexDefinition() |
63 | 62 | { |
64 | 63 | $this->rememberEvent(__FUNCTION__); |
65 | 64 | } |
66 | 65 |
|
67 | | - public function preRemove(EventArgs $args) |
| 66 | + public function preRemove() |
68 | 67 | { |
69 | 68 | $this->rememberEvent(__FUNCTION__); |
70 | 69 | } |
71 | 70 |
|
72 | | - public function postRemove(EventArgs $args) |
| 71 | + public function postRemove() |
73 | 72 | { |
74 | 73 | $this->rememberEvent(__FUNCTION__); |
75 | 74 | } |
76 | 75 |
|
77 | | - public function prePersist(EventArgs $args) |
| 76 | + public function prePersist() |
78 | 77 | { |
79 | 78 | $this->rememberEvent(__FUNCTION__); |
80 | 79 | } |
81 | 80 |
|
82 | | - public function postPersist(EventArgs $args) |
| 81 | + public function postPersist() |
83 | 82 | { |
84 | 83 | $this->rememberEvent(__FUNCTION__); |
85 | 84 | } |
86 | 85 |
|
87 | | - public function preUpdate(EventArgs $args) |
| 86 | + public function preUpdate() |
88 | 87 | { |
89 | 88 | $this->rememberEvent(__FUNCTION__); |
90 | 89 | } |
91 | 90 |
|
92 | | - public function postUpdate(EventArgs $args) |
| 91 | + public function postUpdate() |
93 | 92 | { |
94 | 93 | $this->rememberEvent(__FUNCTION__); |
95 | 94 | } |
96 | 95 |
|
97 | | - public function postLoad(EventArgs $args) |
| 96 | + public function postLoad() |
98 | 97 | { |
99 | 98 | $this->rememberEvent(__FUNCTION__); |
100 | 99 | } |
101 | 100 |
|
102 | | - public function loadClassMetadata(EventArgs $args) |
| 101 | + public function loadClassMetadata() |
103 | 102 | { |
104 | 103 | $this->rememberEvent(__FUNCTION__); |
105 | 104 | } |
106 | 105 |
|
107 | | - public function preFlush(EventArgs $args) |
| 106 | + public function preFlush() |
108 | 107 | { |
109 | 108 | $this->rememberEvent(__FUNCTION__); |
110 | 109 | } |
111 | 110 |
|
112 | | - public function onFlush(EventArgs $args) |
| 111 | + public function onFlush() |
113 | 112 | { |
114 | 113 | $this->rememberEvent(__FUNCTION__); |
115 | 114 | } |
116 | 115 |
|
117 | | - public function postFlush(EventArgs $args) |
| 116 | + public function postFlush() |
118 | 117 | { |
119 | 118 | $this->rememberEvent(__FUNCTION__); |
120 | 119 | } |
121 | 120 |
|
122 | | - public function onClear(EventArgs $args) |
| 121 | + public function onClear() |
123 | 122 | { |
124 | 123 | $this->rememberEvent(__FUNCTION__); |
125 | 124 | } |
126 | 125 |
|
127 | | - public function onClassMetadataNotFound(EventArgs $args) |
| 126 | + public function onClassMetadataNotFound() |
128 | 127 | { |
129 | 128 | $this->rememberEvent(__FUNCTION__); |
130 | 129 | } |
|
0 commit comments