Skip to content

Commit e5d7d3f

Browse files
committed
docs: update sample code
1 parent be9204e commit e5d7d3f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

user_guide_src/source/concepts/autoloader/001.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ class Autoload extends AutoloadConfig
88
{
99
// ...
1010
public $psr4 = [
11-
APP_NAMESPACE => APPPATH, // For custom app namespace
12-
'Config' => APPPATH . 'Config',
11+
APP_NAMESPACE => APPPATH,
1312
];
1413

1514
// ...

user_guide_src/source/dbmgmt/migration.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ For example, assume that we have the following namespaces defined in our Autoloa
9393
configuration file:
9494

9595
.. literalinclude:: migration/004.php
96+
:lines: 2-
9697

9798
This will look for any migrations located at both **APPPATH/Database/Migrations** and
9899
**ROOTPATH/MyCompany/Database/Migrations**. This makes it simple to include migrations in your
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

33
$psr4 = [
4-
'App' => APPPATH,
5-
'MyCompany' => ROOTPATH . 'MyCompany',
4+
APP_NAMESPACE => APPPATH,
5+
'MyCompany' => ROOTPATH . 'MyCompany',
66
];

user_guide_src/source/general/modules/001.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
class Autoload extends AutoloadConfig
88
{
9+
// ...
910
public $psr4 = [
10-
APP_NAMESPACE => APPPATH, // For custom namespace
11-
'Config' => APPPATH . 'Config',
11+
APP_NAMESPACE => APPPATH,
1212
'Acme\Blog' => ROOTPATH . 'acme/Blog',
1313
];
1414

0 commit comments

Comments
 (0)