Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Jan 20, 2024
1 parent c99a572 commit cb14608
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/routes.php
Expand Up @@ -5,4 +5,4 @@
use ICanBoogie\Binding\Routing\ConfigBuilder;

return fn(ConfigBuilder $config) => $config
->route('/api/ping', 'api:ping');
->get('/api/ping', 'api:ping');
50 changes: 49 additions & 1 deletion lib/AppConfigBuilder.php
Expand Up @@ -103,53 +103,101 @@ public function set_exception_handler(callable $value): self
return $this;
}

/**
* @var non-empty-string|null
*/
private ?string $var = null;

/**
* @param non-empty-string $value
*
* @return $this
*/
public function set_var(string $value): self
{
$this->var = $value;

return $this;
}

/**
* @var non-empty-string|null
*/
private ?string $var_cache = null;

/**
* @param non-empty-string $value
*
* @return $this
*/
public function set_var_cache(string $value): self
{
$this->var_cache = $value;

return $this;
}

/**
* @var non-empty-string|null
*/
private ?string $var_cache_configs = null;

/**
* @param non-empty-string $value
*
* @return $this
*/
public function set_var_cache_configs(string $value): self
{
$this->var_cache_configs = $value;

return $this;
}

/**
* @var non-empty-string|null
*/
private ?string $var_files = null;

/**
* @param non-empty-string $value
*
* @return $this
*/
public function set_var_files(string $value): self
{
$this->var_files = $value;

return $this;
}

/**
* @var non-empty-string|null
*/
private ?string $var_tmp = null;

/**
* @param non-empty-string $value
*
* @return $this
*/
public function set_var_tmp(string $value): self
{
$this->var_tmp = $value;

return $this;
}

/**
* @var non-empty-string|null
*/
private ?string $var_lib = null;

/**
* @param non-empty-string $value
*
* @return $this
*/
public function set_var_lib(string $value): self
{
$this->var_lib = $value;
Expand Down Expand Up @@ -187,8 +235,8 @@ public function build(): AppConfig
var_cache: $this->var_cache,
var_cache_configs: $this->var_cache_configs,
var_files: $this->var_files,
var_tmp: $this->var_tmp,
var_lib: $this->var_lib,
var_tmp: $this->var_tmp,
session: $this->session,
);
}
Expand Down

0 comments on commit cb14608

Please sign in to comment.