vendor/csoft/autoinvoker/src/Invoker/AutoInvoker.php line 17

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Csoft\AutoInvoker\Invoker;
  4. use Csoft\AutoInvoker\NotFoundException;
  5. class AutoInvoker extends AbstractAutoInvoker
  6. {
  7.     public function invoke()
  8.     {
  9.         foreach ($this->rules as $rule) {
  10.             try {
  11.                 $this->invokeAll($rule$this->classFinder->getMatchingClasses($rule));
  12.             } catch (NotFoundException $e) {
  13.                 // there are no matches in class finder.
  14.             }
  15.         }
  16.     }
  17. }