TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:09 +02:00
commit af8cc155b5
6818 changed files with 642608 additions and 0 deletions
@@ -0,0 +1,42 @@
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Core\Page\Event;
use TYPO3\CMS\Core\Page\AssetCollector;
abstract class AbstractBeforeAssetRenderingEvent
{
protected AssetCollector $assetCollector;
protected bool $inline;
protected bool $priority;
public function getAssetCollector(): AssetCollector
{
return $this->assetCollector;
}
public function isInline(): bool
{
return $this->inline;
}
public function isPriority(): bool
{
return $this->priority;
}
}
@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Core\Page\Event;
use TYPO3\CMS\Core\Page\AssetCollector;
/**
* This event is fired once before \TYPO3\CMS\Core\Page\AssetRenderer::render[Inline]JavaScript renders the output.
*/
final class BeforeJavaScriptsRenderingEvent extends AbstractBeforeAssetRenderingEvent
{
public function __construct(AssetCollector $assetCollector, bool $isInline, bool $priority)
{
$this->assetCollector = $assetCollector;
$this->inline = $isInline;
$this->priority = $priority;
}
}
@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Core\Page\Event;
use TYPO3\CMS\Core\Page\AssetCollector;
/**
* This event is fired once before \TYPO3\CMS\Core\Page\AssetRenderer::render[Inline]Stylesheets renders the output.
*/
final class BeforeStylesheetsRenderingEvent extends AbstractBeforeAssetRenderingEvent
{
public function __construct(AssetCollector $assetCollector, bool $isInline, bool $priority)
{
$this->assetCollector = $assetCollector;
$this->inline = $isInline;
$this->priority = $priority;
}
}
@@ -0,0 +1,40 @@
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Core\Page\Event;
use Psr\EventDispatcher\StoppableEventInterface;
use TYPO3\CMS\Core\Page\ImportMap;
final class ResolveJavaScriptImportEvent implements StoppableEventInterface
{
/**
* @var ?non-empty-string
*/
public ?string $resolution = null;
public function __construct(
public readonly string $specifier,
public readonly bool $loadImportConfiguration,
public readonly ImportMap $importMap,
) {}
public function isPropagationStopped(): bool
{
return $this->resolution !== null;
}
}
@@ -0,0 +1,42 @@
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Core\Page\Event;
use Psr\EventDispatcher\StoppableEventInterface;
use TYPO3\CMS\Core\Page\ImportMap;
/**
* @internal
*/
final class ResolveVirtualJavaScriptImportEvent implements StoppableEventInterface
{
/**
* @var ?non-empty-string
*/
public ?string $resolution = null;
public function __construct(
public readonly string $virtualName,
public readonly ImportMap $importMap,
) {}
public function isPropagationStopped(): bool
{
return $this->resolution !== null;
}
}