entryClass->value) { $plugin = $this->container->get($context->entryClass->value); } if ($plugin && !($plugin instanceof PluginInterface)) { throw new PluginInterfaceNotImplementedException(); } $pw = new PluginWrapper($context, $plugin); $this->repo->add($pw); if ($context->type == Type::THEME) { $context->setStatus( $context->name->value === $this->theme ? Status::ACTIVE : Status::INACTIVE ); } if ($plugin && $context->getStatus() == Status::ACTIVE) { $pw->plugin->boot($context); } return $pw; } }