Skip to content

Commit

Permalink
Merge branch 'release/v0.4.22'
Browse files Browse the repository at this point in the history
  • Loading branch information
betterthanclay committed Aug 22, 2024
2 parents b1a088f + af88073 commit 3b752d8
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 16 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v0.4.22 (2024-08-21)
* Converted consts to PascalCase
* Updated dependencies
* Updated Veneer dependency and Stub

## v0.4.21 (2024-08-09)
* Added executables whitelist

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
"composer-runtime-api": "^2.2",

"decodelabs/archetype": "^0.3",
"decodelabs/atlas": "^0.11",
"decodelabs/atlas": "^0.12",
"decodelabs/clip": "^0.3.2",
"decodelabs/dictum": "^0.6",
"decodelabs/exceptional": "^0.4",
"decodelabs/integra": "^0.1.4",
"decodelabs/genesis": "^0.8",
"decodelabs/lucid": "^0.4.4",
"decodelabs/genesis": "^0.9",
"decodelabs/lucid": "^0.4.7",
"decodelabs/systemic": "^0.11",
"decodelabs/terminus": "^0.10.1",
"decodelabs/veneer": "^0.11.1",
"decodelabs/veneer": "^0.11.6",

"phpstan/phpstan": "^1.8",
"phpstan/extension-installer": "^1.2",
Expand Down
4 changes: 2 additions & 2 deletions src/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Controller extends GenericController implements
ControllerInterface,
Dumpable
{
public const USER_FILENAME = 'effigy.json';
protected const UserFilename = 'effigy.json';

#[Plugin]
public Config $config;
Expand All @@ -53,7 +53,7 @@ class Controller extends GenericController implements
public function __construct()
{
$this->config = new Config(
Integra::$rootDir->getFile(self::USER_FILENAME)
Integra::$rootDir->getFile(self::UserFilename)
);

// Local
Expand Down
8 changes: 4 additions & 4 deletions src/Task/GenerateComposerConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class GenerateComposerConfig implements Task
{
use GenerateFileTrait;

public const PACKAGES = [
protected const Packages = [
'decodelabs/exceptional'
];

public const DEV_PACKAGES = [
protected const DevPackages = [
'decodelabs/phpstan-decodelabs'
];

Expand All @@ -41,13 +41,13 @@ protected function getTemplate(): Template
protected function afterFileSave(
File $file
): bool {
foreach (static::PACKAGES as $package) {
foreach (static::Packages as $package) {
if (!Integra::install($package)) {
return false;
}
}

foreach (static::DEV_PACKAGES as $package) {
foreach (static::DevPackages as $package) {
if (!Integra::installDev($package)) {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Task/InstallLocal.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class InstallLocal implements Task
{
public const PACKAGES = [
public const Packages = [
'phpstan/phpstan',
'decodelabs/effigy',
'phpstan/extension-installer'
Expand All @@ -35,6 +35,6 @@ public function execute(): bool
umask($umask);
Cli::newLine();

return Integra::installDev(...static::PACKAGES);
return Integra::installDev(...static::Packages);
}
}
2 changes: 1 addition & 1 deletion src/Task/RemoveLocal.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public function execute(): bool

Cli::newLine();

return Integra::uninstallDev(...InstallLocal::PACKAGES);
return Integra::uninstallDev(...InstallLocal::Packages);
}
}
5 changes: 2 additions & 3 deletions stubs/DecodeLabs/Effigy.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ class Effigy implements Proxy
{
use ProxyTrait;

const VENEER = 'DecodeLabs\\Effigy';
const VENEER_TARGET = Inst::class;
const USER_FILENAME = Inst::USER_FILENAME;
const Veneer = 'DecodeLabs\\Effigy';
const VeneerTarget = Inst::class;

public static Inst $instance;
public static ConfigPlugin $config;
Expand Down

0 comments on commit 3b752d8

Please sign in to comment.