The Problem: I’m looking to implement the DateTime script found in the Doctrine 2.7 docs here. I’m having trouble figuring out where this script should naturally go in Symfony 5’s file structure.
The Setup: Used Composer to create a Symfony 5 website skeleton using
composer create-project symfony/website-skeleton.
The Context: I don’t have any real code implemented yet as I’m still trying to learn how Symfony works with Doctrine. I’m trying to do everything right with Symfony, including figuring out where files should go. From what I understand, each php script found in
src is either a Controller, an Entity, or a Repository. I don’t see where to reasonably put the DateTime script without making another folder.
Any guidance is much appreciated! Thank you.
Source: Symfony Questions
Was this helpful?
0 / 0