<?php
function sc_configure($instance)
{
$instance->configure();
}
class BarClass
class BazClass
public function configure($instance)
public static function getInstance()
return new self();
public static function configureStatic($instance)
public static function configureStatic1()
class BarUserClass
public $bar;
public function __construct(BarClass $bar)
$this->bar = $bar;