src/mg/Ding/Helpers/Pagi/PagiExtensionMapper.php
public function resolve($extension)
    {
        if (is_array($this->_map)) {
            foreach ($this->_map as $map) {
                if (isset($map['extension']) && $map['extension'] == $extension) {
                    return $map['application'];
                }
            }
        }
        return $this->_map['default']['application'];
    }
public function resolve($extension)
    {
        if (is_array($this->_map)) {
            foreach ($this->_map as $map) {
                if (isset($map['extension']) && $map['extension'] == $extension) {
                    return $map['application'];
                }
            }
        }
        return $this->_map['default']['application'];
    }
Resolve extension to application (bean).

@param string $extension Extension to map.

@return PAGIApplication