Skip to content

Commit a4e4bd6

Browse files
committed
feat: migrate from symfony console to sprout
1 parent ea473a9 commit a4e4bd6

File tree

34 files changed

+468
-699
lines changed

34 files changed

+468
-699
lines changed

bin/leaf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ $app->register(Leaf\Console\ServeCommand::class);
2929
$app->register(Leaf\Console\InteractCommand::class);
3030
$app->register(Leaf\Console\RunCommand::class);
3131
$app->register(Leaf\Console\ViewBuildCommand::class);
32-
// $app->register(Leaf\Console\ViewInstallCommand::class);
32+
$app->register(Leaf\Console\ViewInstallCommand::class);
3333

3434
$app->run();

src/ViewInstallCommand.php

Lines changed: 240 additions & 370 deletions
Large diffs are not rendered by default.

src/themes/bareui/config/view.php

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
app()->template()->config('path', './views');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
<title>Document</title>
77
</head>
88
<body>
9-
Hello <?php echo $name; ?>
9+
Hello World
1010
</body>
1111
</html>

src/themes/blade/config/view.php

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/themes/blade/setup/_blade.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
app()->attachView(Leaf\Blade::class);
4+
app()->blade()->configure([
5+
'views' => 'views',
6+
'cache' => 'cache'
7+
]);

src/themes/blade/theme/index.blade.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/themes/blade/views/index.blade.php

Lines changed: 213 additions & 0 deletions
Large diffs are not rendered by default.
File renamed without changes.

0 commit comments

Comments
 (0)