public function __construct(Jarves $core, array $bundles = null) { $this->setCore($core); if ($bundles) { $this->loadBundles($bundles); } }