public function __construct(Portal $portal, $environment) { parent::__construct(sprintf('The environment "%s" could not be found in the portal "%s".', $environment, $portal->getKey())); $this->portal = $portal; $this->environment = $environment; }
public function __construct(Portal $portal, $locale) { parent::__construct(sprintf('The locale "%s" could not be found in the portal "%s".', $locale, $portal->getKey())); $this->portal = $portal; $this->locale = $locale; }