Propose to make the \Magento\Framework\App\Config\ScopePool::_getScopeCode() public because it is useful to calculate cache keys based on a scope (like \Magento\Framework\App\Config\ScopePool::getScope() does)

https://github.com/magento/magento2/blob/2.0.0/lib/internal/Magento/Framework/App/Config/ScopePool.php#L107-L127


https://github.com/magento/magento2/blob/2.0.0/lib/internal/Magento/Framework/App/Config/ScopePool.php#L74


https://github.com/magento/magento2/issues/2995

See also: