mickaelandrieu / doctrineorm-skill
Installs: 17
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:jarvis-skill
Requires
- doctrine/orm: ~2.5
Requires (Dev)
- phpunit/phpunit: 4.7.*
This package is auto-updated.
Last update: 2020-02-05 08:18:52 UTC
README
Installation
you need to install it using composer and then be sure that this configuration is available when Jarvis Application is started:
<?php /* config.php */ $config = [ 'doctrine' => [ 'db' => [ 'dbname' => 'backbee', 'user' => 'root', 'password' => 'A1nges6!', 'host' => 'localhost', 'driver' => 'pdo_mysql', ], 'orm' => [ 'debug' => false, 'entity_path' => __DIR__.'/src/Entity' ] ] ];
For instance, you can create a config.php
file at the root of your project and then
require or include it in your front controller.
<?php require_once('./vendor/autoload.php'); require_once('./config.php'); use Jarvis\Jarvis; /* ... */ $response = $jarvis->analyze(); $response->send();