Exemple #1
0
 public function render()
 {
     if (\Sledgehammer\is_valid_component($this->component)) {
         $this->component->render();
     }
 }
Exemple #2
0
/**
 * render($component) is an alias to $component->render()
 * but render($component) generates a notice when the $component isn't a component compatible object instead of an fatal error.
 */
function render($component)
{
    if (Sledgehammer\is_valid_component($component)) {
        $component->render();
    }
}