Skip to content

Commit

Permalink
Restore factory naming clause.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspertey committed Nov 10, 2024
1 parent a6f6111 commit 6237174
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Support/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public function object(string $type, string $name, bool $absolute = false): Doma
$baseName = str($name)->replace($namespace, '')
->replace(['\\', '/'], '\\')
->trim('\\')
->when($type === 'factory', fn ($name) => $name->finish('Factory'))
->toString();

$fullyQualifiedName = $namespace.'\\'.$baseName;
Expand Down

0 comments on commit 6237174

Please sign in to comment.