Nam dapibus tortor non massa bibendum molestie. Aenean a massa luctus mi consequat lobortis eu egestas risus. Donec eget enim tempor mi rutrum fringilla. Morbi ullamcorper, urna sed tristique tristique, urna augue sodales nulla, a luctus felis enim sit amet dolor. Donec nisl leo, tempor in suscipit quis, pretium eget velit. Vivamus consectetur congue quam, in ullamcorper justo tincidunt ut. Fusce odio felis, venenatis sit amet volutpat et, dignissim non libero.

 

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <This email address is being protected from spambots. You need JavaScript enabled to view it.>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpKernel\Config;

use Symfony\Component\Config\FileLocator as BaseFileLocator;
use Symfony\Component\HttpKernel\KernelInterface;

/**
 * FileLocator uses the KernelInterface to locate resources in bundles.
 *
 * @author Fabien Potencier <This email address is being protected from spambots. You need JavaScript enabled to view it.>
 */
class FileLocator extends BaseFileLocator
{
    private $kernel;

    public function __construct(KernelInterface $kernel)
    {
        $this->kernel = $kernel;

        parent::__construct();
    }

    /**
     * {@inheritdoc}
     */
    public function locate(string $file, string $currentPath = null, bool $first = true)
    {
        if (isset($file[0]) && '@' === $file[0]) {
            $resource = $this->kernel->locateResource($file);

            return $first ? $resource : [$resource];
        }

        return parent::locate($file, $currentPath, $first);
    }
}

 

Nam dapibus tortor non massa bibendum molestie. Aenean a massa luctus mi consequat lobortis eu egestas risus. Donec eget enim tempor mi rutrum fringilla. Morbi ullamcorper, urna sed tristique tristique, urna augue sodales nulla, a luctus felis enim sit amet dolor. Donec nisl leo, tempor in suscipit quis, pretium eget velit.

 

<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Client;

defined('JPATH_PLATFORM') or die;

/**
 * Wrapper class for ClientHelper
 *
 * @since       3.4
 * @deprecated  4.0 Will be removed without replacement
 */
class ClientWrapper
{
	/**
	 * Helper wrapper method for getCredentials
	 *
	 * @param   string   $client  Client name, currently only 'ftp' is supported
	 * @param   boolean  $force   Forces re-creation of the login credentials. Set this to
	 *
	 * @return  array    Client layer configuration options, consisting of at least
	 *
	 * @see     ClientHelper::getCredentials()
	 * @since   3.4
	 */
	public function getCredentials($client, $force = false)
	{
		return ClientHelper::getCredentials($client, $force);
	}

	/**
	 * Helper wrapper method for setCredentials
	 *
	 * @param   string  $client  Client name, currently only 'ftp' is supported
	 * @param   string  $user    Username
	 * @param   string  $pass    Password
	 *
	 * @return boolean  True if the given login credentials have been set and are valid
	 *
	 * @see     ClientHelper::setCredentials()
	 * @since   3.4
	 */
	public function setCredentials($client, $user, $pass)
	{
		return ClientHelper::setCredentials($client, $user, $pass);
	}

	/**
	 * Helper wrapper method for hasCredentials
	 *
	 * @param   string  $client  Client name, currently only 'ftp' is supported
	 *
	 * @return boolean  True if login credentials are available
	 *
	 * @see     ClientHelper::hasCredentials()
	 * @since   3.4
	 */
	public function hasCredentials($client)
	{
		return ClientHelper::hasCredentials($client);
	}

	/**
	 * Helper wrapper method for setCredentialsFromRequest
	 *
	 * @param   string  $client  The name of the client.
	 *
	 * @return  mixed  True, if FTP settings; JError if using legacy tree
	 *
	 * @see     UserHelper::setCredentialsFromRequest()
	 * @since   3.4
	 * @throws  \InvalidArgumentException if credentials invalid
	 */
	public function setCredentialsFromRequest($client)
	{
		return ClientHelper::setCredentialsFromRequest($client);
	}
}

 

Vivamus consectetur congue quam, in ullamcorper justo tincidunt ut. Fusce odio felis, venenatis sit amet volutpat et, dignissim non libero.