berlindb / core

All of the required core code
MIT License
252 stars 27 forks source link

Make BerlinDB PSR-4 compatible #92

Closed szepeviktor closed 3 years ago

szepeviktor commented 3 years ago

@JJJ More Alive! Included autoloader.

szepeviktor commented 3 years ago

Test the autoloader:

<?php

define( 'ABSPATH', '' );
class WP_Meta_Query {}
require 'autoloader.php';
new BerlinDB\Database\Schema();
new BerlinDB\Database\Queries\Compare();
Tabrisrp commented 3 years ago

Couldn't it be autoloaded via composer directly by adding the composer.json file and the required directives?

szepeviktor commented 3 years ago

Couldn't it be autoloaded via composer directly

Yes it could. I've notices many projects load BerlinDB with require.

danieliser commented 3 years ago

@szepeviktor I believe this duplicates the work that was already merged into the release/2.0 branch: https://github.com/berlindb/core/pull/57

szepeviktor commented 3 years ago

Thank you. Yes, it does.