- Done fixing Container build caching and WIP on Picea's asset
This commit is contained in:
1 parent
4dcc7f407e
commit
4c0cddd617
10 files changed
+208
-79
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Lean;
|
||||
|
||||
use Picea\Compiler;
|
||||
use Picea\Language\DefaultRegistrations;
|
||||
use Picea\{ Ui\Ui, Asset\Asset };
|
||||
|
||||
class PiceaDefaultRegistration extends DefaultRegistrations {
|
||||
|
||||
public function __construct(
|
||||
protected array $extensions,
|
||||
protected array $syntaxes,
|
||||
protected array $controlStructures,
|
||||
public null|Ui $ui,
|
||||
public null|Asset $asset,
|
||||
) {
|
||||
parent::__construct($this->extensions, $this->syntaxes, $this->controlStructures);
|
||||
}
|
||||
|
||||
public function registerAll(Compiler $compiler) : void
|
||||
{
|
||||
parent::registerAll($compiler);
|
||||
|
||||
$this->ui->registerFormExtension($compiler);
|
||||
$this->asset->registerExtension($compiler);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user