Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When we introduced the use of Composer classmaps for autoloading in df6f5d0, we lost the ability to define custom spouts without dumping the autoloader. PSR-4 would fix this issue but at the time I came to conclusion we would have to change selfoss file structure to support it. Since that assumption seems to be false, we are switching to PSR-4, thus having the cake and eating it too. The only caveat is the need for more strict file naming conventions. Closes: #958 \### Upgrading (developers) If you use any custom classes like spouts, make sure they follow the [PSR-4], namely the namespace should match the file path (even in letter case). For example, if you have custom spout class named `PrivateSpout` in `spouts\private` namespace, it will have to be located in `spouts/private/PrivateSpout.php`. This also means each file can only contain a single class. Once you checked the compliance, run `composer dump-autoload -o` to switch to PSR-4 autoloader. [PSR-4]: http://www.php-fig.org/psr/psr-4/
- Loading branch information