Skip to content

Commit

Permalink
fix Namespace and title for ORM, DB and extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Jan 5, 2022
1 parent 53a7c0d commit 05babae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Domain/Value/Project.php
Expand Up @@ -139,6 +139,8 @@ public function title(): string
->replace('/', ' ')
->replace('-', ' ')
->title(true)
->replace(' Orm ', ' ORM ')
->replace('db ', 'DB ')
->replace(' ', '')
->toString();
}
Expand All @@ -147,6 +149,7 @@ public function namespace(): string
{
return u($this->title())
->replace('Sonata', '')
->replace('Extensions', '')
->toString();
}

Expand Down

0 comments on commit 05babae

Please sign in to comment.