- WIP on picea asset
This commit is contained in:
1 parent
438b5a69c0
commit
8d22132ef5
3 files changed
+25
-5
No files matched your search
@@ -15,7 +15,7 @@ return [
|
||||
},
|
||||
|
||||
Context::class => function($c) {
|
||||
return new BaseContext( $c->get(Lean\Lean::class)->getPiceaContext() );
|
||||
return new BaseContext($c->get(Lean\Lean::class)->getPiceaContext());
|
||||
},
|
||||
|
||||
Compiler::class => function($c) {
|
||||
@@ -33,14 +33,15 @@ return [
|
||||
public function registerAll(Compiler $compiler) : void
|
||||
{
|
||||
parent::registerAll($compiler);
|
||||
( new Ui() )->registerFormExtension($compiler);
|
||||
|
||||
if ( class_exists('Picea\\Asset\\Asset') ) {
|
||||
if (class_exists(Ui::class)) {
|
||||
( new Ui() )->registerFormExtension($compiler);
|
||||
}
|
||||
|
||||
if (class_exists(Asset::class)) {
|
||||
( new Asset() )->registerExtension($compiler);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user