Skip to content

Commit 960c01b

Browse files
committed
Docs: add example of bootstrap
1 parent d188a93 commit 960c01b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.docs/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,29 @@ At this time it's suitable for smaller applications.
5858
└── index.php
5959
```
6060

61+
**Bootstrap**
62+
63+
```php
64+
<?php declare(strict_types = 1);
65+
66+
namespace App;
67+
68+
use Contributte\Bootstrap\ExtraConfigurator;
69+
70+
final class Bootstrap
71+
{
72+
73+
public static function boot(): ExtraConfigurator
74+
{
75+
return Bootloader::create()
76+
->use(NellaPreset::create(__DIR__))
77+
->boot();
78+
}
79+
80+
}
81+
82+
```
83+
6184
**Presenters**
6285

6386
The presenters in your app can extend `Contributte\Nella\UI\NellaPresenter`.

0 commit comments

Comments
 (0)