Skip to content
Snippets Groups Projects
Commit b11561fe authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

README: some clarifications

Install from a fixed branch to avoid it picking a feature branch.
Use composer when adding the dep.
Use the real name in the example commands.
parent b0232a9e
Branches
Tags
No related merge requests found
Pipeline #105654 passed
...@@ -30,14 +30,10 @@ features: ...@@ -30,14 +30,10 @@ features:
], ],
``` ```
* Add the package to as a dependency: * Add the bundle package as a dependency:
```json ```
"require": { composer require dbp/api-starter-bundle=dev-main
...
"dbp/api-starter-bundle": "@dev",
...
},
``` ```
* Add the bundle to your `config/bundles.php`: * Add the bundle to your `config/bundles.php`:
...@@ -49,6 +45,8 @@ DBP\API\CoreBundle\DbpCoreBundle::class => ['all' => true], ...@@ -49,6 +45,8 @@ DBP\API\CoreBundle\DbpCoreBundle::class => ['all' => true],
]; ];
``` ```
* Run `composer install` to clear caches
## Development & Testing ## Development & Testing
* Install dependencies: `composer install` * Install dependencies: `composer install`
...@@ -61,6 +59,6 @@ DBP\API\CoreBundle\DbpCoreBundle::class => ['all' => true], ...@@ -61,6 +59,6 @@ DBP\API\CoreBundle\DbpCoreBundle::class => ['all' => true],
Don't forget you need to pull down your dependencies in your main application if you are installing packages in a bundle. Don't forget you need to pull down your dependencies in your main application if you are installing packages in a bundle.
```bash ```bash
# installs dependencies from dbp/api-your-bundle # updates and installs dependencies from dbp/api-starter-bundle
composer update dbp/api-your-bundle composer update dbp/api-starter-bundle
``` ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment