コード例 #1
0
ファイル: UserTextTest.php プロジェクト: peteraba/dm-common
 protected function setUp()
 {
     $this->sut = new UserText();
     $entities = [UserText::SINGULAR => [self::ENTITY_KEY => self::ENTITY_SINGLUAR], UserText::PLURAL => [self::ENTITY_KEY => self::ENTITY_PLURAL]];
     $this->sut->addEntityNames($entities);
     $this->sut->addActions(DefinedConstant\Action::getMessages());
     $this->sut->addMessages(DefinedConstant\Message::getMessages());
 }
コード例 #2
0
ファイル: UserText.php プロジェクト: peteraba/dm-maileradmin
 /**
  * @param ServiceLocatorInterface $serviceLocator
  *
  * @return UserTextHelper
  */
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $userText = new UserTextHelper();
     $userText->addActions(ActionDmCommon::getMessages());
     $userText->addMessages(MessageDmCommon::getMessages());
     $userText->addMessages(MessageDmMailer::getMessages());
     $userText->addEntityNames(EntityNameDmMailer::getMessages());
     return $userText;
 }