Can Symfony Bundle be used in non-Symfony project (f.e. Zend)? -
can reuse bundle created in symfony in non-symfony project, f.e. zend? (or can reuse components?)
what services bundle?
a symfony bundle can included in other projects, via composer.json
& composer.lock
file - doesn't mean there useful code run within bundle however.
if there useful code part of bundle, can use directly, symfony bundle library include symfony-specific configuration.
best practice bundle put useful, common code, separate library (which used independently - such symfony calls 'component'), , enable code (for example creating symfony services, or configuration) bundle configuration.
there have been projects symfony bundles, , have configurations other frameworks well, such silex, , appropriate laravel configurations within same codebase.
Comments
Post a Comment