/**
  * Handle the command.
  */
 public function handle()
 {
     if ($this->extension->getLoader() === null) {
         $this->extension->setLoader(substr(get_class($this->extension), 0, -9) . 'Loader@handle');
         // Replace "Extension with Loader@handle"
     }
 }
 /**
  * Handle the command.
  *
  * @param Resolver  $resolver
  * @param Evaluator $evaluator
  */
 public function handle(Resolver $resolver, Evaluator $evaluator)
 {
     $arguments = ['extension' => $this->extension];
     $widget = $this->extension->getWidget();
     $options = $this->extension->getOptions();
     $options = $resolver->resolve($options, $arguments);
     $options = $evaluator->evaluate($options, $arguments);
     foreach ($options as $key => $value) {
         $widget->setOption($key, $value);
     }
 }
 /**
  * Handle the command.
  */
 public function handle()
 {
     $widget = $this->extension->getWidget();
     /**
      * Set the default options handler based
      * on the extension class. Defaulting to
      * no handler.
      */
     if (!$widget->getOption('title')) {
         $widget->setOption('title', $this->extension->getTitle());
     }
 }
Esempio n. 4
0
 /**
  * Handle the command.
  *
  * @param Container $container
  */
 public function handle(Container $container)
 {
     $container->call($this->extension->getLoader(), ['extension' => $this->extension]);
 }