bartko-s / stefano-tree

Framework agnostic Nested Set (MPTT) implementation for PHP
https://bartko-s.github.io/stefano-tree
BSD 3-Clause "New" or "Revised" License
28 stars 8 forks source link

Simplify NestedSet::__construct #14

Closed guilhermeaiolfi closed 6 years ago

guilhermeaiolfi commented 6 years ago

Although it says in the README that it doesn't have any dependencies, the way it's today, it needs Doctrine and Zend\Db. It needs to be installed to be able to use the NestedSet class. I think that class only needs to get an instance of an AdapterInterface and everything else should be handled outside of this class.

What do you think?

bartko-s commented 6 years ago

Hi @guilhermeaiolfi . No doctrine-dbal, zend1 or zend2 is not required. Library works without this dependencies. Probably you do something wrong.