src/Extension/ExtensionManager.php
public function disable($name)
    {
        $enabled = $this->getEnabled();

        if (($k = array_search($name, $enabled)) === false) {
            return;
        }

        $extension = $this->getExtension($name);

        $this->dispatcher->dispatch(new Disabling($extension));

        unset($enabled[$k]);

        $this->setEnabled($enabled);

        $extension->disable($this->app);

        $this->dispatcher->dispatch(new Disabled($extension));
    }
public function disable($name)
    {
        $enabled = $this->getEnabled();

        if (($k = array_search($name, $enabled)) === false) {
            return;
        }

        $extension = $this->getExtension($name);

        $this->dispatcher->dispatch(new Disabling($extension));

        unset($enabled[$k]);

        $this->setEnabled($enabled);

        $extension->disable($this->app);

        $this->dispatcher->dispatch(new Disabled($extension));
    }
public function disable ( $ name ) { $ enabled = $ this -> getEnabled ( ) ; if ( ( $ k = array_search ( $ name , $ enabled ) ) === false ) { return ; } $ extension = $ this -> getExtension ( $ name ) ; $ this -> dispatcher -> dispatch ( new Disabling ( $ extension ) ) ; unset ( $ enabled [ $ k ] ) ; $ this -> setEnabled ( $ enabled ) ; $ extension -> disable ( $ this -> app ) ; $ this -> dispatcher -> dispatch ( new Disabled ( $ extension ) ) ; }
Disables an extension.

@param string $name
Disables an extension .