public function dropContext()
    {
        $oldContext = false;

        if ($this->context) {
            $oldContext = $this->context;
        }

        $this->context = null;
        $this->dependentContext = [];

        if ($oldContext) {
            $this->dispatcher->dispatch(SiteEvents::EVENT_DROP, new SiteEvent($oldContext));
        }
    }
public function dropContext()
    {
        $oldContext = false;

        if ($this->context) {
            $oldContext = $this->context;
        }

        $this->context = null;
        $this->dependentContext = [];

        if ($oldContext) {
            $this->dispatcher->dispatch(SiteEvents::EVENT_DROP, new SiteEvent($oldContext));
        }
    }
public function dropContext ( ) { $ oldContext = false ; if ( $ this -> context ) { $ oldContext = $ this -> context ; } $ this -> context = null ; $ this -> dependentContext = [ ] ; if ( $ oldContext ) { $ this -> dispatcher -> dispatch ( SiteEvents :: EVENT_DROP , new SiteEvent ( $ oldContext ) ) ; } }
Remove current context
Remove current context