Newer
Older
<?php
namespace LakeDrops\Component\Composer;
/**
* Interface for BaseHandler.
*
* @package LakeDrops\Component\Composer
*/
interface BaseHandlerInterface {
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
45
/**
* Look up the Drupal core package object.
*
* @return \Composer\Package\PackageInterface
* The Drupal core package.
*/
public function getDrupalCorePackage();
/**
* Retrieve a package from the current composer process.
*
* @param string $name
* Name of the package to get from the current composer installation.
*
* @return \Composer\Package\PackageInterface
* The package.
*/
public function getPackage($name);
/**
* Determine if the current process runs in a CI/CD context.
*
* @return bool
*/
public function isCiContext();
/**
* Wrapper for git command in the root directory.
*
* @param string $command
* Git command name, arguments and/or options.
*/
public function git($command);