In our company we use 3rd party Symfony skeleton (one composer.json file) to create the projects. We want to use our private recipes within it. According to this Symfony Flex server documentation we need to add the extra.symfony.endpoint
line to our 3rd party Symofiny composer.json file:
...
"extra": {
"symfony": {
"id": "...",
"allow-contrib": true,
"endpoint": "http://127.0.0.1:8000/"
}
}
...
...
- Installing symfony/cache (v4.0.6): Loading from cache
- Installing symfony/framework-bundle (v4.0.6): Loading from cache
- Installing symfony/yaml (v4.0.6): Loading from cache
- Installing symfony/dotenv (v4.0.6): Loading from cache
Writing lock file
Generating autoload files
Warning: Accessing 127.0.0.1 over http which is an insecure protocol.
Symfony operations: 4 recipes (e75591840502e826575dba2ec6bef69f)
- Configuring symfony/flex (>=1.0): From private:master
[ErrorException]
Undefined index: .env.dist
Our full 3rd party Symfony skeleton composer is absolutely identical to official https://github.com/symfony/skeleton/blob/4.0/composer.json except "secure-http": false
and "endpoint": "http://127.0.0.1:8000/"
are added. Here is a full 3rd party Symfony composer.json content:
{
"name": "symfony/skeleton",
"type": "project",
"license": "MIT",
"description": "A minimal Symfony project recommended to create bare bones applications",
"require": {
"php": "^7.1.3",
"ext-iconv": "*",
"symfony/console": "^4.0",
"symfony/flex": "^1.0",
"symfony/framework-bundle": "^4.0",
"symfony/lts": "^4@dev",
"symfony/yaml": "^4.0"
},
"require-dev": {
"symfony/dotenv": "^4.0"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true,
"secure-http": false
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"auto-scripts": [
],
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"id": "01C9Q7VP048YH419WJT1WZSMH5",
"allow-contrib": false,
"endpoint": "http://127.0.0.1:8000/"
}
}
}