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

Commit 5b0ff13

Browse files
committed
Cloud php code blocks
1 parent da4ca19 commit 5b0ff13

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

src/_includes/cloud/log-in-db.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The following steps provide an example of accessing a database:
1414

1515
Sample output follows:
1616

17-
```php
17+
```terminal
1818
Array
1919
(
2020
[0] => stdClass Object

src/cloud/deploy/scenario-based-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ To register a module with the {{site.data.var.ct}} package:
224224

225225
1. Create or extend the `registration.php` file in the root of your module.
226226

227-
```php
227+
```php?start_inline=1
228228
\Magento\MagentoCloud\ExtensionRegistrar::register('module-name', __DIR__);
229229
```
230230

src/cloud/env/variables-cloud.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ To [add environment variables to override configuration settings]({{ site.baseur
2929
Since values can change over time, it is best to inspect the variable at runtime and use it to configure your application. For example, we use the `MAGENTO_CLOUD_RELATIONSHIPS` variable to retrieve environment-related relationships as follows:
3030

3131
```php
32+
<?php
3233
/**
3334
* Get relationships information from cloud environment variable.
3435
*

src/cloud/project/magento-app-php-ini.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Configuring PHP settings improperly can cause issues. We recommend only advanced
1818

1919
To increase the PHP memory limit, add the following setting to the `php.ini` file:
2020

21-
```php
21+
```php?start_inline=1
2222
memory_limit = 1G
2323
```
2424

src/cloud/project/project-routes-more-ssi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ The following example shows how to insert a dynamic date control at the top of a
3232
3333
Add the following to any page, such as `/index.php`:
3434

35-
```php
35+
```php?start_inline=1
3636
echo date(DATE_RFC2822);
3737
<!--#include virtual="time.php" -->
3838
```
3939

4040
Add the following to `time.php`:
4141

42-
```php
42+
```php?start_inline=1
4343
header("Cache-Control: max-age=600");
4444
echo date(DATE_RFC2822);
4545
```

src/cloud/release-notes/backward-incompatible-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ In earlier {{ site.data.var.ct }} releases, you could use the `m2-ece-build` and
8383

8484
- **Running post-deploy hooks**–The `cloud-deploy` command no longer runs post deploy hooks. You must use the new `cloud-post-deploy` command to run post deploy hooks after you deploy. Update your scripts to add the command to run post deploy hooks.
8585

86-
```php
86+
```config
8787
bin/magento-docker ece-deploy
8888
bin/magento-docker ece-post-deploy
8989
```

src/cloud/trouble/trouble-crypt-key-variable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To verify and update the encryption key environment variable:
2929
1. Open `app/etc/env.php` in a text editor.
3030
1. Verify the existing value of `key` for `crypt`. The value should be your [{{site.data.var.ee}} key]({{ site.baseurl }}/cloud/setup/first-time-setup-import-prepare.html#encryption-key).
3131

32-
```php
32+
```php?start_inline=1
3333
return array (
3434
'crypt' =>
3535
array (

src/cloud/trouble/trouble-error-html-minification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ As a work-around, complete the following:
2222
1. Copy the file `app/etc/config.local.php` to your local.
2323
1. Edit and remove the minify section from `config.local.php`:
2424

25-
```php
25+
```php?start_inline=1
2626
'template' =>
2727
array (
2828
'allow_symlink' => '0',

0 commit comments

Comments
 (0)