SilverCart\ORM\Connect\PDOConnector
PDO driver database connector.
Extends the original SilverStripe PDO driver by enabling SSL encrypted connections
without the need of client key and certificate.
To enable the SSL connection, set up the SS_DATABASE_SSL_CA environment configuration
property in your .env file.
There is a new, optional environment configuration property
SS_DATABASE_SSL_VERIFY_SERVER_CERT (bool) to disable the verification for self
signed server certificates.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2020 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
Hierarchy
Extends
- SilverStripe\ORM\Connect\PDOConnector
Methods
public
- connect() — Connects to the database.