docs: how to create factory with different scope (#1440)
docs: how to create factory with different scope (#1440)

* fix(syntax): toFactory does not work with Request scope

* fix(syntax): tests for issues 1297

* fix(syntax): make solution backward compatible

* fix(syntax): changed interfaces

* fix(syntax): added same change to toProvider

* revert(syntax): changes to toProvider & toFactory

* docs(syntax): Updated documentation
inversify/InversifyJS,inversify/InversifyJS