for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Spiral\Core\Internal\Config;
use Spiral\Core\Internal\State;
class StateStorage
{
/** @var array<string, State> */
private array $states = [];
/**
* Get bindings for the given scope.
*/
public function getState(string $scope): State
return $this->states[$scope] ??= new State();
}