php - Develop a third-party bundle (or library) in local -
i want develop public , third-party bundle symfony. test bundle during development, need functional symfony installation. need mimic composer installation of bundle in symfony test application.
the problem is, best way achieve ? wonderful if composer let define local repository, , without need commit on package side composer update
on symfony app side each time want test bundle. solution i'm explaining here explained here : http://tech.vg.no/2014/11/25/using-local-packages-as-composer-dependencies/
this best solution have found , don't see lot of literature that. call "symfony 3rd-party bundles developers": how develop , test bundles during development?
just clarify comment app/autoload.php, symfony 2 gives little hook allow customizing autoload process:
// app/autoload.php $loader = require __dir__.'/../vendor/autoload.php'; $loader->add('cerad', __dir__ . '/../../cerad2/src'); annotationregistry::registerloader(array($loader, 'loadclass')); return $loader;
so in above case cerad2 library located somewhere else on file system used.
is better adjusting test app's composer file? not though come in handy. use whichever approach works best you.
Comments
Post a Comment