C
C
Caelwyn2018-02-27 13:22:29
Composer
Caelwyn, 2018-02-27 13:22:29

Isolated namespaces in composer?

You need to do something so that the code from the namespace Foo\One can only use classes from this namespace. And the code from Foo\Global could use everything. Such isolation.
I did not find anything similar in the documentation of the composer. Nobody knows how this can be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ivankomolin, 2018-02-27
@ivankomolin

It seemed to me that one of the meanings of namespaces is isolation.
And your tasks seem to be solved by default:
1. The code from Foo\One can only use classes from this namespace.
2. And the code from Foo\Global can use everything by adding the required class through use.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question