minetest/serverinterface-bundle

Contao 4 Minetest 服务器接口捆绑包

安装: 16

依赖项: 0

建议者: 0

安全: 0

类型:contao-bundle

v1.0.0 2018-06-09 15:23 UTC

This package is not auto-updated.

Last update: 2020-08-12 15:39:19 UTC


README

假设您处于contao的根目录,您在使用之前必须执行以下命令

$ vi composer.json

在"require"部分,您需要添加以下内容

"require": {
        ...
        "minetest/serverinterface-bundle": "^1.0"
    },
$ composer update

 --- ------------------------------- ------------------ 
      Bundle                          Method / Error    
 --- ------------------------------- ------------------ 
  ✔   ContaoCoreBundle                relative symlink  
  ✔   ContaoCommentsBundle            relative symlink  
  ✔   ContaoNewsletterBundle          relative symlink  
  ✔   MinetestServerInterfaceBundle   relative symlink  
 --- ------------------------------- ------------------ 

                                                                                
 [OK] All assets were successfully installed.                                   

您应该在"vendor"目录中看到以下结构

minetest
└── serverinterface-bundle
    ├── src
    │   ├── ContaoManager
    │   │   └── Plugin.php
    │   ├── DependencyInjection
    │   │   └── MinetestServerInterfaceExtension.php
    │   ├── EventListener
    │   │   └── FileMetaInformationListener.php
    │   ├── Resources
    │   │   ├── config
    │   │   │   └── listener.yml
    │   │   ├── contao
    │   │   │   ├── classes
    │   │   │   │   └── MinetestVectorEditor.php
    │   │   │   ├── config
    │   │   │   │   ├── autoload.ini
    │   │   │   │   ├── autoload.php
    │   │   │   │   ├── config.php
    │   │   │   │   └── ide_compat.php
    │   │   │   ├── dca
    │   │   │   │   ├── tl_minetest.php
    │   │   │   │   ├── tl_mtgroup.php
    │   │   │   │   ├── tl_mtrights.php
    │   │   │   │   ├── tl_mtusers.php
    │   │   │   │   ├── tl_mtvectorlayers.php
    │   │   │   │   └── tl_mtvectors.php
    │   │   │   ├── languages
    │   │   │   │   ├── de
    │   │   │   │   │   ├── default.xlf
    │   │   │   │   │   ├── modules.xlf
    │   │   │   │   │   └── tl_layout.xlf
    │   │   │   │   └── en
    │   │   │   │       ├── default.xlf
    │   │   │   │       ├── modules.xlf
    │   │   │   │       └── tl_layout.xlf
    │   │   │   ├── modules
    │   │   │   │   ├── APIopenlayerJSON.php
    │   │   │   │   ├── ModuleMinetestMap.php
    │   │   │   │   ├── SimpleAjax.php
    │   │   │   │   └── json.php
    │   │   │   └── templates
    │   │   │       ├── fe_page.html5
    │   │   │       └── footer.html
    │   │   └── public
    │   │       ├── css
    │   │       │   ├── foundation-flex.css
    │   │       │   ├── foundation-flex.min.css
    │   │       │   ├── foundation-rtl.css
    │   │       │   ├── foundation-rtl.min.css
    │   │       │   ├── foundation.css
    │   │       │   └── foundation.min.css
    │   │       ├── img
    │   │       │   ├── fi-bookmark.svg
    │   │       │   ├── fi-home.svg
    │   │       │   ├── fi-info.svg
    │   │       │   ├── fi-like.svg
    │   │       │   └── fi-mail.svg
    │   │       ├── js
    │   │       │   ├── vendor
    │   │       │   │   ├── jquery.min.js
    │   │       │   │   ├── modernizr.js
    │   │       │   │   └── what-input.min.js
    │   │       │   ├── foundation.js
    │   │       │   └── foundation.min.js
    │   │       └── mt_1.jpeg
    │   └── MinetestServerInterfaceBundle.php
    ├── README.md
    ├── appveyor.yml
    ├── composer.json
    └── phpunit.xml.dist

编辑app/config/config.yml以进行doctrine钩子

doctrine:
    dbal:
        default_connection: default
        connections:
            default:
                driver: pdo_mysql
                host: "%database_host%"
                port: "%database_port%"
                user: "%database_user%"
                password: "%database_password%"
                dbname: "%database_name%"
                charset: UTF8
                mapping_types:
                    enum: string