private function getConfigMapWatchCallback()
    {
        return function ($event, $watch) {
            switch ($event['type']) {
                case 'ADDED':
                case 'MODIFIED':
                    $this->state['config'] = yaml_parse($event['object']['data']['config']);
                    $this->onConfigLoaded();
                    break;
                case 'DELETED':
                    $this->state['deleted_config'] = yaml_parse($event['object']['data']['config']);
                    $this->state['config'] = null;
                    $this->onConfigUnloaded();
                    break;
            }
        };
    }
private function getConfigMapWatchCallback()
    {
        return function ($event, $watch) {
            switch ($event['type']) {
                case 'ADDED':
                case 'MODIFIED':
                    $this->state['config'] = yaml_parse($event['object']['data']['config']);
                    $this->onConfigLoaded();
                    break;
                case 'DELETED':
                    $this->state['deleted_config'] = yaml_parse($event['object']['data']['config']);
                    $this->state['config'] = null;
                    $this->onConfigUnloaded();
                    break;
            }
        };
    }
private function getConfigMapWatchCallback ( ) { return function ( $ event , $ watch ) { switch ( $ event [ 'type' ] ) { case 'ADDED' : case 'MODIFIED' : $ this -> state [ 'config' ] = yaml_parse ( $ event [ 'object' ] [ 'data' ] [ 'config' ] ) ; $ this -> onConfigLoaded ( ) ; break ; case 'DELETED' : $ this -> state [ 'deleted_config' ] = yaml_parse ( $ event [ 'object' ] [ 'data' ] [ 'config' ] ) ; $ this -> state [ 'config' ] = null ; $ this -> onConfigUnloaded ( ) ; break ; } } ; }
The callback for the controller ConfigMap watch

@return \Closure
The callback for the controller ConfigMap watch