public function run() { /** * @var Person $person */ $person = CommandBusList::getPersonCommanBus()->handle(new GetCurrentPersonCommand()); $serviceList = CommandBusList::getServiceCommanBus()->handle(new GetServicesByUserTypeCommand($person->user()->type())); $isSaved = $this->saveIfIsRequest($person); $personServiceList = $this->prepareSeviceList($person, $serviceList); $hoursArray = $this->prepareDropDownBox(); return $this->controller->renderPartial((new UserType(UserType::USER_PHOTOGRAPGER))->prefix() . '/_services', ['serviceList' => $serviceList, 'personServiceList' => $personServiceList, 'hoursArray' => $hoursArray, 'isSaved' => $isSaved]); }