/**
  * Handle the event.
  *
  * @param AddonsHaveRegistered $event
  */
 public function handle(AddonsHaveRegistered $event)
 {
     $addons = $event->getAddons();
     /* @var Addon $addon */
     foreach ($addons as $addon) {
         $this->paths->addPath($addon->getNamespace(), $addon->getPath('resources'));
     }
 }
Beispiel #2
0
 /**
  * Add a path by it's namespace hint.
  *
  * @param $namespace
  * @param $path
  * @return $this
  */
 public function addPath($namespace, $path)
 {
     $this->paths->addPath($namespace, $path);
     return $this;
 }