Wie starte ich mit einer Contao 4 Entwicklung?

von Stefan Lindecke

Genereller Aufbau und Verzeichnisstruktur fuer eine Entwicklung

Grundlagen

Verzeichnisstruktur:

Contao4 via ManagedEdition in /var/www/html/contao-manager/ installiert

Dies ist lauffaehig.

 

Entwickelt wird in /home/stefan/contao4-dev/MyBundle.

 

 

composer.json im TL_ROOT

das lokale Dateibasierte Repository in die composer.json hinzugefuegt:

"repositories": [
        {
        "type": "path",
        "url": "/home/stefan/contao4_dev/BookmarksBundle",
        "options": {
            "symlink": true
          }
        }
    ],

    "minimum-stability": "dev",
    "prefer-stable": true,

composer.json im eigenen Bundle

{
    "name": "lindesbs/bookmarksbundle",
    "type": "contao-bundle",
    "description": "Allows to handle bookmark data in the Contao 4 front end",
    "license": "LGPL-3.0+",
    "authors": [
        {
            "name": "Stefan Lindecke",
            "homepage": "https://github.com/lindesbs"
        }
    ],
    "require": {
        "php": "^5.6|^7.0",
        "symfony/framework-bundle": "^3.3",
        "contao/core-bundle": "^4.4"
    },
    "conflict": {
        "contao/core": "*",
        "contao/manager-plugin": "<2.0 || >=3.0"
    },
    "autoload": {
        "psr-4": {
            "lindesbs\\BookmarksBundle\\": "src/"
        },
        "classmap": [
            "src/Resources/contao/"
        ],
        "exclude-from-classmap": [
            "src/Resources/contao/config/",
            "src/Resources/contao/dca/",
            "src/Resources/contao/languages/",
            "src/Resources/contao/templates/"
        ]
    },
    "config": {
        "preferred-install": "dist"
    },
    "support": {
        "issues": "https://github.com/lindesbs/bookmarks-bundle/issues",
        "source": "https://github.com/lindesbs/bookmarks-bundle"
    },
    "extra": {
        "contao-manager-plugin": "lindesbs\\BookmarksBundle\\ContaoManager\\Plugin"
    }
}

Zurück