Skip to content

Commit

Permalink
correcting setDirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Jul 18, 2024
1 parent 9d8af17 commit 9dd31cd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/application-micro.md
Original file line number Diff line number Diff line change
Expand Up @@ -2259,7 +2259,7 @@ use Phalcon\Mvc\Micro;

$loader = new Loader();
$loader
->registerDirs(
->setDirectories(
[
__DIR__ . '/models/',
]
Expand Down Expand Up @@ -2298,7 +2298,7 @@ use Phalcon\Mvc\Model\Binder;

$loader = new Loader();

$loader->registerDirs(
$loader->setDirectories(
[
__DIR__ . '/models/',
]
Expand Down
2 changes: 1 addition & 1 deletion docs/application.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ use Phalcon\Mvc\Application;
use Phalcon\Mvc\View;

$loader = new Loader();
$loader->registerDirs(
$loader->setDirectories(
[
'../apps/controllers/',
'../apps/models/',
Expand Down
2 changes: 1 addition & 1 deletion docs/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,7 @@ use Phalcon\Exception as PhalconException;
try {
$loader = new Loader();

$loader->registerDirs(
$loader->setDirectories(
[
'../app/controllers',
'../app/models',
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial-basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ define('APP_PATH', BASE_PATH . '/app');

$loader = new Loader();

$loader->registerDirs(
$loader->setDirectories(
[
APP_PATH . '/controllers/',
APP_PATH . '/models/',
Expand Down

0 comments on commit 9dd31cd

Please sign in to comment.