jlambe on master
Add make:observer command suppo… (compare)
jlambe on master
Add cache table, cast make, com… (compare)
jlambe on master
Set env command and register co… (compare)
jlambe on master
Fix console kernel error report… (compare)
jlambe on master
Implement configuration cache c… (compare)
vvv
and with a bit tweaking, it was a no-brainer to set it up :) https://varyingvagrantvagrants.org/
vagrant up
short question regarding the needed extensions: the intl extension is already bundled with php, right?
This extension is bundled with PHP as of PHP version 5.3.0. Alternatively, the PECL version of this extension may be used with all PHP versions greater than 5.2.0 (5.2.4+ recommended).
Action::add
method because it’s not handled by the service container, it is handled by call_user_func
functions which cannot resolve dependencies. I’ve tried to find a way to make use of the service container for hook classes but without luck.
@jlambe When I call something like that:
$controller = new BlockController();
$controller->map($block, $content, $is_preview);
I should be able to resolve models inside the controller, right? public function map(Post $post, $post_new) {
This is not the case. I get an error: Argument 1 passed to Theme\Controllers\BlockController::map() must be an instance of Theme\Models\Post, array given
map
method signature is expecting as the first argument a Post
model, your $block
variable must be an instance of such model. The controller will not try to convert it if this is something you were expected.