protected function initTag() { $class_name = SwatDBClassMap::get('BlorgTag'); $this->tag = new $class_name(); $this->tag->setDatabase($this->app->db); if (!$this->tag->loadByShortname($this->getArgument('shortname'), $this->app->getInstance())) { throw new SiteNotFoundException('Page not found.'); } }