Prepare work on libraries

This commit is contained in:
Michael RICOIS 2016-01-27 17:00:04 +00:00
parent fcc55646ab
commit dfce60d65f
3 changed files with 45 additions and 5 deletions

View File

@ -207,7 +207,6 @@ class DocumentationController extends Zend_Controller_Action
if (file_exists($fichier)){
$sourceCode = file_get_contents($fichier);
require_once 'Vendors/geshi/geshi.php';
$geshi = new GeSHi($sourceCode, $langage);
$geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
$sourceHighlight = $geshi->parse_code();

View File

@ -2,13 +2,15 @@
"name": "scores/webservice",
"description": "Webservice API",
"require": {
"zendframework/zendframework1": "^1.12"
"zendframework/zendframework1": "^1.12",
"geshi/geshi": "dev-master"
},
"include-path": ["library/"],
"autoload": {
"classmap": [
"application/",
"library/Application/",
"library/Metier/",
"library/Scores/",
"library/SdMetier/"
]

45
composer.lock generated
View File

@ -4,9 +4,46 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "a0b948f6534a551eae550de22636a189",
"content-hash": "2cf99e4e0141c5d206dc22b06c6acd30",
"hash": "9dfabcd79bf953c5c15bfbcae71c1b8a",
"content-hash": "afcae0beeea0527e5823708ba9a42a31",
"packages": [
{
"name": "geshi/geshi",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/GeSHi/geshi-1.0.git",
"reference": "d9cfd3e0cc9b24e6bd3045a4d222e651e68accd8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/GeSHi/geshi-1.0/zipball/d9cfd3e0cc9b24e6bd3045a4d222e651e68accd8",
"reference": "d9cfd3e0cc9b24e6bd3045a4d222e651e68accd8",
"shasum": ""
},
"type": "library",
"autoload": {
"classmap": [
"src/geshi/",
"src/geshi.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "Benny Baumann",
"email": "BenBE@geshi.org",
"homepage": "http://blog.benny-baumann.de/",
"role": "Developer"
}
],
"description": "Generic Syntax Highlighter",
"homepage": "http://qbnz.com/highlighter/",
"time": "2014-11-03 21:20:34"
},
{
"name": "zendframework/zendframework1",
"version": "1.12.17",
@ -58,7 +95,9 @@
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"stability-flags": {
"geshi/geshi": 20
},
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],