src/Injector.php
public function decorate(string $className, callable $decorate): void
    {
        $this->config->registerClassDecorator($className, $decorate);
    }
public function decorate(string $className, callable $decorate): void
    {
        $this->config->registerClassDecorator($className, $decorate);
    }
public function decorate ( string $ className , callable $ decorate ) : void { $ this -> config -> registerClassDecorator ( $ className , $ decorate ) ; }
Decorate a class.

$inj->decorate(Foo::class, function(Foo $foo, LoggerInterface $logger):void {
$foo->setLogger( $logger ) );
})
Decorate a class .