public function enable($name)
    {
        if (! $this->isEnabled($name)) {
            $extension = $this->getExtension($name);

            $enabled = $this->getEnabled();

            $enabled[] = $name;

            $this->migrate($extension);

            $this->publishAssets($extension);

            $this->setEnabled($enabled);

            $extension->setEnabled(true);
        }
    }
public function enable($name)
    {
        if (! $this->isEnabled($name)) {
            $extension = $this->getExtension($name);

            $enabled = $this->getEnabled();

            $enabled[] = $name;

            $this->migrate($extension);

            $this->publishAssets($extension);

            $this->setEnabled($enabled);

            $extension->setEnabled(true);
        }
    }
public function enable ( $ name ) { if ( ! $ this -> isEnabled ( $ name ) ) { $ extension = $ this -> getExtension ( $ name ) ; $ enabled = $ this -> getEnabled ( ) ; $ enabled [ ] = $ name ; $ this -> migrate ( $ extension ) ; $ this -> publishAssets ( $ extension ) ; $ this -> setEnabled ( $ enabled ) ; $ extension -> setEnabled ( true ) ; } }
Enables the extension.

@param string $name
Enables the extension .