@@ -4,12 +4,9 @@ |
||
| 4 | 4 | namespace FlightLog\Http\Web\Controller; |
| 5 | 5 | |
| 6 | 6 | |
| 7 | -use FlightLog\Application\Damage\Command\CreateDamageCommand; |
|
| 8 | -use FlightLog\Application\Damage\Command\CreateDamageCommandHandler; |
|
| 9 | 7 | use FlightLog\Application\Pilot\Command\CreateUpdatePilotInformationCommand; |
| 10 | 8 | use FlightLog\Application\Pilot\Command\CreateUpdatePilotInformationCommandHandler; |
| 11 | 9 | use FlightLog\Domain\Pilot\ValueObject\PilotId; |
| 12 | -use FlightLog\Http\Web\Form\DamageCreationForm; |
|
| 13 | 10 | use FlightLog\Http\Web\Form\PilotForm; |
| 14 | 11 | use FlightLog\Infrastructure\Pilot\Repository\PilotRepository; |
| 15 | 12 | |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | |
| 49 | 49 | try{ |
| 50 | 50 | $this->handle($form->getObject()); |
| 51 | - }catch(\Exception $e){ |
|
| 51 | + } catch(\Exception $e){ |
|
| 52 | 52 | print $e->getMessage(); |
| 53 | 53 | dol_syslog($e->getMessage(), LOG_ERR); |
| 54 | 54 | } |
@@ -4,7 +4,6 @@ discard block |
||
| 4 | 4 | namespace FlightLog\Http\Web\Form; |
| 5 | 5 | |
| 6 | 6 | |
| 7 | -use FlightLog\Application\Damage\Command\CreateDamageCommand; |
|
| 8 | 7 | use FlightLog\Application\Pilot\Command\CreateUpdatePilotInformationCommand; |
| 9 | 8 | use flightlog\form\Csrf; |
| 10 | 9 | use flightlog\form\Form; |
@@ -13,8 +12,6 @@ discard block |
||
| 13 | 12 | use flightlog\form\Input; |
| 14 | 13 | use flightlog\form\InputCheckBox; |
| 15 | 14 | use flightlog\form\InputDate; |
| 16 | -use flightlog\form\Number; |
|
| 17 | -use flightlog\form\UserSelect; |
|
| 18 | 15 | |
| 19 | 16 | final class PilotForm extends Form |
| 20 | 17 | { |