*/ class Module extends \Piko\Module { /** * The admin role * @var string */ public $adminRole = 'admin'; /** * Allow user registration * * @var boolean */ public $allowUserRegistration = false; /** * Min length of the user password * * @var integer */ public $passwordMinLength = 8; public function bootstrap() { $pdo = $this->application->getComponent('PDO'); assert($pdo instanceof PDO); User::$pdo = $pdo; Rbac::$db = $pdo; AccessChecker::$adminRole = $this->adminRole; } /** * {@inheritDoc} * @see \piko\Module::init() */ protected function init() { /* @var $i18n \piko\i18n */ // $i18n = Piko::get('i18n'); // $i18n->addTranslation('user', __DIR__ . '/messages'); // parent::init(); } }