noiselabs / SmartyBundle

Smarty3 template engine bundle for Symfony
http://smartybundle.readthedocs.io/
GNU Lesser General Public License v3.0
51 stars 36 forks source link

Mopa Bootstrap a requirement? #35

Closed code4pay closed 2 years ago

code4pay commented 11 years ago

Hi did an upgrade and when I try to run symfony console commands I always get

[InvalidArgumentException]                                                                                                                               
  Bundle "MopaBootstrapBundle" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() method of your AppKernel.php file  
  ?         

which is correct it is not installed and I don't actually require it? How do I turn this requirement off? Thanks

vitorbrandao commented 11 years ago

@code4pay Mopa Bootstrap is (or should be) optional. Do you have a mopa_bootstrap: line in your configuration?

code4pay commented 11 years ago

looks like because of Assetic , it scans the resources section of this bundle that has files with the following statement

 vendor/noiselabs/smarty-bundle/NoiseLabs/Bundle/SmartyBundle/Resources/views/Bootstrap       /base.html.smarty:        assets='@MopaBootstrapBundle/Resources/public/less/mopabootstrapbundle.less'

Causes Mopa to be required. Deleting the bootstrap directory fixes it.

vitorbrandao commented 11 years ago

Interesting. Well that's a workaround and I thank you for providing this info and your solution. However this needs a proper fix, just don't how to provide it at this time. Thanks again for reporting this @code4pay.

vitorbrandao commented 2 years ago

MopaBootstrapBundle support has been dropped in https://github.com/noiselabs/SmartyBundle/pull/82. It is no longer a requirement.