src/Factory.php
public function create()
    {
        $gate = $this->getGate();
        $guard = $this->getGuard();

        $bouncer = (new Bouncer($guard))->setGate($gate);

        if ($this->registerAtGate) {
            $guard->registerAt($gate);
        }

        if ($this->registerAtContainer) {
            $bouncer->registerClipboardAtContainer();
        }

        return $bouncer;
    }
public function create()
    {
        $gate = $this->getGate();
        $guard = $this->getGuard();

        $bouncer = (new Bouncer($guard))->setGate($gate);

        if ($this->registerAtGate) {
            $guard->registerAt($gate);
        }

        if ($this->registerAtContainer) {
            $bouncer->registerClipboardAtContainer();
        }

        return $bouncer;
    }
public function create ( ) { $ gate = $ this -> getGate ( ) ; $ guard = $ this -> getGuard ( ) ; $ bouncer = ( new Bouncer ( $ guard ) ) -> setGate ( $ gate ) ; if ( $ this -> registerAtGate ) { $ guard -> registerAt ( $ gate ) ; } if ( $ this -> registerAtContainer ) { $ bouncer -> registerClipboardAtContainer ( ) ; } return $ bouncer ; }
Create an instance of Bouncer.

@return \Silber\Bouncer\Bouncer
Create an instance of Bouncer .