/** * Make a controller instance via the IoC container. * * @param string $controller The controller class name. * @return mixed */ protected function makeController($controller) { return $this->container->make($controller); }
/** * Build the array in order to call a class method. * * @param string $class * @param string $hook * @return array */ protected function buildClassEventCallback($class, $hook) { list($class, $method) = $this->parseClassEvent($class, $hook); $instance = $this->container->make($class); return [$instance, $method]; }