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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -