public function pushEndpointHandler($apiName, $handlerClassName) {
        if(!class_exists($handlerClassName)) {
            throw new RuntimeException('This handler class (' . $handlerClassName . ') not found!');
        }

        $apiName = ucfirst(strtolower($apiName));

        $this->uniqueEndpointHandlers[$apiName] = $handlerClassName;

        //Invalidate the cache, if exist
        if(isset($this->endpointObjectCache[$apiName])) {
            unset($this->endpointObjectCache[$apiName]);
        }
    }
public function pushEndpointHandler($apiName, $handlerClassName) {
        if(!class_exists($handlerClassName)) {
            throw new RuntimeException('This handler class (' . $handlerClassName . ') not found!');
        }

        $apiName = ucfirst(strtolower($apiName));

        $this->uniqueEndpointHandlers[$apiName] = $handlerClassName;

        //Invalidate the cache, if exist
        if(isset($this->endpointObjectCache[$apiName])) {
            unset($this->endpointObjectCache[$apiName]);
        }
    }
public function pushEndpointHandler ( $ apiName , $ handlerClassName ) { if ( ! class_exists ( $ handlerClassName ) ) { throw new RuntimeException ( 'This handler class (' . $ handlerClassName . ') not found!' ) ; } $ apiName = ucfirst ( strtolower ( $ apiName ) ) ; $ this -> uniqueEndpointHandlers [ $ apiName ] = $ handlerClassName ; //Invalidate the cache, if exist if ( isset ( $ this -> endpointObjectCache [ $ apiName ] ) ) { unset ( $ this -> endpointObjectCache [ $ apiName ] ) ; } }
Pushes a unique handler to the stack. Unique handlers are preferred, over default handlers.
One endpoint only have on unique handler, and if you push another it will overwrite the previous

@param string $apiName
@param string $handlerClassName The handler FQCN

@throws \BuildR\Foundation\Exception\RuntimeException
Pushes a unique handler to the stack . Unique handlers are preferred over default handlers . One endpoint only have on unique handler and if you push another it will overwrite the previous