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
Constant | Visibility | Type | Value |
---|---|---|---|
TABLE_REVIEWS | public | string | ’schema.table.reviews’ |
TABLE_QUEUES | public | string | ’schema.table.queue’ |
ROLE_SCHEMA | public | string | ’schema.roles’ |
CUSTOMER_ROLE | public | string | ’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:
Parameter | Type | Description |
---|---|---|
$container | \Pimple\Container | The DI container for registering services. |
Automatically generated on 2025-01-21