I’m trying to create blocks from a route. I tried :
$blocks = new Blocks();
$blocks->add([
'type' => 'file'
]);
But it doesn’t work since the Blocks class isn’t accessible from the config file. In any case, I don’t know how to use the $blocks->add() method. The reference only says that it waits for an object as param. But which kind of object ?