‪TYPO3CMS  ‪main
PackageInterface.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
24 {
28  public const ‪PATTERN_MATCH_COMPOSER_NAME = '{^[a-z0-9_.-]+/[a-z0-9_.-]+$}D';
29 
30  public const ‪PATTERN_MATCH_PACKAGEKEY = '/^[a-z0-9]+\.(?:[a-z0-9][\.a-z0-9]*)+$/i';
31 
32  public const ‪PATTERN_MATCH_EXTENSIONKEY = '/^[0-9a-z_-]+$/i';
33 
37  public function ‪getPackageReplacementKeys(): array;
38 
45  public function ‪isPartOfFactoryDefault(): bool;
46 
54  public function ‪isPartOfMinimalUsableSystem(): bool;
55 
63  public function ‪getValueFromComposerManifest(string $key = null): mixed;
64 
70  public function ‪getPackageMetaData(): ‪MetaData;
71 
77  public function ‪getPackageKey(): string;
78 
84  public function ‪isProtected(): bool;
85 
91  public function ‪setProtected(bool $protected): void;
92 
98  public function ‪getPackagePath(): string;
99 
103  public function ‪getPackageIcon(): ?string;
104 
105 }
‪TYPO3\CMS\Core\Package\PackageInterface\getPackageKey
‪string getPackageKey()
‪TYPO3\CMS\Core\Package\PackageInterface\setProtected
‪setProtected(bool $protected)
‪TYPO3\CMS\Core\Package\PackageInterface\isPartOfMinimalUsableSystem
‪isPartOfMinimalUsableSystem()
‪TYPO3\CMS\Core\Package\PackageInterface\getPackagePath
‪string getPackagePath()
‪TYPO3\CMS\Core\Package\PackageInterface\isPartOfFactoryDefault
‪isPartOfFactoryDefault()
‪TYPO3\CMS\Core\Package\PackageInterface\PATTERN_MATCH_EXTENSIONKEY
‪const PATTERN_MATCH_EXTENSIONKEY
Definition: PackageInterface.php:32
‪TYPO3\CMS\Core\Package\PackageInterface
Definition: PackageInterface.php:24
‪TYPO3\CMS\Core\Package\PackageInterface\getValueFromComposerManifest
‪getValueFromComposerManifest(string $key=null)
‪TYPO3\CMS\Core\Package\PackageInterface\getPackageIcon
‪getPackageIcon()
‪TYPO3\CMS\Core\Package\PackageInterface\getPackageReplacementKeys
‪getPackageReplacementKeys()
‪TYPO3\CMS\Core\Package\PackageInterface\PATTERN_MATCH_PACKAGEKEY
‪const PATTERN_MATCH_PACKAGEKEY
Definition: PackageInterface.php:30
‪TYPO3\CMS\Core\Package\PackageInterface\PATTERN_MATCH_COMPOSER_NAME
‪const PATTERN_MATCH_COMPOSER_NAME
Definition: PackageInterface.php:28
‪TYPO3\CMS\Core\Package\PackageInterface\getPackageMetaData
‪getPackageMetaData()
‪TYPO3\CMS\Core\Package
Definition: AbstractServiceProvider.php:18
‪TYPO3\CMS\Core\Package\MetaData
Definition: MetaData.php:24
‪TYPO3\CMS\Core\Package\PackageInterface\isProtected
‪bool isProtected()