public function get($class, $name = null, $excludeMiddleware = 0)
    {
        $result = parent::get($class, $name, $excludeMiddleware);

        // Only track not empty values by default
        if ($result || $this->trackEmpty) {
            if (!isset(self::$configCalls[$class][$name])) {
                self::$configCalls[$class][$name] = [
                    'calls' => 0,
                    'result' => null
                ];
            }
            self::$configCalls[$class][$name]['calls']++;
            self::$configCalls[$class][$name]['result'] = $result;
        }

        return $result;
    }
public function get($class, $name = null, $excludeMiddleware = 0)
    {
        $result = parent::get($class, $name, $excludeMiddleware);

        // Only track not empty values by default
        if ($result || $this->trackEmpty) {
            if (!isset(self::$configCalls[$class][$name])) {
                self::$configCalls[$class][$name] = [
                    'calls' => 0,
                    'result' => null
                ];
            }
            self::$configCalls[$class][$name]['calls']++;
            self::$configCalls[$class][$name]['result'] = $result;
        }

        return $result;
    }
public function get ( $ class , $ name = null , $ excludeMiddleware = 0 ) { $ result = parent :: get ( $ class , $ name , $ excludeMiddleware ) ; // Only track not empty values by default if ( $ result || $ this -> trackEmpty ) { if ( ! isset ( self :: $ configCalls [ $ class ] [ $ name ] ) ) { self :: $ configCalls [ $ class ] [ $ name ] = [ 'calls' => 0 , 'result' => null ] ; } self :: $ configCalls [ $ class ] [ $ name ] [ 'calls' ] ++ ; self :: $ configCalls [ $ class ] [ $ name ] [ 'result' ] = $ result ; } return $ result ; }
Monitor calls made to get configuration during a request

{@inheritDoc}
Monitor calls made to get configuration during a request