reactphp / filesystem

Evented filesystem access.
MIT License
135 stars 40 forks source link

Move stream factory creation to node #51

Closed ghost closed 5 years ago

ghost commented 5 years ago

This PR is a split of the original PR #45 (the original PR shall stay open until completely done).

This PR moves the usage of StreamFactory::create from Adapter::open to Node\File::open, which makes the adapters compatible to the adapter interface. I have also gone ahead and replaced boolean with bool to make PHP code assistance tools happy (since technically boolean is seen as class).

WyriHaximus commented 5 years ago

@clue ping