-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3d2764e
Showing
24 changed files
with
3,292 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "presprog/kirby-attribute-routing", | ||
"type": "kirby-plugin", | ||
"authors": [ | ||
{ | ||
"name": "Benedict Massolle", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"autoload": { | ||
"PresProg\\AttributeRouting\\": "src/" | ||
}, | ||
"require": { | ||
"getkirby/composer-installer": "^1.2" | ||
}, | ||
"extra": { | ||
"installer-name": "attribute-routing" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php declare(strict_types=1); | ||
|
||
use PresProg\AttributeRouting\AttributeRouting; | ||
|
||
require __DIR__ . '/vendor/autoload.php'; | ||
|
||
\Kirby\Cms\App::plugin('presprog/attribute-routing', [ | ||
'hooks' => [ | ||
'system.loadPlugins:after' => function () { | ||
AttributeRouting::loadRoutes(); | ||
} | ||
] | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PresProg\AttributeRouting; | ||
|
||
class AttributeRouting | ||
{ | ||
public static function loadRoutes() | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PresProg\AttributeRouting\Attributes; | ||
|
||
use Attribute; | ||
|
||
#[Attribute(Attribute::TARGET_FUNCTION)] | ||
class Get implements RouteAttribute | ||
{ | ||
public function __construct( | ||
public string $pattern | ||
) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace PresProg\AttributeRouting\Attributes; | ||
|
||
interface RouteAttribute | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
// autoload.php @generated by Composer | ||
|
||
require_once __DIR__ . '/composer/autoload_real.php'; | ||
|
||
return ComposerAutoloaderInit26198e21236039aeb86b9934b80cf4dd::getLoader(); |
Oops, something went wrong.