src/Service/EntityManager/ArticleManager.php
/**
     * Prepare all articles entities before persist.
     */
Prepare all articles entities before persist.
Prepare all articles entities before persist .
public function prepare(Article $article, User $user): Article
    {
        $article->setSlug(SeoSlugger::uniqueSlugify($article->getTitle()));
        $article->setUser($user);
        return $article;
    }
public function prepare ( Article $ article , User $ user ) : Article { $ article -> setSlug ( SeoSlugger :: uniqueSlugify ( $ article -> getTitle ( ) ) ) ; $ article -> setUser ( $ user ) ; return $ article ; }
Prepare all articles entities before persist.
Prepare all articles entities before persist .