Schema

Manages the registration of database schema-related services and roles.

This container handles:

  • Database table schema for reviews and queues.
  • User roles, including custom roles like “Customer.”
  • WordPress hooks for table registration and role initialization.
  • Full name: \BigCommerce\Container\Schema
  • Parent class: Provider

Constants

ConstantVisibilityTypeValue
TABLE_REVIEWSpublicstring’schema.table.reviews’
TABLE_QUEUESpublicstring’schema.table.queue’
ROLE_SCHEMApublicstring’schema.roles’
CUSTOMER_ROLEpublicstring’schema.roles.customer’

Methods

register

Registers database schema and roles into the container.

public register(\Pimple\Container $container): mixed

Services registered:

  • Reviews Table schema.
  • Queue Table schema.
  • Customer Role.
  • User Roles schema.

Hooks registered:

  • plugins_loaded: Registers database tables.
  • admin_init: Registers user roles.

Parameters:

ParameterTypeDescription
$container\Pimple\ContainerThe DI container for registering services.


Automatically generated on 2025-01-21