private function __construct() { $this->resourceBundle = ResourcesBundle::getInstance(); $this->resourceBundle->load('com/imasters/pro/res/default', 'pt'); $this->controllerManager = ControllerManager::getInstance(); $this->controllerManager->addController(new HomeController()); $this->controllerManager->addController(new CartController()); }
/** * Recupera a instância do ResourceBundle. * @return ResourcesBundle */ public static function getInstance() { if (self::$instance == null) { self::$instance = new ResourcesBundle(); } return self::$instance; }