Example #1
0
 protected function visit_plugins(RequestInterface $request, $value, $flags)
 {
     if (!is_array($value)) {
         throw new InvalidArgumentException('plugins value must be an array');
     }
     foreach ($value as $plugin) {
         $request->addSubscriber($plugin);
     }
 }