blob: de4ddf8cc00ba3983a0fb20af10c68697921b317 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<?php
namespace Drupal\Composer\Generator;
use Drupal\Composer\Generator\Util\DrupalCoreComposer;
/**
* Produce the output for a metapackage.
*
* BuilderInterface provides an interface for builder classes which are
* called by the PackageGenerator in order to produce a derived metapackage from
* the provided source package.
*
* See the README.txt file in composer/Metapackage for a description of what
* a metapackage is, and an explanation of the metapackages produced by the
* generator.
*/
interface BuilderInterface {
/**
* BuilderInterface constructor.
*
* @param \Drupal\Composer\Generator\Util\DrupalCoreComposer $drupalCoreInfo
* Information about the composer.json, composer.lock, and repository path.
*/
public function __construct(DrupalCoreComposer $drupalCoreInfo);
/**
* Return the path to where the metapackage should be written.
*
* @return string
* Path to the metapackage.
*/
public function getPath();
/**
* Generate the Composer.json data for the current tag or branch.
*
* @return array
* Composer json data.
*/
public function getPackage();
}
|