File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/Support/PHPUnit/EventSubscribers Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 22
33namespace RonasIT \AutoDoc \Support \PHPUnit \EventSubscribers ;
44
5- use PHPUnit \Event \TestRunner \ExecutionFinished ;
6- use PHPUnit \Event \TestRunner \ExecutionFinishedSubscriber ;
5+ use PHPUnit \Event \Application \Finished ;
6+ use PHPUnit \Event \Application \FinishedSubscriber ;
7+ use RonasIT \AutoDoc \Services \SwaggerService ;
78
8- final class SwaggerSaveDocumentationSubscriber implements ExecutionFinishedSubscriber
9+ final class SwaggerSaveDocumentationSubscriber implements FinishedSubscriber
910{
10- public function notify (ExecutionFinished $ event ): void
11+ public function notify (Finished $ event ): void
1112 {
12- shell_exec ( ' php artisan swagger:push-documentation ' );
13+ app (SwaggerService::class)-> saveProductionData ( );
1314 }
1415}
You can’t perform that action at this time.
0 commit comments