0

I am trying to learn the OOP and DI. I am receiving help from FOSUserBundle and coding my own bundle to learn things.

FOS has:

UserManager.php and UserManagerInterface.php.

Now, I want to make UserService.php in the Service folder.

I am confused about whether I can replace UserManager.php with userService.php, or do I need to make a new file?

userService.php extends userManager.php.

I want to keep things modular.

1 Answer 1

1

You are not supposed to edit any file in FOSUserBundle, go with the second solution : inheritance, and use the configuration file to select your userManager instead of the FOS user manager.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.