original_string: public function enable()
      {
          if (! $this->config instanceof ConfigContract) {
              throw new SandboxException('Please initialize after setting base app.');
          }
  
          $this->setInstance($app = $this->getApplication());
          $this->resetApp($app);
      }
code: public function enable()
      {
          if (! $this->config instanceof ConfigContract) {
              throw new SandboxException('Please initialize after setting base app.');
          }
  
          $this->setInstance($app = $this->getApplication());
          $this->resetApp($app);
      }
code_tokens: public function enable ( ) { if ( ! $ this -> config instanceof ConfigContract ) { throw new SandboxException ( 'Please initialize after setting base app.' ) ; } $ this -> setInstance ( $ app = $ this -> getApplication ( ) ) ; $ this -> resetApp ( $ app ) ; }
docstring: Set laravel snapshot to container and facade.
  
  @throws \SwooleTW\Http\Exceptions\SandboxException
docstring_tokens: Set laravel snapshot to container and facade .