Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General Updates and fixes #27

Merged
merged 47 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
9846d10
php-cs-fixer
JoshuaEstes Oct 21, 2023
e91da23
Merge commit 'bda26596877cacb7da88976d87e55b30513eae7c' as 'src/SonsO…
JoshuaEstes Oct 21, 2023
bda2659
Squashed 'src/SonsOfPHP/Bard/' content from commit adaee48
JoshuaEstes Oct 21, 2023
449ff83
checkpoint
JoshuaEstes Oct 21, 2023
82053f8
Squashed 'src/SonsOfPHP/Component/Clock/' content from commit e80b608
JoshuaEstes Oct 21, 2023
26223dc
Merge commit '82053f8e6a58700f13881c879c718a51b86b5780' as 'src/SonsO…
JoshuaEstes Oct 21, 2023
5955f75
checkpoint
JoshuaEstes Oct 21, 2023
569a4f0
Squashed 'src/SonsOfPHP/Component/Cqrs/' content from commit 6d48c96
JoshuaEstes Oct 21, 2023
49115da
Merge commit '569a4f02061dd98f13056f8e5eba7c290fd2d371' as 'src/SonsO…
JoshuaEstes Oct 21, 2023
58cc0f3
check
JoshuaEstes Oct 21, 2023
5cf09cf
checkpoint
JoshuaEstes Oct 21, 2023
7636990
checkpoint
JoshuaEstes Oct 21, 2023
cec3c4f
check
JoshuaEstes Oct 21, 2023
976f946
Squashed 'src/SonsOfPHP/Bard/' changes from adaee48..8ce6ca0
JoshuaEstes Oct 21, 2023
1b45210
Merge commit '976f9466159bae42081fdc83f1fd5508edca538a' into general
JoshuaEstes Oct 21, 2023
fb670ed
meh
JoshuaEstes Oct 21, 2023
54fbd72
Squashed 'src/SonsOfPHP/Bundle/Cqrs/' content from commit 1236b74
JoshuaEstes Oct 21, 2023
0fdec7c
Merge commit '54fbd72f0f9b43b3d4fa2d8e993e4733e13d2b68' as 'src/SonsO…
JoshuaEstes Oct 21, 2023
a708570
check
JoshuaEstes Oct 21, 2023
bbad6fa
Squashed 'src/SonsOfPHP/Bridge/Symfony/Cqrs/' content from commit 230…
JoshuaEstes Oct 21, 2023
cd8269f
Merge commit 'bbad6fa16b8eb6cc51c54e65af2c147be2374333' as 'src/SonsO…
JoshuaEstes Oct 21, 2023
7622fc2
update
JoshuaEstes Oct 21, 2023
bf80f2e
Squashed 'src/SonsOfPHP/Bridge/Symfony/EventSourcing/' content from c…
JoshuaEstes Oct 21, 2023
ef656f0
Merge commit 'bf80f2e0327b084eccf002821dfd504952f83c38' as 'src/SonsO…
JoshuaEstes Oct 21, 2023
e0b4867
meh
JoshuaEstes Oct 21, 2023
9799001
Squashed 'src/SonsOfPHP/Component/EventDispatcher/' content from comm…
JoshuaEstes Oct 21, 2023
349736a
Merge commit '97990016a02a188c8fafbf9c668bb73b62696fc2' as 'src/SonsO…
JoshuaEstes Oct 21, 2023
74a4820
meh
JoshuaEstes Oct 21, 2023
74fcb10
Squashed 'src/SonsOfPHP/Component/EventSourcing/' content from commit…
JoshuaEstes Oct 21, 2023
3241464
Merge commit '74fcb107241335b8a27cc660f05bafc0ffb4fcdd' as 'src/SonsO…
JoshuaEstes Oct 21, 2023
03311be
meh
JoshuaEstes Oct 21, 2023
850766f
Squashed 'src/SonsOfPHP/Bridge/Doctrine/EventSourcing/' content from …
JoshuaEstes Oct 21, 2023
07d8f66
Merge commit '850766f9a74004000a14a5413ae11b45b79cc3b6' as 'src/SonsO…
JoshuaEstes Oct 21, 2023
64ee7a9
meh
JoshuaEstes Oct 21, 2023
d9259a6
Squashed 'src/SonsOfPHP/Component/FeatureToggle/' content from commit…
JoshuaEstes Oct 21, 2023
4b5c6f0
Merge commit 'd9259a6c6f1a85bf106bc6d106e87b5cc1e8b3dc' as 'src/SonsO…
JoshuaEstes Oct 21, 2023
31ea248
meh
JoshuaEstes Oct 21, 2023
8770b71
Squashed 'src/SonsOfPHP/Component/Json/' content from commit 6928f89
JoshuaEstes Oct 21, 2023
db97fad
Merge commit '8770b712504630d237964d6df6a6bbf187bea99c' as 'src/SonsO…
JoshuaEstes Oct 21, 2023
8941302
meh
JoshuaEstes Oct 21, 2023
25398d3
Squashed 'src/SonsOfPHP/Component/Money/' content from commit 07629f0
JoshuaEstes Oct 21, 2023
5630cf4
Merge commit '25398d33cfcad415f816d45346aca6cfc67a2455' as 'src/SonsO…
JoshuaEstes Oct 21, 2023
f1c726b
meh
JoshuaEstes Oct 21, 2023
18cbe53
Squashed 'src/SonsOfPHP/Component/Version/' content from commit 9c67e99
JoshuaEstes Oct 21, 2023
c717859
Merge commit '18cbe53da88f2c6691a6f2ac9e454b1e29aeac97' as 'src/SonsO…
JoshuaEstes Oct 21, 2023
95a5d4d
meh
JoshuaEstes Oct 21, 2023
9d0c7c2
moving
JoshuaEstes Oct 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
69 changes: 31 additions & 38 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,39 +1,32 @@
# Packages
/packages/autoloader/ @JoshuaEstes
/packages/bard/ @JoshuaEstes
/packages/cache/ @JoshuaEstes
/packages/clock/ @JoshuaEstes
/packages/cqrs/ @JoshuaEstes
/packages/cqrs-bundle/ @JoshuaEstes
/packages/cqrs-symfony/ @JoshuaEstes
/packages/crypto/ @JoshuaEstes
/packages/csv/ @JoshuaEstes
/packages/event-dispatcher/ @JoshuaEstes
/packages/event-sourcing/ @JoshuaEstes
/packages/event-sourcing-bundle/ @JoshuaEstes
/packages/event-sourcing-doctrine/ @JoshuaEstes
/packages/event-sourcing-symfony/ @JoshuaEstes
/packages/faker/ @JoshuaEstes
/packages/feature-toggle/ @JoshuaEstes
/packages/feature-toggle-bundle/ @JoshuaEstes
/packages/feature-toggle-doctrine/ @JoshuaEstes
/packages/feature-toggle-symfony/ @JoshuaEstes
/packages/filesystem/ @JoshuaEstes
/packages/filesystem-bundle/ @JoshuaEstes
/packages/http-client/ @JoshuaEstes
/packages/http-factory/ @JoshuaEstes
/packages/http-handler/ @JoshuaEstes
/packages/http-message/ @JoshuaEstes
/packages/json/ @JoshuaEstes
/packages/link/ @JoshuaEstes
/packages/logger/ @JoshuaEstes
/packages/money/ @JoshuaEstes
/packages/money-doctrine/ @JoshuaEstes
/packages/pdf/ @JoshuaEstes
/packages/phonenumber/ @JoshuaEstes
/packages/queue/ @JoshuaEstes
/packages/semver/ @JoshuaEstes
/packages/stopwatch/ @JoshuaEstes
/packages/stripe/ @JoshuaEstes
/packages/stripe-bundle/ @JoshuaEstes
/packages/xml/ @JoshuaEstes
/src/SonsOfPHP/Bard @JoshuaEstes
/src/SonsOfPHP/Bridge/Doctrine/EventSourcing @JoshuaEstes
/src/SonsOfPHP/Bridge/Doctrine/FeatureToggle @JoshuaEstes
/src/SonsOfPHP/Bridge/Doctrine/Money @JoshuaEstes
/src/SonsOfPHP/Bridge/Symfony/Cqrs @JoshuaEstes
/src/SonsOfPHP/Bridge/Symfony/EventSourcing @JoshuaEstes
/src/SonsOfPHP/Bridge/Symfony/Filesystem @JoshuaEstes
/src/SonsOfPHP/Bundle/Cqrs @JoshuaEstes
/src/SonsOfPHP/Bundle/FeatureToggle @JoshuaEstes
/src/SonsOfPHP/Bundle/Filesystem @JoshuaEstes
/src/SonsOfPHP/Component/Autoloader @JoshuaEstes
/src/SonsOfPHP/Component/Cache @JoshuaEstes
/src/SonsOfPHP/Component/Clock @JoshuaEstes
/src/SonsOfPHP/Component/Cqrs @JoshuaEstes
/src/SonsOfPHP/Component/Cvs @JoshuaEstes
/src/SonsOfPHP/Component/EventDispatcher @JoshuaEstes
/src/SonsOfPHP/Component/EventSourcing @JoshuaEstes
/src/SonsOfPHP/Component/FeatureToggle @JoshuaEstes
/src/SonsOfPHP/Component/Faker @JoshuaEstes
/src/SonsOfPHP/Component/Filesystem @JoshuaEstes
/src/SonsOfPHP/Component/HttpClient @JoshuaEstes
/src/SonsOfPHP/Component/HttpFactory @JoshuaEstes
/src/SonsOfPHP/Component/HttpHandler @JoshuaEstes
/src/SonsOfPHP/Component/HttpMessage @JoshuaEstes
/src/SonsOfPHP/Component/Json @JoshuaEstes
/src/SonsOfPHP/Component/Logger @JoshuaEstes
/src/SonsOfPHP/Component/Money @JoshuaEstes
/src/SonsOfPHP/Component/Pdf @JoshuaEstes
/src/SonsOfPHP/Component/PhoneNumber @JoshuaEstes
/src/SonsOfPHP/Component/Queue @JoshuaEstes
/src/SonsOfPHP/Component/Version @JoshuaEstes
10 changes: 10 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,49 @@ docs:
- docs/*

Bard:
- docs/bard/*
- packages/bard/*
- src/SonsOfPHP/Bard/*

Clock:
- docs/components/clock/*
- packages/clock/*
- src/SonsOfPHP/Component/Clock/*

CQRS:
- docs/components/cqrs/*
- packages/cqrs/*
- packages/cqrs-symfony/*
- src/SonsOfPHP/**/Cqrs/*

EventDispatcher:
- docs/components/event-dispatcher/*
- packages/event-dispatcher/*
- src/SonsOfPHP/**/EventDispatcher/*

EventSourcing:
- docs/components/event-sourcing/*
- packages/event-sourcing/*
- packages/event-sourcing-doctrine/*
- packages/event-sourcing-symfony/*
- src/SonsOfPHP/**/EventSourcing/*

FeatureToggle:
- docs/components/feature-toggle/*
- packages/feature-toggle/*
- src/SonsOfPHP/**/FeatureToggle/*

JSON:
- docs/components/json/*
- packages/json/*
- src/SonsOfPHP/**/Json/*

Money:
- docs/components/money/*
- packages/money/*
- src/SonsOfPHP/**/Money/*

Version:
- docs/components/version/*
- packages/version/*
- src/SonsOfPHP/**/Version/*
19 changes: 10 additions & 9 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in('packages/')
->in(__DIR__)
->exclude('docs')
->exclude('tools')
->exclude('vendor')
;

$config = new PhpCsFixer\Config();
return $config->setRules([
// Rule sets
'@PER-CS2.0' => true,
'@PHP80Migration:risky' => true,
'@PHP81Migration' => true,
'@PHPUnit100Migration:risky' => true,
])
->setFinder($finder)
;
// Rule sets
'@PER-CS' => true,
'@PHP80Migration:risky' => true,
'@PHP81Migration' => true,
'@PHPUnit100Migration:risky' => true,
])->setFinder($finder);
32 changes: 16 additions & 16 deletions bard.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,55 @@
"version": "0.3.7",
"packages": [
{
"path": "packages/bard/",
"path": "src/SonsOfPHP/Bard",
"repository": "[email protected]:SonsOfPHP/bard.git"
},
{
"path": "packages/clock/",
"path": "src/SonsOfPHP/Component/Clock",
"repository": "[email protected]:SonsOfPHP/clock.git"
},
{
"path": "packages/cqrs/",
"path": "src/SonsOfPHP/Component/Cqrs",
"repository": "[email protected]:SonsOfPHP/cqrs.git"
},
{
"path": "packages/cqrs-bundle/",
"path": "src/SonsOfPHP/Bundle/Cqrs",
"repository": "[email protected]:SonsOfPHP/cqrs-bundle.git"
},
{
"path": "packages/cqrs-symfony/",
"path": "src/SonsOfPHP/Bridge/Symfony/Cqrs",
"repository": "[email protected]:SonsOfPHP/cqrs-symfony.git"
},
{
"path": "packages/event-dispatcher/",
"path": "src/SonsOfPHP/Bridge/Symfony/EventSourcing",
"repository": "[email protected]:SonsOfPHP/event-sourcing-symfony.git"
},
{
"path": "src/SonsOfPHP/Component/EventDispatcher",
"repository": "[email protected]:SonsOfPHP/event-dispatcher.git"
},
{
"path": "packages/event-sourcing/",
"path": "src/SonsOfPHP/Component/EventSourcing",
"repository": "[email protected]:SonsOfPHP/event-sourcing.git"
},
{
"path": "packages/event-sourcing-doctrine/",
"path": "src/SonsOfPHP/Bridge/Doctrine/EventSourcing",
"repository": "[email protected]:SonsOfPHP/event-sourcing-doctrine.git"
},
{
"path": "packages/event-sourcing-symfony/",
"repository": "[email protected]:SonsOfPHP/event-sourcing-symfony.git"
},
{
"path": "packages/feature-toggle/",
"path": "src/SonsOfPHP/Component/FeatureToggle",
"repository": "[email protected]:SonsOfPHP/feature-toggle.git"
},
{
"path": "packages/json/",
"path": "src/SonsOfPHP/Component/Json",
"repository": "[email protected]:SonsOfPHP/json.git"
},
{
"path": "packages/money/",
"path": "src/SonsOfPHP/Component/Money",
"repository": "[email protected]:SonsOfPHP/money.git"
},
{
"path": "packages/version/",
"path": "src/SonsOfPHP/Component/Version",
"repository": "[email protected]:SonsOfPHP/version.git"
}
]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ protected function getDefaultCommands(): array
new \SonsOfPHP\Bard\Console\Command\InitCommand(),
new \SonsOfPHP\Bard\Console\Command\InstallCommand(),
new \SonsOfPHP\Bard\Console\Command\MergeCommand(),
new \SonsOfPHP\Bard\Console\Command\PullCommand(),
new \SonsOfPHP\Bard\Console\Command\PushCommand(),
new \SonsOfPHP\Bard\Console\Command\ReleaseCommand(),
new \SonsOfPHP\Bard\Console\Command\SplitCommand(),
Expand Down
58 changes: 58 additions & 0 deletions src/SonsOfPHP/Bard/src/Console/Command/PullCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php

declare(strict_types=1);

namespace SonsOfPHP\Bard\Console\Command;

use SonsOfPHP\Bard\JsonFile;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Component\Process\Process;

/**
* @author Joshua Estes <[email protected]>
*/
final class PullCommand extends AbstractCommand
{
protected static $defaultName = 'pull';

protected function configure(): void
{
$this
->setDescription('Pull changes from package repos')
->addOption('branch', null, InputOption::VALUE_REQUIRED, 'What branch we working with?', 'main')
;
}

protected function execute(InputInterface $input, OutputInterface $output): int
{
$bardConfig = new JsonFile($input->getOption('working-dir') . '/bard.json');
$formatter = $this->getHelper('formatter');
$io = new SymfonyStyle($input, $output);

foreach ($bardConfig->getSection('packages') as $pkg) {
$pkgComposerFile = realpath($input->getOption('working-dir') . '/' . $pkg['path'] . '/composer.json');
$pkgComposerJsonFile = new JsonFile($pkgComposerFile);
$pkgName = $pkgComposerJsonFile->getSection('name');
$io->text(sprintf('Pushing <info>%s</>', $pkgName));

$commands = [
['git', 'subtree', 'pull', '-P', $pkg['path'], $pkg['repository'], $input->getOption('branch'), '--squash'],
];

foreach ($commands as $cmd) {
$process = new Process($cmd);
$io->text($process->getCommandLine());
$this->getHelper('process')
->mustRun($output, $process, sprintf('There was and error running command: %s', $process->getCommandLine()))
->wait();
}
}

$io->success('All Packages have been published.');

return self::SUCCESS;
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading