public function setLoaderFallback($name, callable $loader)
    {
        $fallbackDomain = 'default';
        if (!$this->_useFallback || $name === $fallbackDomain) {
            return $loader;
        }
        $loader = function () use ($loader, $fallbackDomain) {
            /* @var \Aura\Intl\Package $package */
            $package = $loader();
            if (!$package->getFallback()) {
                $package->setFallback($fallbackDomain);
            }

            return $package;
        };

        return $loader;
    }
public function setLoaderFallback($name, callable $loader)
    {
        $fallbackDomain = 'default';
        if (!$this->_useFallback || $name === $fallbackDomain) {
            return $loader;
        }
        $loader = function () use ($loader, $fallbackDomain) {
            /* @var \Aura\Intl\Package $package */
            $package = $loader();
            if (!$package->getFallback()) {
                $package->setFallback($fallbackDomain);
            }

            return $package;
        };

        return $loader;
    }
public function setLoaderFallback ( $ name , callable $ loader ) { $ fallbackDomain = 'default' ; if ( ! $ this -> _useFallback || $ name === $ fallbackDomain ) { return $ loader ; } $ loader = function ( ) use ( $ loader , $ fallbackDomain ) { /* @var \Aura\Intl\Package $package */ $ package = $ loader ( ) ; if ( ! $ package -> getFallback ( ) ) { $ package -> setFallback ( $ fallbackDomain ) ; } return $ package ; } ; return $ loader ; }
Set domain fallback for loader.

@param string $name The name of the loader domain
@param callable $loader invokable loader
@return callable loader
Set domain fallback for loader .