Skip to content

Commit

Permalink
refactor: remove __set_state() in Config\Paths
Browse files Browse the repository at this point in the history
No longer use config(Config\Paths::class).
  • Loading branch information
kenjis committed Jul 22, 2023
1 parent bd6d744 commit 1d374ab
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/Config/Paths.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,4 @@ class Paths
* is used when no value is provided to `Services::renderer()`.
*/
public string $viewDirectory = __DIR__ . '/../Views';

public static function __set_state(array $array)
{
$obj = new self();

$properties = array_keys(get_object_vars($obj));

foreach ($properties as $property) {
$obj->{$property} = $array[$property];
}

return $obj;
}
}

0 comments on commit 1d374ab

Please sign in to comment.