Skip to content

Commit

Permalink
Corrects setup file.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstandiford committed Jul 12, 2021
1 parent 40cf6a9 commit d1fde3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions underpin-berlin-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exit;
}

add_action( 'underpin/before_setup', function ( $instance ) {
add_action( 'underpin/before_setup', function ( $file, $class ) {
if ( ! defined( 'UNDERPIN_BERLIN_DB_PATH' ) ) {
define( 'UNDERPIN_BERLIN_DB_PATH', trailingslashit( __DIR__ ) );
}
Expand All @@ -13,7 +13,7 @@
require_once( UNDERPIN_BERLIN_DB_PATH . 'lib/factories/Database_Model_Instance.php' );
require_once( UNDERPIN_BERLIN_DB_PATH . 'lib/factories/Database_Model_With_Meta_Instance.php' );

$instance->loaders()->add( 'berlin_db', [
Underpin\underpin()->get( $file, $class )->loaders()->add( 'berlin_db', [
'registry' => 'Underpin_BerlinDB\Loaders\Database'
] );
}, 20 );
}, 20, 2 );

0 comments on commit d1fde3d

Please sign in to comment.