Skip to content

Commit

Permalink
fix: package dependencies (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt authored Sep 23, 2024
1 parent 4622298 commit e1e8470
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@
"src/Tempest/Http/src/functions.php",
"src/Tempest/Mapper/src/functions.php",
"src/Tempest/Reflection/src/functions.php",
"src/Tempest/Support/src/functions.php"
"src/Tempest/Support/src/functions.php",
"src/Tempest/View/src/functions.php"
]
},
"autoload-dev": {
Expand Down
1 change: 1 addition & 0 deletions src/Tempest/Console/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"php": "^8.3",
"tempest/core": "dev-main",
"tempest/container": "dev-main",
"tempest/debug": "dev-main",
"tempest/highlight": "^2.0",
"tempest/log": "dev-main",
"tempest/reflection": "dev-main",
Expand Down
1 change: 1 addition & 0 deletions src/Tempest/Core/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"require": {
"php": "^8.3",
"tempest/container": "dev-main",
"tempest/event-bus": "dev-main",
"vlucas/phpdotenv": "^5.6",
"filp/whoops": "^2.15",
"nunomaduro/collision": "^8.4"
Expand Down
7 changes: 0 additions & 7 deletions src/Tempest/Http/src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@

use Tempest\Http\Router;
use Tempest\Reflection\MethodReflector;
use Tempest\View\GenericView;
use Tempest\View\View;

function view(string $path, mixed ...$params): View
{
return (new GenericView($path))->data(...$params);
}

function uri(array|string|MethodReflector $action, ...$params): string
{
Expand Down
3 changes: 3 additions & 0 deletions src/Tempest/View/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"tempest/validation": "dev-main"
},
"autoload": {
"files": [
"src/functions.php"
],
"psr-4": {
"Tempest\\View\\": "src"
}
Expand Down
15 changes: 15 additions & 0 deletions src/Tempest/View/src/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php


declare(strict_types=1);

namespace Tempest {

use Tempest\View\GenericView;
use Tempest\View\View;

function view(string $path, mixed ...$params): View
{
return (new GenericView($path))->data(...$params);
}
}

0 comments on commit e1e8470

Please sign in to comment.