Skip to content

Commit

Permalink
Upgrade league/container and psysh
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Dec 15, 2024
1 parent 7396072 commit b10b6b7
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 56 deletions.
2 changes: 1 addition & 1 deletion bin/terminus
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (!getenv('TERMINUS_ALLOW_UNSUPPORTED_NEWER_PHP') && version_compare(PHP_VERSI

// This variable is automatically managed via updateDependenciesversion() in /RoboFile.php,
// which is run after every call to composer update.
$terminusPluginsDependenciesVersion = 'cd4fc325d6';
$terminusPluginsDependenciesVersion = 'd6b42646e1';

// Cannot use $_SERVER superglobal since that's empty during phpunit testing
// getenv('HOME') isn't set on Windows and generates a Notice.
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
"consolidation/comments": "^2",
"consolidation/filter-via-dot-access-data": "^2.0",
"consolidation/output-formatters": "^4",
"consolidation/robo": "^5",
"consolidation/self-update": "^2.0.4",
"consolidation/site-alias": "^4.0",
"czproject/git-php": "^4.0",
"guzzlehttp/guzzle": "^7.0",
"justinrainbow/json-schema": "^5.2",
"league/container": "^3",
"league/container": "^4.2",
"monolog/monolog": "^2.2",
"psy/psysh": "^0.11.9",
"psy/psysh": "^0.12.6",
"rogervila/array-diff-multidimensional": "^2.0",
"twig/twig": "^3.3",
"consolidation/robo": "^5"
"twig/twig": "^3.3"
},
"require-dev": {
"ext-pcov": "*",
Expand Down
101 changes: 53 additions & 48 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Terminus.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private function configureContainer()

// Add the services
// Request
$container->share('request', Request::class);
$container->addShared('request', Request::class);
$container->inflector(RequestAwareInterface::class)
->invokeMethod('setRequest', ['request']);

Expand All @@ -188,7 +188,7 @@ private function configureContainer()
$this->getConfig()->get('cache_dir')
);
$session = new Session($session_store);
$container->share('session', $session);
$container->addShared('session', $session);
$container->inflector(SessionAwareInterface::class)
->invokeMethod('setSession', ['session']);

Expand All @@ -210,7 +210,7 @@ private function configureContainer()
$container->add(PluginDiscovery::class);
$container->add(PluginInfo::class);

$container->share('sites', Sites::class);
$container->addShared('sites', Sites::class);
$container->inflector(SiteAwareInterface::class)
->invokeMethod('setSites', ['sites']);

Expand Down

0 comments on commit b10b6b7

Please sign in to comment.