Esempio n. 1
0
 /**
  * @param $class
  * @param $obj
  * @param $prefix
  */
 protected function registerMethods($class, $obj, $prefix)
 {
     $methodsList = get_class_methods($class);
     foreach ($methodsList as $method) {
         if (substr($method, 0, 2) !== '__') {
             BladeMacro::macro($method, [$obj, $method], $prefix);
         }
     }
 }
 /**
  * Register any application services.
  *
  * @return void
  */
 public function register()
 {
     BladeMacro::register();
 }