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

Commit b67b8d3

Browse files
author
Barny Shergold
authored
Changed all instances of OrangeCo and OrangeCompany (#8699)
* Changed all instances of OrangeCo and OrangeCompany * Changed all instances of OrangeCo and OrangeCompany
1 parent 8e4453f commit b67b8d3

File tree

20 files changed

+109
-109
lines changed

20 files changed

+109
-109
lines changed

src/guides/v2.3/ext-best-practices/tutorials/custom-import-entity.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Declare the new import entity:
2929
```xml
3030
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3131
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_ImportExport:etc/import.xsd">
32-
<entity name="learning" label="Learning Courses Import" model="OrangeCompany\Learning\Model\Import\Courses"
32+
<entity name="learning" label="Learning Courses Import" model="ExampleCorp\Learning\Model\Import\Courses"
3333
behaviorModel="Magento\ImportExport\Model\Source\Import\Behavior\Basic" />
3434
</config>
3535
```
@@ -54,12 +54,12 @@ As we extend the [Magento/ImportExport/Model/Import/Entity/AbstractEntity][0]{:t
5454
- `getEntityTypeCode` - EAV entity type code getter
5555
- `validateRow` - Validating the row
5656

57-
> `OrangeCompany/Learning/Model/Import/Courses.php`
57+
> `ExampleCorp/Learning/Model/Import/Courses.php`
5858
5959
{% collapsible File content for Courses.php %}
6060

6161
```php
62-
namespace OrangeCompany\Learning\Model\Import;
62+
namespace ExampleCorp\Learning\Model\Import;
6363

6464
use Exception;
6565
use Magento\Framework\App\ResourceConnection;
@@ -426,7 +426,7 @@ The validation rules will be checking for a required **name** and a greater than
426426

427427
To add the ability to download a sample csv file for our new entity, create the following file:
428428

429-
``OrangeCompany/Learning/Files/Sample/learning.csv``
429+
``ExampleCorp/Learning/Files/Sample/learning.csv``
430430

431431
With the following content:
432432

@@ -449,7 +449,7 @@ Next, register the sample file for our entity.
449449
<type name="Magento\ImportExport\Model\Import\SampleFileProvider">
450450
<arguments>
451451
<argument name="samples" xsi:type="array">
452-
<item name="learning" xsi:type="string">OrangeCompany_Learning</item>
452+
<item name="learning" xsi:type="string">ExampleCorp_Learning</item>
453453
</argument>
454454
</arguments>
455455
</type>

src/guides/v2.3/ext-best-practices/tutorials/custom-widget.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This tutorial shows you how to create and insert your own widget on the frontend
3636
```xml
3737
<widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3838
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Widget:etc/widget.xsd">
39-
<widget class="OrangeCompany\Learning\Block\Widget\Test" id="orange_test_widget">
39+
<widget class="ExampleCorp\Learning\Block\Widget\Test" id="orange_test_widget">
4040
<label>My New Widget</label>
4141
<description>This is a test widget!!!</description>
4242
<parameters>
@@ -75,7 +75,7 @@ Add a text and a select field:
7575
```xml
7676
<widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7777
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Widget:etc/widget.xsd">
78-
<widget class="OrangeCompany\Learning\Block\Widget\Test" id="orange_test_widget">
78+
<widget class="ExampleCorp\Learning\Block\Widget\Test" id="orange_test_widget">
7979
...
8080
<parameters>
8181
<parameter name="title" xsi:type="text" required="true" visible="true" sort_order="10">
@@ -129,10 +129,10 @@ After selecting the widget type and the layout location, we should be able to se
129129
Create the block class that we provided on the widget's initialization, responsible for
130130
rendering it on the frontend.
131131

132-
> `OrangeCompany/Learning/Block/Widget/Test`
132+
> `ExampleCorp/Learning/Block/Widget/Test`
133133
134134
```php
135-
namespace OrangeCompany\Learning\Block\Widget;
135+
namespace ExampleCorp\Learning\Block\Widget;
136136

137137
use Magento\Framework\View\Element\Template;
138138
use Magento\Widget\Block\BlockInterface;
@@ -147,11 +147,11 @@ class Test extends Template implements BlockInterface
147147

148148
And finally, create the template that will be used for showing the widget's data on the frontend.
149149

150-
> `OrangeCompany/Learning/view/frontend/templates/widget/test.phtml`
150+
> `ExampleCorp/Learning/view/frontend/templates/widget/test.phtml`
151151
152152
```php
153153
<?php
154-
/** \OrangeCompany\Learning\Block\Widget\Test $block */
154+
/** \ExampleCorp\Learning\Block\Widget\Test $block */
155155
?>
156156
<h3><?= $block->escapeHtml($block->getData('title')) ?></h3>
157157
<h3><?= $block->escapeHtml(__('Size:')) ?> <?= $block->escapeHtml($block->getData('size')) ?></h3>

src/guides/v2.3/extension-dev-guide/build/di-xml-file.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,16 +278,16 @@ If you want to override a public or protected method from a core class, utilize
278278
Here is an example of overriding a method from a core file:
279279

280280
```xml
281-
<!-- app/code/OrangeCompany/OverrideExample/etc/di.xml -->
281+
<!-- app/code/ExampleCorp/OverrideExample/etc/di.xml -->
282282
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
283-
<preference for="Magento\Checkout\Block\Onepage\Success" type="OrangeCompany\OverrideExample\Block\Onepage\Success" />
283+
<preference for="Magento\Checkout\Block\Onepage\Success" type="ExampleCorp\OverrideExample\Block\Onepage\Success" />
284284
</config>
285285
```
286286

287287
The example below overrides the `isVisible` method from the `Magento\Checkout\Block\Onepage\Success` block class.
288288

289289
```php
290-
namespace OrangeCompany\OverrideExample\Block\Onepage;
290+
namespace ExampleCorp\OverrideExample\Block\Onepage;
291291

292292
class Success extends \Magento\Checkout\Block\Onepage\Success
293293
{

src/guides/v2.3/extension-dev-guide/routing.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ You can add a `before` or `after` parameter in the `module` entry to override or
131131
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
132132
<router id="standard">
133133
<route id="customer">
134-
<module name="OrangeCompany_RoutingExample" before="Magento_Customer" />
134+
<module name="ExampleCorp_RoutingExample" before="Magento_Customer" />
135135
</route>
136136
</router>
137137
</config>
138138
```
139139

140-
This configuration tells the `FrontController` to look for actions in the `OrangeCompany_RoutingExample` module before searching in the `Magento_Customer` module.
141-
If `app/code/OrangeCompany/RoutingExample/Controller/Account/Login.php` exists, it will use that file for processing the login route instead of the original class.
140+
This configuration tells the `FrontController` to look for actions in the `ExampleCorp_RoutingExample` module before searching in the `Magento_Customer` module.
141+
If `app/code/ExampleCorp/RoutingExample/Controller/Account/Login.php` exists, it will use that file for processing the login route instead of the original class.
142142

143143
## Action class
144144

@@ -185,7 +185,7 @@ Declaring a new route:
185185
xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
186186
<router id="standard">
187187
<route id="routing" frontName="routing">
188-
<module name="OrangeCompany_RoutingExample" />
188+
<module name="ExampleCorp_RoutingExample" />
189189
</route>
190190
</router>
191191
</config>
@@ -215,7 +215,7 @@ Defining a new custom router:
215215
<arguments>
216216
<argument name="routerList" xsi:type="array">
217217
<item name="routingExample" xsi:type="array">
218-
<item name="class" xsi:type="string">OrangeCompany\RoutingExample\Controller\Router</item>
218+
<item name="class" xsi:type="string">ExampleCorp\RoutingExample\Controller\Router</item>
219219
<item name="disable" xsi:type="boolean">false</item>
220220
<item name="sortOrder" xsi:type="string">40</item>
221221
</item>
@@ -230,7 +230,7 @@ Creating the controller that will handle the `routing` route and will get the pa
230230
<?php
231231
declare(strict_types=1);
232232

233-
namespace OrangeCompany\RoutingExample\Controller\Index;
233+
namespace ExampleCorp\RoutingExample\Controller\Index;
234234

235235
use Magento\Framework\App\Action\Action;
236236
use Magento\Framework\App\Action\Context;
@@ -283,7 +283,7 @@ In the end, let's create the router class, that will match the custom route name
283283
<?php
284284
declare(strict_types=1);
285285

286-
namespace OrangeCompany\RoutingExample\Controller;
286+
namespace ExampleCorp\RoutingExample\Controller;
287287

288288
use Magento\Framework\App\Action\Forward;
289289
use Magento\Framework\App\ActionFactory;

src/guides/v2.3/extension-dev-guide/view-models.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ The use of helpers in templates is discouraged. It is recommended to use view mo
1919

2020
## How to write view models
2121

22-
View models can be used by passing the view model class as an argument to a template's block in the page layout configuration file. In the following example snippet, `MyNewViewModel` is the view model class of the OrangeCompany_Catalog module passed as an argument to a block.
22+
View models can be used by passing the view model class as an argument to a template's block in the page layout configuration file. In the following example snippet, `MyNewViewModel` is the view model class of the ExampleCorp_Catalog module passed as an argument to a block.
2323

2424
```xml
25-
<block name="orangeco.new.viewmodel" template="OrangeCompany_Catalog::example.phtml">
25+
<block name="examplecorp.new.viewmodel" template="ExampleCorp_Catalog::example.phtml">
2626
<arguments>
27-
<argument name="view_model" xsi:type="object">OrangeCompany\Catalog\ViewModel\MyNewViewModel</argument>
27+
<argument name="view_model" xsi:type="object">ExampleCorp\Catalog\ViewModel\MyNewViewModel</argument>
2828
</arguments>
2929
</block>
3030
```
@@ -34,15 +34,15 @@ In the following example, the same view model is used with an existing block in
3434
```xml
3535
<referenceBlock name="checkout.cart.item.renderers.default">
3636
<arguments>
37-
<argument name="view_model" xsi:type="object">OrangeCompany\Catalog\ViewModel\MyNewViewModel</argument>
37+
<argument name="view_model" xsi:type="object">ExampleCorp\Catalog\ViewModel\MyNewViewModel</argument>
3838
</arguments>
3939
</referenceBlock>
4040
```
4141

4242
The view model class must always implement the interface `\Magento\Framework\View\Element\Block\ArgumentInterface`. For example:
4343

4444
```php
45-
namespace OrangeCompany\Catalog\ViewModel;
45+
namespace ExampleCorp\Catalog\ViewModel;
4646

4747
class MyNewViewModel implements \Magento\Framework\View\Element\Block\ArgumentInterface
4848
{
@@ -58,7 +58,7 @@ You can access the public methods for the view model class in the template:
5858
```html
5959
<?php
6060

61-
/** @var $viewModel \OrangeCompany\Catalog\ViewModel\MyNewViewModel */
61+
/** @var $viewModel \ExampleCorp\Catalog\ViewModel\MyNewViewModel */
6262

6363
$viewModel = $block->getViewModel();
6464

src/guides/v2.3/frontend-dev-guide/css-topics/css-overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ In the Blank theme, the buttons of the `.action.primary` class, so called *prima
4343

4444
![The default view of a product page, with the orange Add to Cart button]
4545

46-
OrangeCo wants to change the color of the primary buttons to orange. To achieve this, they do the following:
46+
ExampleCorp wants to change the color of the primary buttons to orange. To achieve this, they do the following:
4747

4848
1. Create a new Orange theme, which inherits from the Blank [theme](https://glossary.magento.com/theme).
49-
1. In the Orange theme directory add the overriding `app/design/frontend/OrangeCo/orange/web/css/source/_theme.less` file with the following code:
49+
1. In the Orange theme directory add the overriding `app/design/frontend/ExampleCorp/orange/web/css/source/_theme.less` file with the following code:
5050

5151
```less
5252
// Primary button
@@ -58,7 +58,7 @@ OrangeCo wants to change the color of the primary buttons to orange. To achieve
5858
@button-primary__hover__border: 1px solid @color-orange-red2;
5959
```
6060

61-
When OrangeCo [applies their theme]({{ page.baseurl }}/frontend-dev-guide/themes/theme-apply.html), the primary buttons will look like on the following image:
61+
When ExampleCorp [applies their theme]({{ page.baseurl }}/frontend-dev-guide/themes/theme-apply.html), the primary buttons will look like on the following image:
6262

6363
![The customized view of a product page, with the grey Add to Cart button]
6464

src/guides/v2.3/frontend-dev-guide/css-topics/css-practice.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ This topic features a step-by-step illustration of how to change a theme's color
1111

1212
## Changing theme color scheme
1313

14-
OrangeCo created a custom theme that inherits from the Magento basic Blank theme.
14+
ExampleCorp created a custom theme that inherits from the Magento basic Blank theme.
1515
The following image illustrates how store pages look when the Blank theme is applied:
1616

1717
![product page when Blank applied]
1818

19-
In their Grey theme, OrangeCo wants to change the color scheme from white to grey.
19+
In their Grey theme, ExampleCorp wants to change the color scheme from white to grey.
2020

21-
The Grey theme directory is `app/design/frontend/OrangeCo/grey`.
21+
The Grey theme directory is `app/design/frontend/ExampleCorp/grey`.
2222

23-
OrangeCo decided to use the Magento UI library, so to change the color scheme, they need to define new values for certain default Less variables.
24-
To do this, they added an overriding `_theme.less` file in the `app/design/frontend/OrangeCo/grey/web/css/source` directory, with the following content:
23+
ExampleCorp decided to use the Magento UI library, so to change the color scheme, they need to define new values for certain default Less variables.
24+
To do this, they added an overriding `_theme.less` file in the `app/design/frontend/ExampleCorp/grey/web/css/source` directory, with the following content:
2525

2626
```less
2727
// Color nesting

src/guides/v2.3/frontend-dev-guide/layouts/layout-practice.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This article features a step-by-step illustration of how a real-life layout cust
1111

1212
## Moving customer account links
1313

14-
In their Orange theme, OrangeCo wants to transform the header links block to a drop-down, the way it is done in the Magento Luma theme:
14+
In their Orange theme, ExampleCorp wants to transform the header links block to a drop-down, the way it is done in the Magento Luma theme:
1515

1616
![layout transform]
1717

@@ -72,7 +72,7 @@ The markup required for the drop-down is the following:
7272

7373
### Step 1: Define the layout blocks
7474

75-
OrangeCo [applies the Luma theme]({{ page.baseurl }}/frontend-dev-guide/themes/theme-apply.html). Using the approach described in [Locate templates, layouts, and styles]({{ page.baseurl }}/frontend-dev-guide/themes/debug-theme.html) they find out that the original block responsible for displaying the header links is defined in
75+
ExampleCorp [applies the Luma theme]({{ page.baseurl }}/frontend-dev-guide/themes/theme-apply.html). Using the approach described in [Locate templates, layouts, and styles]({{ page.baseurl }}/frontend-dev-guide/themes/debug-theme.html) they find out that the original block responsible for displaying the header links is defined in
7676

7777
`<Magento_Theme_module_dir>/view/frontend/layout/default.xml`:
7878

@@ -119,7 +119,7 @@ The links that should be in header, but outside the drop-down menu are added in
119119

120120
### Step 2: Define the templates
121121

122-
Similar to the way they defined the layout on the previous step, OrangeCo
122+
Similar to the way they defined the layout on the previous step, ExampleCorp
123123
defines the template which is used as the drop-down container : `<Magento_Customer_module_dir>/view/frontend/templates/account/customer.phtml`.
124124

125125
```php
@@ -166,11 +166,11 @@ See [app/code/Magento/Customer/view/frontend/templates/account/customer.phtml]({
166166

167167
### Step 3: Extend the base layout to add a block
168168

169-
OrangeCo needs to create a new block, say, `header.links`, in the `header.panel` container, to move the links there. As the links can be added to this list by different modules, it is better to add this block to the `default.xml` page configuration of the `Magento_Theme` module.
169+
ExampleCorp needs to create a new block, say, `header.links`, in the `header.panel` container, to move the links there. As the links can be added to this list by different modules, it is better to add this block to the `default.xml` page configuration of the `Magento_Theme` module.
170170

171171
So the following [extending]({{ page.baseurl }}/frontend-dev-guide/layouts/layout-extend.html) layout is added in the Orange theme:
172172

173-
`app/design/frontend/OrangeCo/orange/Magento_Theme/layout/default.xml`
173+
`app/design/frontend/ExampleCorp/orange/Magento_Theme/layout/default.xml`
174174

175175
```xml
176176
<?xml version="1.0"?>
@@ -189,9 +189,9 @@ So the following [extending]({{ page.baseurl }}/frontend-dev-guide/layouts/layou
189189

190190
### Step 4: Move links
191191

192-
To move the links to the `header.links` block, OrangeCo adds an extending layout:
192+
To move the links to the `header.links` block, ExampleCorp adds an extending layout:
193193

194-
`app/design/frontend/OrangeCo/orange/Magento_Customer/layout/default.xml`
194+
`app/design/frontend/ExampleCorp/orange/Magento_Customer/layout/default.xml`
195195

196196
```xml
197197
<?xml version="1.0"?>
@@ -214,12 +214,12 @@ Now the customer links look like following:
214214

215215
Clicking the **Change** button toggles the `active` CSS class:
216216

217-
To add quick basic styling and visual behavior to the "dropdown" menu, OrangeCo added [_extend.less]({{ page.baseurl }}/frontend-dev-guide/css-guide/css_quick_guide_approach.html#simple_extend) to their theme with the following customizations:
217+
To add quick basic styling and visual behavior to the "dropdown" menu, ExampleCorp added [_extend.less]({{ page.baseurl }}/frontend-dev-guide/css-guide/css_quick_guide_approach.html#simple_extend) to their theme with the following customizations:
218218

219219
* Redundant elements are hidden with CSS.
220220
* The `.lib-dropdown()` mixin from [Magento UI library]({{ page.baseurl }}/frontend-dev-guide/css-topics/theme-ui-lib.html) was applied to the corresponding element.
221221

222-
`app/design/frontend/OrangeCo/orange/web/css/source/_extend.less`
222+
`app/design/frontend/ExampleCorp/orange/web/css/source/_extend.less`
223223

224224
```css
225225
//

src/guides/v2.3/frontend-dev-guide/layouts/xml-manage.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ This adds an IE conditional comment in the generated HTML, like in the following
101101

102102
```html
103103
<!--[if IE 9]>
104-
<link rel="stylesheet" type="text/css" media="all" href="<your_store_web_address>/pub/static/frontend/OrangeCo/orange/en_US/css/ie-9.css" />
104+
<link rel="stylesheet" type="text/css" media="all" href="<your_store_web_address>/pub/static/frontend/ExampleCorp/orange/en_US/css/ie-9.css" />
105105
<![endif]-->
106106
```
107107

108-
In this example, `orange` is a custom theme created by the OrangeCo vendor.
108+
In this example, `orange` is a custom theme created by the ExampleCorp vendor.
109109

110110
## Remove static resources (JavaScript, CSS, fonts) {#layout_markup_css_remove}
111111

@@ -482,7 +482,7 @@ In the Magento Blank theme these elements are located as follows:
482482
![]({{site.baseurl}}/common/images/layout_image1.png)
483483

484484
Place the stock availability and SKU blocks after product price block on a product page, and move the review block out of the product-info-price container.
485-
To do this, add the extending `catalog_product_view.xml` in the `app/design/frontend/OrangeCo/orange/Magento_Catalog/layout/` directory:
485+
To do this, add the extending `catalog_product_view.xml` in the `app/design/frontend/ExampleCorp/orange/Magento_Catalog/layout/` directory:
486486

487487
```xml
488488
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
@@ -560,17 +560,17 @@ Here is an example of how a css class can be added to `<body>` tag on product vi
560560
xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
561561
<type name="Magento\Catalog\Helper\Product\View">
562562
<plugin name="add_custom_body_class_to_product_page"
563-
type="OrangeCompany\Learning\Plugin\AddBodyClassToProductPagePlugin"/>
563+
type="ExampleCorp\Learning\Plugin\AddBodyClassToProductPagePlugin"/>
564564
</type>
565565
</config>
566566
```
567567

568-
> `OrangeCompany/Learning/Plugin/AddBodyClassToProductPagePlugin.php`
568+
> `ExampleCorp/Learning/Plugin/AddBodyClassToProductPagePlugin.php`
569569
570570
```php
571571
<?php
572572

573-
namespace OrangeCompany\Learning\Plugin;
573+
namespace ExampleCorp\Learning\Plugin;
574574

575575
use Magento\Catalog\Helper\Product\View as ProductViewHelper;
576576
use Magento\Framework\View\Result\Page;

0 commit comments

Comments
 (0)