public function addBeforeBootstrapping(string $bootstrapper, callable $callback): void
    {
        $key = 'bootstrapping: ' . \str_replace('\\', '', $bootstrapper);

        $this->bootstrappingCallbacks[$key][] = $callback;
    }
public function addBeforeBootstrapping(string $bootstrapper, callable $callback): void
    {
        $key = 'bootstrapping: ' . \str_replace('\\', '', $bootstrapper);

        $this->bootstrappingCallbacks[$key][] = $callback;
    }
public function addBeforeBootstrapping ( string $ bootstrapper , callable $ callback ) : void { $ key = 'bootstrapping: ' . \ str_replace ( '\\' , '' , $ bootstrapper ) ; $ this -> bootstrappingCallbacks [ $ key ] [ ] = $ callback ; }
Register a callback to run before a bootstrapper.

@param string   $bootstrapper
@param callable $callback

@return void
Register a callback to run before a bootstrapper .