Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit df8e6e3

Browse files
author
stevjohnson
committed
Clarify use of composer.json
1 parent 8d746f6 commit df8e6e3

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

guides/v2.0/config-guide/bootstrap/magento-how-to-set.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ bash shell example for CentOS:
6363

6464
export MAGE_PROFILER=firebug
6565

66+
<div class="bs-callout bs-callout-info" id="info">
67+
<span class="glyphicon-class">
68+
<p>If a <code>PHP Fatal error</code> displays in the browser after you set a profiler value, restart your web server. The reason might be related to PHP bytecode caching, which caches bytecodes and PHP classpaths.</p></span>
69+
</div>
70+
6671
<h2 id="mode-specify-web">Specifying a parameter value</h2>
6772
This section discusses how to specify the mode for either Apache or nginx.
6873

guides/v2.0/extension-dev-guide/build/composer-integration.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ redirect_from:
2222

2323
[Composer](https://getcomposer.org/) is a dependency manager for PHP. Magento 2 uses Composer to package components and product editions.
2424

25-
Some third-party components that the Magento system uses might not be present in the code base. Instead, they are listed as dependencies in the root `composer.json` file.
25+
Some third-party components that the Magento system uses might not be present in the code base. Instead, they are listed as dependencies in the root `composer.json` file. In addition, the [Component Manager]({{ site.gdeurl }}comp-mgr/compman-start.html) looks for a `composer.json` in a component's root directory and can perform actions on the component and its dependencies.
26+
27+
In particular:
28+
29+
* If a component has `composer.json` *and* the component was installed using Composer (including from packagist, the Magento Marketplace, or other source), the Component Manager can update, uninstall, enable, or disable the component.
30+
* If the component has `composer.json` but was *not* installed using Composer (for example, custom code a developer wrote), Component Manager can still enable or disable the component.
31+
* We strongly recommend you include `composer.json` in your component's root directory whether or not you intend to distribute it to other Magento merchants.
2632

2733
## Overview of composer.json files {#composerjson-overview}
2834
Certain Magento components and product editions are represented with `composer.json` files.

guides/v2.0/extension-dev-guide/build/create_component.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ The smallest working module.xml file would look something like this:
4646
##Add the components `composer.json` file {#add-composer-json}
4747
`composer.json` provides a component name and also specifies component dependencies.
4848

49+
In addition, the [Component Manager]({{ site.gdeurl }}comp-mgr/compman-start.html) looks for a `composer.json` in a component's root directory and can perform actions on the component and its dependencies.
50+
51+
In particular:
52+
53+
* If a component has `composer.json` *and* the component was installed using Composer (including from packagist, the Magento Marketplace, or other source), the Component Manager can update, uninstall, enable, or disable the component.
54+
* If the component has `composer.json` but was *not* installed using Composer (for example, custom code a developer wrote), Component Manager can still enable or disable the component.
55+
* We strongly recommend you include `composer.json` in your component's root directory whether or not you intend to distribute it to other Magento merchants.
56+
4957
A sample follows:
5058

5159
{% highlight JSON %}

0 commit comments

Comments
 (0)