Composer Command Event (Plugin/PreCommandRunEvent.php)

composer · src/Composer/Plugin/PreCommandRunEvent.php · php · MIT
unclassified, dev-tools, cli, lang:php, tag:composer, tag:events

Represents an event triggered before a Composer command execution. Use this to hook into the dependency manager lifecycle for plugin development.

// Source: https://github.com/composer/composer | License: MIT | Copyright Nils Adermann, Jordi Boggiano
// Provided via justclaw.it.com; keep this notice with the code.
<?php declare(strict_types=1);

/*
 * This file is part of Composer.
 *
 * (c) Nils Adermann <naderman@naderman.de>
 *     Jordi Boggiano <j.boggiano@seld.be>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Composer\Plugin;

use Composer\EventDispatcher\Event;
use Symfony\Component\Console\Input\InputInterface;

/**
 * The pre command run event.
 *
 * @author Jordi Boggiano <j.boggiano@seld.be>
 */
class PreCommandRunEvent extends Event
{
    /**
     * @var InputInterface
     */
    private $input;

    /**
     * @var string

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key