Skip to content

Commit 6583657

Browse files
committed
wip
1 parent 6d4f70f commit 6583657

File tree

4 files changed

+32
-13
lines changed

4 files changed

+32
-13
lines changed
+11-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
```php
2-
use Tempest\Console\ConsoleCommand;
3-
use Tempest\Console\HasConsole;
4-
5-
final readonly class PackageCommand
2+
final readonly class PackagesCommand
63
{
74
use HasConsole;
85

6+
public function __construct(
7+
private PackageRepository $repository,
8+
) {}
9+
910
#[ConsoleCommand]
10-
public function all(): void
11+
public function find(): void
1112
{
12-
$this->search('')
13+
$package = $this->search(
14+
'Find your package',
15+
$this->repository->find(...),
16+
);
1317
}
1418

15-
#[ConsoleCommand]
16-
public function info(string $name, bool $detailed = false): void
17-
{ /* … */ }
18-
1919
#[ConsoleCommand(middleware: [CautionMiddleware::class])]
20-
public function delete(string $name): void
20+
public function delete(string $name, bool $verbose = false): void
2121
{ /* … */ }
2222
}
2323
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
```php
2+
final readonly class BookObserver
3+
{
4+
#[EventHandler]
5+
public function onBookPublished(BookPublished $event): void
6+
{
7+
// …
8+
}
9+
}
10+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
```html
2+
<!-- x-post.view.php-->
3+
4+
<article>
5+
<h1>{{ $post->title }}</h1>
6+
7+
{!! $post->body !!}
8+
</article>
9+
```

src/Web/Homepage/home.view.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
]"
5858
link-label="Discovery"
5959
:link-uri="uri(ChapterController::class, version: \App\Web\Documentation\Version::default(), category: 'internals', slug: 'discovery')"
60-
:snippets="['controller', 'view-processor']"
60+
:snippets="['controller', 'view-component', 'event-handler']"
6161
></x-home-section>
6262
<!-- Template engine -->
6363
<x-home-section
@@ -94,7 +94,7 @@
9494
<x-home-section
9595
heading="And much, much more."
9696
:paragraphs="[
97-
'Configuration objects for easy autocompletion and injection, a data mapper, a powerful dependency container with autowiring. Tempest is designed to be frictionless.',
97+
'Configuration objects for easy autocompletion and injection, data mapping, a powerful dependency container with autowiring. Tempest is designed to be frictionless.',
9898
]"
9999
link-label="Get started"
100100
:link-uri="uri([ChapterController::class, 'index'])"

0 commit comments

Comments
 (0)