original_string: 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);
          };
      }
code: 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);
          };
      }
code_tokens: 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 ) ; } ; }
docstring: Register extension to compiler.
  
  @param Configurator $configurator
  @param string $name
docstring_tokens: Register extension to compiler .