- md5
- b1718040ed91f6de16e7b04872d1e857
- sha1
- 8e7bf736cb06824743479f2dea4578e2bea53d94
- sha256
- 0e676fd27840e092c06c5233523322a8ec7aed3d1f0949c4cf6db8e79b07f958
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
<?php
/**
* Joomla! Content Management System
*
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Document;
use Psr\Link\EvolvableLinkProviderInterface;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Joomla! Preload Manager Interface
*
* @since 4.0.0
*/
interface PreloadManagerInterface
{
/**
* Get the link provider
*
* @return EvolvableLinkProviderInterface
*
* @since 4.0.0
*/
public function getLinkProvider(): EvolvableLinkProviderInterface;
/**
* Set the link provider
*
* @param EvolvableLinkProviderInterface $linkProvider The link provider
*
* @return $this
*
* @since 4.0.0
*/
public function setLinkProvider(EvolvableLinkProviderInterface $linkProvider);
/**
* Preloads a resource.
*
* @param string $uri A public path
* @param array $attributes The attributes of this link (e.g. "array('as' => true)", "array('crossorigin' => 'use-credentials')")
*
* @return void
*
* @since 4.0.0
*/
public function preload(string $uri, array $attributes = []);
/**
* Resolves a resource origin as early as possible.
*
* @param string $uri A public path
* @param array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
*
* @return void
*
* @since 4.0.0
*/
public function dnsPrefetch(string $uri, array $attributes = []);
/**
* Initiates an early connection to a resource (DNS resolution, TCP handshake, TLS negotiation).
*
* @param string $uri A public path
* @param array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
*
* @return void
*
* @since 4.0.0
*/
public function preconnect(string $uri, array $attributes = []);
/**
* Indicates to the client that it should prefetch this resource.
*
* @param string $uri A public path
* @param array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
*
* @return void
*
* @since 4.0.0
*/
public function prefetch(string $uri, array $attributes = []);
/**
* Indicates to the client that it should prerender this resource.
*
* @param string $uri A public path
* @param array $attributes The attributes of this link (e.g. "array('as' => true)", "array('pr' => 0.5)")
*
* @return void
*
* @since 4.0.0
*/
public function prerender(string $uri, array $attributes = []);
}
The same content is in 225 releases, Joomla 4.2.1 to 6.2.1-rc1. See them all, or every version of this file.