Skip to content

Commit d11b3f1

Browse files
committed
fix TypeRocket\Pro typos in v6 docs
1 parent 8c2f517 commit d11b3f1

17 files changed

Lines changed: 71 additions & 71 deletions

v6/automatic-updates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The updaters check for a new version every 12 hours.
1616
The slug must match the name of your plugin.
1717

1818
```php
19-
new \TypeRocketPro\Updates\PluginUpdater([
19+
new \TypeRocket\Pro\Updates\PluginUpdater([
2020
'slug' => 'my-typerocket-plugin',
2121
'api_url' => 'https://example.com/plugins/my-typerocket-plugin/'
2222
]);
@@ -64,7 +64,7 @@ The required endpoint format is JSON.
6464
The slug must match the name of your theme.
6565

6666
```php
67-
new \TypeRocketPro\Updates\ThemeUpdater([
67+
new \TypeRocket\Pro\Updates\ThemeUpdater([
6868
'slug' => 'my-typerocket-theme',
6969
'api_url' => 'https://example.com/themes/my-typerocket-theme/'
7070
]);

v6/configuration.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ TypeRocket Pro also comes with these additional extensions:
5959
```php
6060
'extensions' => [
6161
// ...
62-
'\TypeRocketPro\Extensions\ThemeOptions',
63-
'\TypeRocketPro\Extensions\DevTools',
64-
'\TypeRocketPro\Extensions\Seo',
65-
'\TypeRocketPro\Extensions\RapidPages',
66-
'\TypeRocketPro\Extensions\HidePostMenu',
67-
'\TypeRocketPro\Extensions\DisableComments',
68-
'\TypeRocketPro\Extensions\GutenbergRemover',
62+
'\TypeRocket\Pro\Extensions\ThemeOptions',
63+
'\TypeRocket\Pro\Extensions\DevTools',
64+
'\TypeRocket\Pro\Extensions\Seo',
65+
'\TypeRocket\Pro\Extensions\RapidPages',
66+
'\TypeRocket\Pro\Extensions\HidePostMenu',
67+
'\TypeRocket\Pro\Extensions\DisableComments',
68+
'\TypeRocket\Pro\Extensions\GutenbergRemover',
6969
],
7070
```

v6/curl-client.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,24 @@ $data = [
1919
];
2020
$json = true; // Make request as JSON
2121

22-
$http = \TypeRocketPro\Utility\Http::post($url, $data, $json);
22+
$http = \TypeRocket\Pro\Utility\Http::post($url, $data, $json);
2323
$returned = $http->exec();
2424
```
2525

2626
### All Shorthand Methods
2727

2828
```php
29-
\TypeRocketPro\Utility\Http::get($url);
30-
\TypeRocketPro\Utility\Http::post($url, $data, $json);
31-
\TypeRocketPro\Utility\Http::put($url, $data, $json);
32-
\TypeRocketPro\Utility\Http::delete($url, $data, $json);
29+
\TypeRocket\Pro\Utility\Http::get($url);
30+
\TypeRocket\Pro\Utility\Http::post($url, $data, $json);
31+
\TypeRocket\Pro\Utility\Http::put($url, $data, $json);
32+
\TypeRocket\Pro\Utility\Http::delete($url, $data, $json);
3333
```
3434

3535
## Custom Instance
3636

3737
```php
3838
$method = 'GET'; // Any valid HTTP method can be used
39-
$http = new \TypeRocketPro\Utility\Http($url, $method);
39+
$http = new \TypeRocket\Pro\Utility\Http($url, $method);
4040
```
4141

4242
## Headers
@@ -92,7 +92,7 @@ curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
9292
curl_setopt($curl, CURLOPT_URL, $url);
9393

9494
// Close the existing curl request
95-
$http = (new \TypeRocketPro\Utility\Http($url))->curl(null);
95+
$http = (new \TypeRocket\Pro\Utility\Http($url))->curl(null);
9696

9797
// Override
9898
$http->curl($curl);
@@ -107,5 +107,5 @@ $json = true; // Make request as JSON
107107
$returned = $http->exec();
108108
```
109109

110-
The returned value is a `TypeRocketPro\Utility\CurlResponse` object.
110+
The returned value is a `TypeRocket\Pro\Utility\CurlResponse` object.
111111

v6/downloads.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The `TypeRocketPro\Http\Download` class lets you send a downloadable file as the
1212
## Basic Usage
1313

1414
```php
15-
$download = TypeRocketPro\Http\Download::new(__DIR__ . '/file.txt');
15+
$download = TypeRocket\Pro\Http\Download::new(__DIR__ . '/file.txt');
1616
$download->setName('my-download-file-name.txt');
1717
$download->send();
1818
```
@@ -23,7 +23,7 @@ Send files using a custom route you can sue the `download()` method.
2323

2424
```php
2525
tr_route()->get()->on('my-path', function() {
26-
return TypeRocketPro\Http\Download::new(__DIR__ . '/file.txt');
26+
return \TypeRocket\Pro\Http\Download::new(__DIR__ . '/file.txt');
2727
});
2828
```
2929

@@ -33,6 +33,6 @@ Send files to a client from [storage](/docs/v6/storage/) using a custom route yo
3333

3434
```php
3535
tr_route()->get()->on('my-path', function() {
36-
return \TypeRocketPro\Utility\Storage::download('file.txt');
36+
return \TypeRocket\Pro\Utility\Storage::download('file.txt');
3737
});
3838
```

v6/extension-dev-tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Description: Access powerful dev tools for WordPress.
77

88
## Getting Started
99

10-
The `TypeRocketPro\Extensions\DevTools` extension adds an admin page to WordPress named "Dev". From the "Dev" page you can:
10+
The `TypeRocket\Pro\Extensions\DevTools` extension adds an admin page to WordPress named "Dev". From the "Dev" page you can:
1111

1212
1. Search and view the available TypeRocket icons that can be used for post types and pages.
1313
2. See all the registered image sizes added by WordPress of through [add_image_size()](https://developer.wordpress.org/reference/functions/add_image_size/).

v6/extension-page-builder-plus.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can [download the list of official page builder component thumbnail icons](h
1919

2020
### Installation
2121

22-
1. Update your App Config file adding to the extensions list: `\TypeRocketPro\Extensions\PageBuilderPlus\PageBuilderPlus`
22+
1. Update your App Config file adding to the extensions list: `\TypeRocket\Pro\Extensions\PageBuilderPlus\PageBuilderPlus`
2323
2. Run the Pro package galaxy publish script: `php galaxy extension:publish typerocket/professional page-builder-plus --mode=publish`
2424

2525
And you're almost done installing.
@@ -28,10 +28,10 @@ The above steps implements the required `Page` model trait and runs the needed m
2828

2929
### Block Component
3030

31-
The Page Builder Plus package comes with an additional builder Block component. Modify your component's config file and add the following to the list of components `'block' => TypeRocketPro\Extensions\PageBuilderPlus\Components\Block::class`. Next, add the `block` option to the builder component settings list just below the registry.
31+
The Page Builder Plus package comes with an additional builder Block component. Modify your component's config file and add the following to the list of components `'block' => TypeRocket\Pro\Extensions\PageBuilderPlus\Components\Block::class`. Next, add the `block` option to the builder component settings list just below the registry.
3232

3333
### Builder Revisions Usage
3434

3535
The Page Builder Plus package comes with builder revisions. With it, you can see the history of your component changes. There is additional steps involved to get the revisions included.
3636

37-
1. You need to include the BuilderRevisions trait in your applicable `Page` model class. `use TypeRocketPro\Extensions\PageBuilderPlus\Traits\BuilderRevisions;`
37+
1. You need to include the BuilderRevisions trait in your applicable `Page` model class. `use TypeRocket\Pro\Extensions\PageBuilderPlus\Traits\BuilderRevisions;`

v6/extension-page-builder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Advanced components can be cloned and named.
198198
namespace App\Components;
199199

200200
use TypeRocket\Template\Component;
201-
use TypeRocketPro\Template\AdvancedComponent;
201+
use TypeRocket\Pro\Template\AdvancedComponent;
202202

203203
class ContentComponent extends AdvancedComponent
204204
{

v6/extension-rapid-pages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Description: Create static page caches to point your web server at for improved
99

1010
TypeRocket's Rapid Pages extension allows you to take advantage of the `advanced-cache.php` WordPress drop-in. To enable Rapid Pages:
1111

12-
1. Add the extension `\TypeRocketPro\Extensions\RapidPages` to your `app.extensions` config setting.
12+
1. Add the extension `\TypeRocket\Pro\Extensions\RapidPages` to your `app.extensions` config setting.
1313
2. Run the galaxy command `php galaxy extension:publish typerocket/professional rapid-pages`.
1414
3. Add `define( 'WP_CACHE', true );` to your `wp-config.php` file.
1515
4. Add `define('TYPEROCKET_RAPID_PAGES_FOLDER_PATH', ABSPATH . 'tr_cache/rapid_cache');` to your `wp-config.php` file after `ABSPATH` is defined.
@@ -24,7 +24,7 @@ php galaxy extension:publish typerocket/professional rapid-pages --mode=unpublis
2424

2525
## Nginx Configuration
2626

27-
Once you have enabled the `TypeRocketPro\Extension\RapidPages` you can also configure your web server to the cached files for even faster performance. With Nginx, you can use the `map` directive with custom variables to show the cache with `try_files` to guest users only.
27+
Once you have enabled the `TypeRocket\Pro\Extension\RapidPages` you can also configure your web server to the cached files for even faster performance. With Nginx, you can use the `map` directive with custom variables to show the cache with `try_files` to guest users only.
2828

2929
```
3030
map $http_cookie $cachefiles {

v6/install-via-plugin.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ If you are upgrading from the free plugin to the TypeRocket Pro plugin you will
7474
- `rapid.php`.
7575
- `storage.php`.
7676

77-
Next, you will need to locate your custom `app/Elements/Fom.php` file and add `use \TypeRocketPro\Elements\Traits\AdvancedFields;`:
77+
Next, you will need to locate your custom `app/Elements/Fom.php` file and add `use \TypeRocket\Pro\Elements\Traits\AdvancedFields;`:
7878

7979
```php
8080
<?php
@@ -84,7 +84,7 @@ use TypeRocket\Elements\BaseForm;
8484

8585
class Form extends BaseForm
8686
{
87-
use \TypeRocketPro\Elements\Traits\AdvancedFields;
87+
use \TypeRocket\Pro\Elements\Traits\AdvancedFields;
8888
}
8989
```
9090

v6/log.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,35 @@ To configure the log system to a specific log driver see the `app/logging.php` c
1818
## Log Levels
1919

2020
```php
21-
\TypeRocketPro\Utility\Log::emergency('My log');
22-
\TypeRocketPro\Utility\Log::alert('My log');
23-
\TypeRocketPro\Utility\Log::critical('My log');
24-
\TypeRocketPro\Utility\Log::error('My log');
25-
\TypeRocketPro\Utility\Log::warning('My log');
26-
\TypeRocketPro\Utility\Log::notice('My log');
27-
\TypeRocketPro\Utility\Log::info('My log');
28-
\TypeRocketPro\Utility\Log::debug('My log');
21+
\TypeRocket\Pro\Utility\Log::emergency('My log');
22+
\TypeRocket\Pro\Utility\Log::alert('My log');
23+
\TypeRocket\Pro\Utility\Log::critical('My log');
24+
\TypeRocket\Pro\Utility\Log::error('My log');
25+
\TypeRocket\Pro\Utility\Log::warning('My log');
26+
\TypeRocket\Pro\Utility\Log::notice('My log');
27+
\TypeRocket\Pro\Utility\Log::info('My log');
28+
\TypeRocket\Pro\Utility\Log::debug('My log');
2929
```
3030

3131
## Switch Driver
3232

3333
If you do not want to use the default driver you can specify one.
3434

3535
```php
36-
\TypeRocketPro\Utility\Log::driver('file')->emergency('My log');
36+
\TypeRocket\Pro\Utility\Log::driver('file')->emergency('My log');
3737
```
3838

3939
## Custom Stacks
4040

4141
You can log to a custom stack as well.
4242

4343
```php
44-
\TypeRocketPro\Utility\Log::stack(['file', 'mail'], 'emergency', 'My log');
44+
\TypeRocket\Pro\Utility\Log::stack(['file', 'mail'], 'emergency', 'My log');
4545
```
4646

4747
## File Logger
4848

49-
You can customize the location the file logger saves log files by defining the `wp-config.php` constant `TYPEROCKET_LOG_FILE_FOLDER`. Or, you can define the `typerocket_log_file` filter hook; but keep in mind your hook must be added before `\TypeRocketPro\Utility\Log` is called:
49+
You can customize the location the file logger saves log files by defining the `wp-config.php` constant `TYPEROCKET_LOG_FILE_FOLDER`. Or, you can define the `typerocket_log_file` filter hook; but keep in mind your hook must be added before `\TypeRocket\Pro\Utility\Log` is called:
5050

5151
```php
5252
add_filter('typerocket_log_file', function($file, $folder, $message, $options) {

0 commit comments

Comments
 (0)