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)
jlambe on master
Implement make component comman… (compare)
jlambe on master
Implement clear-compiled comman… (compare)
jlambe on master
Implement the cast command. (compare)
jlambe on master
Bump acorn from 6.4.0 to 6.4.1 … Merge pull request #776 from th… Fix Mix helper path. Add manife… and 15 more (compare)
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.