安装: 5

依赖: 0

建议者: 0

安全: 0

类型:symfony-bundle

0.5.2 2021-02-25 21:21 UTC

README

安装

由于它是私有仓库,需要在 composer.json 中进行特殊处理

在 composer.json 中添加

{
    ..
    "require": {
        "coderaf/spiderman-security-bundle": "0.2.9"
    },
    "repositories": [
        {
            "name": "coderaf/spiderman-security-bundle",
            "type": "vcs",
            "url": "git@bitbucket.org-coderaf:coderaf/spiderman-security-bundle.git"
        }
    ],
} 

还要在

    config/packages/spiderman_security.yaml

中添加配置文件

spiderman_security:
    base_uri: '%env(SPIDERMAN_BASE_URI)%'
    api_key: '%env(SPIDERMAN_API_KEY)%'
    firebase_project_id: '%env(FIREBASE_AUTH_PROJECT_ID)%'

然后,在 .env 文件中添加正确的参数

SPIDERMAN_BASE_URI
SPIDERMAN_API_KEY
FIREBASE_AUTH_PROJECT_ID