getContainer(); // Install repository table. // Create the table with BerlinDB. // Call maybe_upgrade() immediately instead of waiting for admin_init. $table = new Database\Table; $table->maybe_upgrade(); // Repository. $container->share( 'transaction-repository', TransactionRepository::class ); } /** * {@inheritdoc} */ public function register() { $container = $this->getContainer(); // Observer. $container->share( 'transaction-observer', TransactionObserver::class ) ->withArgument( $container->get( 'transaction-repository' ) ) ->withArgument( $container->get( 'stripe-connect-application-fee' ) ); } }