src/Terion/PackageInstaller/ConfigUpdater.php
public function addAlias($alias, $facade)
    {
        if ($facadeCurrent = array_get($this->getAliases(), $alias)) {
            if ($facadeCurrent === $facade) {
                return;
            }
            $this->commentOut($alias, 'aliases');
        }

        $quote = $this->getQuoteType('aliases');
        $separator = $this->getArrayItemsSeparator('aliases');
        $anchor = $this->getInsertPoint('aliases');

        $insert = $separator . $quote . $alias . $quote . ' => ' . $quote . $facade . $quote . ',';

        $this->write($insert, $anchor);
    }
public function addAlias($alias, $facade)
    {
        if ($facadeCurrent = array_get($this->getAliases(), $alias)) {
            if ($facadeCurrent === $facade) {
                return;
            }
            $this->commentOut($alias, 'aliases');
        }

        $quote = $this->getQuoteType('aliases');
        $separator = $this->getArrayItemsSeparator('aliases');
        $anchor = $this->getInsertPoint('aliases');

        $insert = $separator . $quote . $alias . $quote . ' => ' . $quote . $facade . $quote . ',';

        $this->write($insert, $anchor);
    }
public function addAlias ( $ alias , $ facade ) { if ( $ facadeCurrent = array_get ( $ this -> getAliases ( ) , $ alias ) ) { if ( $ facadeCurrent === $ facade ) { return ; } $ this -> commentOut ( $ alias , 'aliases' ) ; } $ quote = $ this -> getQuoteType ( 'aliases' ) ; $ separator = $ this -> getArrayItemsSeparator ( 'aliases' ) ; $ anchor = $ this -> getInsertPoint ( 'aliases' ) ; $ insert = $ separator . $ quote . $ alias . $ quote . ' => ' . $ quote . $ facade . $ quote . ',' ; $ this -> write ( $ insert , $ anchor ) ; }
Add specified facade.

@param $alias
@param $facade
Add specified facade .