Neos\Flow\Package\PackageManagerInterface::createPackage PHP Метод

createPackage() публичный Метод

Create a new package, given the package key
public createPackage ( string $packageKey, array $manifest = [], string $packagesPath = null ) : Neos\Flow\Package\PackageInterface
$packageKey string The package key to use for the new package
$manifest array composer manifest data
$packagesPath string If specified, the package will be created in this path
Результат Neos\Flow\Package\PackageInterface The newly created package
    public function createPackage($packageKey, array $manifest = [], $packagesPath = null);

Usage Example

Пример #1
0
 /**
  * Generate a site package and fill it with boilerplate data.
  *
  * @param string $packageKey
  * @param string $siteName
  * @return array
  */
 public function generateSitePackage($packageKey, $siteName)
 {
     $this->packageManager->createPackage($packageKey, ['type' => 'neos-site', "require" => ["neos/neos" => "*", "neos/nodetypes" => "*"], "suggest" => ["neos/seo" => "*"]]);
     $this->generateSitesXml($packageKey, $siteName);
     $this->generateSitesFusion($packageKey, $siteName);
     $this->generateSitesTemplate($packageKey, $siteName);
     $this->generateNodeTypesConfiguration($packageKey);
     $this->generateAdditionalFolders($packageKey);
     return $this->generatedFiles;
 }
All Usage Examples Of Neos\Flow\Package\PackageManagerInterface::createPackage