|
3 years ago | |
---|---|---|
ClientAPI | 3 years ago | |
Controller | 3 years ago | |
Crypto | 3 years ago | |
DependencyInjection | 3 years ago | |
Entity | 3 years ago | |
EntityListener | 3 years ago | |
LearningModels | 3 years ago | |
Package | 3 years ago | |
Player/SCORM2004 | 3 years ago | |
Repository/Scorm2004 | 3 years ago | |
Resources | 3 years ago | |
Services | 3 years ago | |
Tests | 3 years ago | |
.gitignore | 3 years ago | |
LICENSE | 3 years ago | |
LogiproSCORMBundle.php | 3 years ago | |
README.md | 3 years ago | |
composer.json | 3 years ago | |
phpunit.xml.dist | 3 years ago |
Assume you have acces to SCORMBundle authorized packagist by adding following lines in your composer:
"repositories": [{
"type": "composer",
"url": "https://satis.logipro.com"
}]
Open a command console, enter your project directory and execute:
$ composer require Logipro/SCORMBundle:dev-master
Doctrine will be installed if it was not.
So, if Doctrine has just been installed make sure to configure .env for database connexion. Particulary, set values for:
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
then create database and update schema
php bin/console doctrine:database:create
php bin/console doctrine:schema:update --force
Package resources access has cookie authentification. It allows application access only to user owning resources. For instance none would be able to access diurecly by url. (example : http://yourdomaine/content/SeqPostSCORM20044th/imsmanifest.xml will return a 403)
You must configure the following things :
logipro_scorm:
package_folder: '%kernel.project_dir%/private/packages'
content_folder: '%kernel.project_dir%/public/content'
content_url_prefix: '/lms/content'
A special .htacces will be autogenerated in content_folder and url_prefix will be used to create url access to ressources, like this : https://yourdomain/content_url_prefix/CODE/ressourceofapackage