Newer
Older
<?php
namespace LakeDrops\Component\Composer;
use Composer\Package\PackageInterface;
use Composer\Script\Event;
use Symfony\Component\Console\Input\InputInterface;
/**
* Interface for BaseHandler.
*
* @package LakeDrops\Component\Composer
*/
interface BaseHandlerInterface {
*/
public function configId(): string;
* @param \Composer\Script\Event $event
public function setEvent(Event $event): BaseHandlerInterface;
* @param \Symfony\Component\Console\Input\InputInterface $input
public function setInput(InputInterface $input): BaseHandlerInterface;
/**
* Look up the Drupal core package object.
*
/**
* 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|null
public function getPackage(string $name): ?PackageInterface;
* Determines if this is running in development mode.
*
* TRUE, if executing in development mode, FALSE otherwise.
public function isDevMode(): bool;
* Determines if this is running in local development mode.
*
* TRUE, if executing in local development mode, FALSE otherwise.
public function isLocalDevMode(): bool;
/**
* Determine if the current process runs in a CI/CD context.
*
* @return bool
public function isCiContext(): bool;
/**
* Wrapper for git command in the root directory.
*
* @param string $command
* Git command name, arguments and/or options.
* @param string|null $path
* Optional path into which to chdir before executing command.
public function git(string $command, string $path = NULL): void;
/**
* Add the given pattern to gitignore if necessary.
*
* @param string $pattern
* The pattern which should be ignored.
*/
/**
* Add the given pattern to git lfs if necessary.
*
* @param string $pattern
* The pattern which should be added.
*/