original_string: public function makeComponent($name, $cmsObject = null, $properties = [])
      {
          $className = $this->resolve($name);
          if (!$className) {
              throw new SystemException(sprintf(
                  'Class name is not registered for the component "%s". Check the component plugin.',
                  $name
              ));
          }
  
          if (!class_exists($className)) {
              throw new SystemException(sprintf(
                  'Component class not found "%s". Check the component plugin.',
                  $className
              ));
          }
  
          $component = App::make($className, [$cmsObject, $properties]);
          $component->name = $name;
  
          return $component;
      }
code: public function makeComponent($name, $cmsObject = null, $properties = [])
      {
          $className = $this->resolve($name);
          if (!$className) {
              throw new SystemException(sprintf(
                  'Class name is not registered for the component "%s". Check the component plugin.',
                  $name
              ));
          }
  
          if (!class_exists($className)) {
              throw new SystemException(sprintf(
                  'Component class not found "%s". Check the component plugin.',
                  $className
              ));
          }
  
          $component = App::make($className, [$cmsObject, $properties]);
          $component->name = $name;
  
          return $component;
      }
code_tokens: public function makeComponent ( $ name , $ cmsObject = null , $ properties = [ ] ) { $ className = $ this -> resolve ( $ name ) ; if ( ! $ className ) { throw new SystemException ( sprintf ( 'Class name is not registered for the component "%s". Check the component plugin.' , $ name ) ) ; } if ( ! class_exists ( $ className ) ) { throw new SystemException ( sprintf ( 'Component class not found "%s". Check the component plugin.' , $ className ) ) ; } $ component = App :: make ( $ className , [ $ cmsObject , $ properties ] ) ; $ component -> name = $ name ; return $ component ; }
docstring: Makes a component object with properties set.
  @param string $name A component class name or code.
  @param CmsObject $cmsObject The Cms object that spawned this component.
  @param array $properties The properties set by the Page or Layout.
  @return ComponentBase The component object.
docstring_tokens: Makes a component object with properties set .