aerisnet/fiesta-online-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aerisnet/fiesta-online-bundle

Composer 安装命令:

composer require aerisnet/fiesta-online-bundle

包简介

This bundle eases the development to Fiesta Online Homepages

README 文档

README

A Symfony 4+ Bundle for Fiesta Online web projects

Basic Information

This bundle includes all most relevant Entities and Managers needed to create a basic Fiesta Online homepage.

Installation for Symfony 4 & 5

The bundle is available via packagist to directly integrate into your application

  1. Go into your root directory of your project
  2. Run composer require aerisnet/fiesta-online-bundle
  3. To use the included Entities with your application, you have to refer to the bundle entities in your doctrine configuration. An example mapping can be found below
dbal:
    connections:
        character:
            url: '%env(resolve:CHARACTER_URL)%'
            driver: 'pdo_sqlsrv'
            charset: UTF-8
...

orm:
    entity_managers:
        character:
            connection: character
            mappings:
                Character:
                type: annotation
                dir: '%kernel.project_dir%/vendor/aeris/fiesta-online-bundle/src/Entity/Character'
                prefix: 'Aeris\FiestaOnlineBundle\Entity\Character'
                alias: Character

Examples

Account Manager

public function indexAction(AccountManager $accountManager)
{
    /** 
     * @var User $user 
     * returns a User instance or null by the given Account ID
     */
    $user = $accountManager->getAccountById(5);
    ...
    
    /** 
     * @var User[] $user 
     * returns all accounts
     */
    $user = $accountManager->getAllAccounts();
    ...
    
    /**
     * @var User $user
     * returns a User instance with all characters belonging to the account as Proxy objects
     */
    $user = $accountManager->getAccountWithCharacters(5);
}

Character Manager

public function indexAction(CharacterManager $characterManager)
{
    /** 
     * @var Character $character 
     * returns a Character instance or null by the given Character ID
     */
    $character = $characterManager->getCharacterById(123);
    ...
    
    /** 
     * @var Character $character 
     * returns a Character instance or null by the given Character Name
     */
    $character = $characterManager->getCharacterByName('Visionaire');
    ...
    
    /**
     * Check if a character has an item in their inventory
     * Parameters are Character ID and Item ID
     */
    $hasItem = $characterManager->hasItemInInventory($character->getId(), 385782);
}

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固