You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EffectsController.php 431B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Http\Controller;
  3. use App\Http\DBO\EffectApplyDbo;
  4. use Luticate\Utils\LuController;
  5. use App\Http\Business\EffectsBusiness;
  6. class EffectsController extends LuController {
  7. protected function getBusiness()
  8. {
  9. return new EffectsBusiness();
  10. }
  11. public function apply($effect, EffectApplyDbo $data)
  12. {
  13. $data->setEffect($effect);
  14. return EffectsBusiness::apply($data);
  15. }
  16. }