Exemplo n.º 1
0
 /**
  * Handle setup for global/all instances of engine
  *
  * @param array $options
  *
  * @return mixed
  */
 public static function startup($options = null)
 {
     parent::startup($options);
 }
Exemplo n.º 2
0
 /**
  * Handle setup for global/all instances of engine
  *
  * @param array $options
  *
  * @return mixed
  */
 public static function startup($options = null)
 {
     parent::startup($options);
     //	Find out if we have support for "require()"
     $mirror = new \ReflectionClass('\\V8Js');
     /** @noinspection PhpUndefinedMethodInspection */
     if (false !== (static::$moduleLoaderAvailable = $mirror->hasMethod('setModuleLoader'))) {
     }
     //  Register any extensions
     if (null !== ($extensions = ArrayUtils::get($options, 'extensions', [], true))) {
         // accept comma-delimited string
         $extensions = is_string($extensions) ? array_map('trim', explode(',', trim($extensions, ','))) : $extensions;
         static::registerExtensions($extensions);
     }
 }