Skip to content

Commit

Permalink
Sync config content.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Mar 30, 2024
1 parent 4159b64 commit b0232a4
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ In production, you should cache the autoload manifests using the `ddd:cache` com
This is the content of the published config file (`ddd.php`):

```php

return [

/*
Expand Down Expand Up @@ -290,9 +291,28 @@ return [
|
*/
'autoload' => [
/**
* When enabled, any class within the domain layer extending `Illuminate\Support\ServiceProvider`
* will be auto-registered as a service provider
*/
'providers' => true,

/**
* When enabled, any class within the domain layer extending `Illuminate\Console\Command`
* will be auto-registered as a command when running in console.
*/
'commands' => true,

/**
* When enabled, the package will register a custom policy discovery callback to resolve policy names
* for domain models, and fallback to Laravel's default for all other cases.
*/
'policies' => true,

/**
* When enabled, the package will register a custom factory discovery callback to resolve factory names
* for domain models, and fallback to Laravel's default for all other cases.
*/
'factories' => true,
],

Expand All @@ -305,7 +325,7 @@ return [
| autoloading.
|
*/
'cache_directory' => 'bootstrap/cache',
'cache_directory' => 'bootstrap/cache/ddd',
];
```

Expand Down

0 comments on commit b0232a4

Please sign in to comment.