original_string: function attachToEvent(iEvent $event)
      {
          if ( \Poirot\isCommandLine() )
              // Restriction IP Only Work With Http Sapi
              return $this;
  
  
          $self = $this;
          $event->on(EventHeapOfSapi::EVENT_APP_MATCH_REQUEST, function() use ($self) {
              $self->_assertAccess();
          });
  
          return $this;
      }
code: function attachToEvent(iEvent $event)
      {
          if ( \Poirot\isCommandLine() )
              // Restriction IP Only Work With Http Sapi
              return $this;
  
  
          $self = $this;
          $event->on(EventHeapOfSapi::EVENT_APP_MATCH_REQUEST, function() use ($self) {
              $self->_assertAccess();
          });
  
          return $this;
      }
code_tokens: function attachToEvent ( iEvent $ event ) { if ( \ Poirot \ isCommandLine ( ) ) // Restriction IP Only Work With Http Sapi return $ this ; $ self = $ this ; $ event -> on ( EventHeapOfSapi :: EVENT_APP_MATCH_REQUEST , function ( ) use ( $ self ) { $ self -> _assertAccess ( ) ; } ) ; return $ this ; }
docstring: Attach To Event
  
  note: not throw any exception if event type is unknown!
  
  @param iEvent|EventHeapOfSapi $event
  
  @return $this
docstring_tokens: Attach To Event