-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[RFC] Compatibility with Symfony Flex #2562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Steps required to be able to install FOSUserBundle in a Symfony Flex project:
framework:
templating: { engines: [twig] }
fos_user:
db_driver: orm
firewall_name: main
user_class: FOS\UserBundle\Model\User
from_email: {address: "fosub@localhost", sender_name: FOSUB}
use_flash_notifications: false What I would recommend:
What do you think? |
I also had to enable the "session" service Inside
and had to create
|
As we can find here, we have to define the mailer service.
worked for me, I hope this will help you. |
I don't want to add SwiftmailerBundle as a required dependency, as this would hurt anyone not using it (and Swiftmailer is not the only option to send emails, with the rise of tools like Sendgrid or Mandrill doing all the heavy work). This must stay an optional dependency. However, I do want to improve the setup with Flex. I just haven't had time to do it yet. |
Thanks @allemas It works for me |
+1 |
Hello, I am struggling to get this package working with Flex. Finding this issue I assume that it is currently not possible. As such I wont proceed yet until there is some new documentation for this that takes into consideration the new config directory and the service autowiring. Is there any update? |
May be See |
@stof The dependency is optional, but the FOS mailer seems to require a /**
* Mailer constructor.
*
* @param \Swift_Mailer $mailer
* @param UrlGeneratorInterface $router
* @param EngineInterface $templating
* @param array $parameters
*/
public function __construct($mailer, UrlGeneratorInterface $router, EngineInterface $templating, array $parameters)
{
$this->mailer = $mailer;
$this->router = $router;
$this->templating = $templating;
$this->parameters = $parameters;
} |
Forget my last comment, I read the code too fast. |
Any news on this ? |
Hi. Any news? |
Symfony FOSUserBundle versions: dev-master
Description of the problem including expected versus actual behavior:
When trying to install FOSUB in a Symfony Flex project, the
assets:install
commands fails, which prevents the bundle from being installed (see log).I'm not sure what the best solution would be here... As far as I could see, there are no current solutions for interactive configuration via Flex's bundle autoconfiguration system.
However, most project rely on the doctrine ORM to store users, AFAIK.
Maybe a solution could be to provide a "dummy" driver that allows the default configuration to go through but prevents actually using the bundle until an actual driver has been configured? What do you think?
Steps to reproduce:
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: