( ! ) Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/php7cookbook/source/Application/Database/Connection.php on line 48
( ! ) Error: Using $this when not in object context in /var/www/html/php7cookbook/source/Application/Database/Connection.php on line 48
Call Stack
#TimeMemoryFunctionLocation
10.0004357600{main}( ).../chap_04_oop_factory_pattern_example.php:0
20.0004357632Application\Database\Connection::factory( $driver = 'mysql', $dbname = 'php7cookbook', $host = 'localhost', $user = 'test', $pwd = 'password', $options = ??? ).../chap_04_oop_factory_pattern_example.php:7