__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\WebLink; use Psr\Link\EvolvableLinkProviderInterface; use Psr\Link\LinkInterface; class GenericLinkProvider implements EvolvableLinkProviderInterface { /** * @var LinkInterface[] */ private $links = []; /** * @param LinkInterface[] $links */ public function __construct(array $links = []) { $that = $this; foreach ($links as $link) { $that = $that->withLink($link); } $this->links = $that->links; } /** * {@inheritdoc} */ public function getLinks(): array { return array_values($this->links); } /** * {@inheritdoc} */ public function getLinksByRel($rel): array { $links = []; foreach ($this->links as $link) { if (\in_array($rel, $link->getRels())) { $links[] = $link; } } return $links; } /** * {@inheritdoc} * * @return static */ public function withLink(LinkInterface $link) { $that = clone $this; $that->links[spl_object_id($link)] = $link; return $that; } /** * {@inheritdoc} * * @return static */ public function withoutLink(LinkInterface $link) { $that = clone $this; unset($that->links[spl_object_id($link)]); return $that; } }
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| EventListener | Folder | 0775 |
|
|
| GenericLinkProvider.php | File | 1.62 KB | 0664 |
|
| HttpHeaderSerializer.php | File | 1.71 KB | 0664 |
|
| LICENSE | File | 1.04 KB | 0664 |
|
| Link.php | File | 3.32 KB | 0664 |
|