src/Smf/Menu/Config/Extension.php
public static function register(Nette\Configurator $configurator, $name = self::DEFAULT_EXTENSION_NAME)
    {
        $class = get_called_class();
        $configurator->onCompile[] = function (Nette\Configurator $configurator, Nette\DI\Compiler $compiler) use ($class, $name) {
            $compiler->addExtension($name, new $class);
        };
    }
public static function register(Nette\Configurator $configurator, $name = self::DEFAULT_EXTENSION_NAME)
    {
        $class = get_called_class();
        $configurator->onCompile[] = function (Nette\Configurator $configurator, Nette\DI\Compiler $compiler) use ($class, $name) {
            $compiler->addExtension($name, new $class);
        };
    }
public static function register ( Nette \ Configurator $ configurator , $ name = self :: DEFAULT_EXTENSION_NAME ) { $ class = get_called_class ( ) ; $ configurator -> onCompile [ ] = function ( Nette \ Configurator $ configurator , Nette \ DI \ Compiler $ compiler ) use ( $ class , $ name ) { $ compiler -> addExtension ( $ name , new $ class ) ; } ; }
Register extension to compiler.

@param Configurator $configurator
@param string $name
Register extension to compiler .