Skip to content

Commit ae6077a

Browse files
authored
chore(view): use tempest/blade (#899)
1 parent fe0f3b2 commit ae6077a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"friendsofphp/php-cs-fixer": "^3.21",
4242
"guzzlehttp/psr7": "^2.6.1",
4343
"illuminate/view": "~11.7.0",
44-
"jenssegers/blade": "^2.0",
4544
"mikey179/vfsstream": "^2.0@dev",
4645
"nesbot/carbon": "^3.8",
4746
"nyholm/psr7": "^1.8",
@@ -53,6 +52,7 @@
5352
"spatie/phpunit-snapshot-assertions": "^5.1.6",
5453
"spaze/phpstan-disallowed-calls": "^4.0",
5554
"symplify/monorepo-builder": "^11.2",
55+
"tempest/blade": "^0.1.0",
5656
"twig/twig": "^3.16"
5757
},
5858
"replace": {

src/Tempest/Console/src/Components/Interactive/TaskComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private function executeHandler(): never
158158

159159
try {
160160
exit((int) (($this->resolveHandler($this->handler) ?? static fn (): bool => true)($log) === false));
161-
} catch (Throwable $e) {
161+
} catch (Throwable) {
162162
exit(1);
163163
}
164164
}

src/Tempest/View/src/Renderers/BladeInitializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Tempest\View\Renderers;
66

7-
use Jenssegers\Blade\Blade;
7+
use Tempest\Blade\Blade;
88
use Tempest\Container\Container;
99
use Tempest\Container\DynamicInitializer;
1010
use Tempest\Container\Singleton;

src/Tempest/View/src/Renderers/BladeViewRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Tempest\View\Renderers;
66

7-
use Jenssegers\Blade\Blade;
7+
use Tempest\Blade\Blade;
88
use Tempest\View\View;
99
use Tempest\View\ViewRenderer;
1010

tests/Integration/Console/Fixtures/InteractiveCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ public function validation(): void
4141
}
4242

4343
#[ConsoleCommand('interactive:confirm')]
44-
public function confirm(): void
44+
public function confirm(string $question, bool $default = false, ?string $yes = null, ?string $no = null): void
4545
{
4646
$confirm = $this->console->confirm('abc', true);
4747

4848
$this->console->writeln($confirm ? 'yes' : 'no');
4949
}
5050

5151
#[ConsoleCommand('interactive:password')]
52-
public function password(): void
52+
public function password(string $label = 'Password', bool $confirm = false, array $validation = []): void
5353
{
5454
$password = $this->console->password(confirm: true);
5555

@@ -128,7 +128,7 @@ public function progress(): void
128128
}
129129

130130
#[ConsoleCommand('interactive:search')]
131-
public function search(): void
131+
public function search(string $label, \Closure $search, bool $multiple = false, null|string|array $default = null): void
132132
{
133133
$data = ['Brent', 'Paul', 'Aidan', 'Roman'];
134134

0 commit comments

Comments
 (0)