選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
keun e44d9e9062 Ajout des fichiers "vendor" 8年前
..
.gitignore Ajout des fichiers "vendor" 8年前
CHANGELOG.md Mettre en place une map sur la page d'accueil pour présenter les boulangeries partenaires. 8年前
Installer.php Mettre en place une map sur la page d'accueil pour présenter les boulangeries partenaires. 8年前
LICENSE.md Ajouter au dépot le dossier "vendor" 8年前
Plugin.php Ajouter au dépot le dossier "vendor" 8年前
README.md Mettre en place une map sur la page d'accueil pour présenter les boulangeries partenaires. 8年前
composer.json Mettre en place une map sur la page d'accueil pour présenter les boulangeries partenaires. 8年前

README.md

Yii 2 Composer Installer

This is the composer installer for Yii framework 2.0 extensions. It implements a new composer package type named yii2-extension, which should be used by all Yii 2 extensions if they are distributed as composer packages.

For license information check the LICENSE-file.

Latest Stable Version Total Downloads

Usage

To use Yii 2 composer installer, simply set type to be yii2-extension in your composer.json, like the following:

{
    "type": "yii2-extension",
    "require": {
        "yiisoft/yii2": "*"
    },
    ...
}

You may specify a bootstrapping class in the extra section. The init() method of the class will be executed each time the Yii 2 application is responding to a request. For example,

{
    "type": "yii2-extension",
    ...,
    "extra": {
        "bootstrap": "yii\\jui\\Extension"
    }
}

The Installer class also implements a static method setPermission() that can be called after a Yii 2 projected is installed, through the post-create-project-cmd composer script. The method will set specified directories or files to be writable or executable, depending on the corresponding parameters set in the extra section of the composer.json file. For example,

{
    "name": "yiisoft/yii2-app-basic",
    "type": "project",
    ...
    "scripts": {
        "post-create-project-cmd": [
            "yii\\composer\\Installer::setPermission"
        ]
    },
    "extra": {
        "writable": [
            "runtime",
            "web/assets"
        ],
        "executable": [
            "yii"
        ]
    }
}