-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from IonBazan/feature/symfony-7
Symfony 7 support
- Loading branch information
Showing
12 changed files
with
140 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace IonBazan\ComposerDiff\Command; | ||
|
||
use Composer\Command\BaseCommand; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
|
||
/** | ||
* @codeCoverageIgnore | ||
* | ||
* This class contains a non-typed version of execute() method (for PHP 5). | ||
*/ | ||
abstract class BaseNotTypedCommand extends BaseCommand | ||
{ | ||
protected function execute(InputInterface $input, OutputInterface $output) | ||
{ | ||
return $this->handle($input, $output); | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
abstract protected function handle(InputInterface $input, OutputInterface $output); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace IonBazan\ComposerDiff\Command; | ||
|
||
use Composer\Command\BaseCommand; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
|
||
/** | ||
* @codeCoverageIgnore | ||
* | ||
* This class contains a typed version of execute() method (PHP 7+). | ||
*/ | ||
abstract class BaseTypedCommand extends BaseCommand | ||
{ | ||
protected function execute(InputInterface $input, OutputInterface $output): int | ||
{ | ||
return $this->handle($input, $output); | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
abstract protected function handle(InputInterface $input, OutputInterface $output); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace IonBazan\ComposerDiff\Tests\Util; | ||
|
||
use Composer\Composer; | ||
use Composer\Console\Application; | ||
use Composer\IO\IOInterface; | ||
|
||
class ComposerApplication extends Application | ||
{ | ||
public function setIO(IOInterface $io) | ||
{ | ||
$this->io = $io; | ||
} | ||
|
||
public function setComposer(Composer $composer) | ||
{ | ||
$this->composer = $composer; | ||
} | ||
|
||
protected function getDefaultCommands() | ||
{ | ||
return array(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace IonBazan\ComposerDiff\Tests\Util; | ||
|
||
use Composer\Composer; | ||
use Composer\Console\Application; | ||
use Composer\IO\IOInterface; | ||
|
||
class TypedComposerApplication extends Application | ||
{ | ||
public function setIO(IOInterface $io) | ||
{ | ||
$this->io = $io; | ||
} | ||
|
||
public function setComposer(Composer $composer) | ||
{ | ||
$this->composer = $composer; | ||
} | ||
|
||
protected function getDefaultCommands(): array | ||
{ | ||
return array(); | ||
} | ||
} |