public function postUpdateComponent(Component $component)
    {
        try {
            execute(new UpdateComponentCommand(
                $component,
                $component->name,
                $component->description,
                Binput::get('status'),
                $component->link,
                $component->order,
                $component->group_id,
                $component->enabled,
                $component->meta,
                false
            ));
        } catch (QueryException $e) {
            throw new BadRequestHttpException();
        }

        return $this->item($component);
    }
public function postUpdateComponent(Component $component)
    {
        try {
            execute(new UpdateComponentCommand(
                $component,
                $component->name,
                $component->description,
                Binput::get('status'),
                $component->link,
                $component->order,
                $component->group_id,
                $component->enabled,
                $component->meta,
                false
            ));
        } catch (QueryException $e) {
            throw new BadRequestHttpException();
        }

        return $this->item($component);
    }
public function postUpdateComponent ( Component $ component ) { try { execute ( new UpdateComponentCommand ( $ component , $ component -> name , $ component -> description , Binput :: get ( 'status' ) , $ component -> link , $ component -> order , $ component -> group_id , $ component -> enabled , $ component -> meta , false ) ) ; } catch ( QueryException $ e ) { throw new BadRequestHttpException ( ) ; } return $ this -> item ( $ component ) ; }
Updates a component with the entered info.

@param \CachetHQ\Cachet\Models\Component $component

@throws \Symfony\Component\HttpKernel\Exception\BadRequestHttpException

@return \CachetHQ\Cachet\Models\Component
Updates a component with the entered info .