- WIP on definition autoload form composer

This commit is contained in:
Dave M. 2023-10-17 15:43:04 +00:00
parent 20570dd0b8
commit 0c5539f066
2 changed files with 29 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "assets-package/flexboxgrid", "name": "assets-package/flexboxgrid",
"description": "Flexbox Grid package made originally by kristoferjoseph", "description": "Flexbox Grid package made originally by kristoferjoseph",
"type": "library", "type": "asset",
"license": "MIT", "license": "MIT",
"authors": [ "authors": [
{ {
@ -10,5 +10,12 @@
} }
], ],
"require": {}, "require": {},
"autoload": {} "autoload": {},
"extra" : {
"lean" : {
"autoload": [
"definitions.php"
]
}
}
} }

20
definitions.php Normal file
View File

@ -0,0 +1,20 @@
<?php
use function DI\autowire, DI\create, DI\get;
$path = __DIR__;
return [
'assets:flexbox' => [
'picea' => [
'asset' => [
'source' => [
[
'path' => implode(DIRECTORY_SEPARATOR, [ $path, "asset", '' ]),
'order' => 10
]
],
]
],
],
];