Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | protected function rewriteToSyncProjector() |
||
38 | { |
||
39 | $name = $this->qualifyClass($this->getNameInput()); |
||
40 | |||
41 | $path = $this->getPath($name); |
||
42 | |||
43 | $content = file_get_contents($path); |
||
44 | |||
45 | $content = str_replace('implements Projector', 'implements QueuedProjector', $content); |
||
46 | $content = str_replace('use Spatie\EventProjector\Projectors\Projector;', 'use Spatie\EventProjector\Projectors\QueuedProjector;', $content); |
||
47 | |||
48 | file_put_contents($path, $content); |
||
49 | } |
||
50 | |||
58 |