[FEATURE] Add symfony dependency injection for core and extbase
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Package / Package.php
index 95dcf5c..1917bea 100644 (file)
@@ -41,6 +41,15 @@ class Package implements PackageInterface
     protected $partOfMinimalUsableSystem = false;
 
     /**
+     * ServiceProvider class name. This property and the corresponding
+     * composer.json setting is internal and therefore no api (yet).
+     *
+     * @var string
+     * @internal
+     */
+    protected $serviceProvider;
+
+    /**
      * Unique key of this package.
      * @var string
      */
@@ -148,6 +157,17 @@ class Package implements PackageInterface
     }
 
     /**
+     * Get the Service Provider class name
+     *
+     * @return string
+     * @internal
+     */
+    public function getServiceProvider(): string
+    {
+        return $this->serviceProvider ?? PseudoServiceProvider::class;
+    }
+
+    /**
      * @return bool
      * @internal
      */