Commit 82405c67 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Import initial.

parent 4126dbb1
Copyright (c) 2005-2012, Zend Technologies USA, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of Zend Technologies USA, Inc. nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
ZendSkeletonApplication
=======================
Introduction
------------
This is a simple, skeleton application using the ZF2 MVC layer and module
systems. This application is meant to be used as a starting place for those
looking to get their feet wet with ZF2.
Installation
------------
Using Composer (recommended)
----------------------------
The recommended way to get a working copy of this project is to clone the repository
and use `composer` to install dependencies using the `create-project` command:
curl -s https://getcomposer.org/installer | php --
php composer.phar create-project --repository-url="http://packages.zendframework.com" zendframework/skeleton-application path/to/install
Alternately, clone the repository and manually invoke `composer` using the shipped
`composer.phar`:
cd my/project/dir
git clone git://github.com/zendframework/ZendSkeletonApplication.git
cd ZendSkeletonApplication
php composer.phar self-update
php composer.phar install
(The `self-update` directive is to ensure you have an up-to-date `composer.phar`
available.)
Another alternative for downloading the project is to grab it via `curl`, and
then pass it to `tar`:
cd my/project/dir
curl -#L https://github.com/zendframework/ZendSkeletonApplication/tarball/master | tar xz --strip-components=1
You would then invoke `composer` to install dependencies per the previous
example.
Using Git submodules
--------------------
Alternatively, you can install using native git submodules:
git clone git://github.com/zendframework/ZendSkeletonApplication.git --recursive
Virtual Host
------------
Afterwards, set up a virtual host to point to the public/ directory of the
project and you should be ready to go!
{
"name": "zendframework/skeleton-application",
"description": "Skeleton Application for ZF2",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"zf2"
],
"homepage": "http://framework.zend.com/",
"repositories": [{ "type": "composer", "url": "http://dev.unicaen.fr/packagist" }],
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": "2.1.4",
"unicaen/unicaen-auth": "dev-trunk"
},
"minimum-stability": "dev"
}
<?php
return array(
'modules' => array(
'Application',
'ZfcBase', 'DoctrineModule', 'DoctrineORMModule', 'ZfcUser', 'ZfcUserDoctrineORM', 'BjyAuthorize',
'UnicaenApp', 'AssetManager',
'UnicaenAuth',
),
'module_listener_options' => array(
'config_glob_paths' => array(
'config/autoload/{,*.}{global,local}.php',
),
'module_paths' => array(
'./module',
'./vendor',
),
),
);
About this directory:
=====================
By default, this application is configured to load all configs in
`./config/autoload/{,*.}{global,local}.php`. Doing this provides a
location for a developer to drop in configuration override files provided by
modules, as well as cleanly provide individual, application-wide config files
for things like database connections, etc.
<?php
return array(
);
<?php
return array(
'translator' => array(
'locale' => 'fr_FR',
),
'view_manager' => array(
'display_not_found_reason' => true,
'display_exceptions' => true,
),
);
<?php
return array(
'translator' => array(
'locale' => 'fr_FR',
),
'view_manager' => array(
'display_not_found_reason' => true,
'display_exceptions' => true,
),
);
<?php
/**
* UnicaenApp Global Configuration
*
* If you have a ./config/autoload/ directory set up for your project,
* drop this config file in it and change the values as you wish.
*/
$settings = array(
/**
* Informations concernant cette application
*/
'app_infos' => array(
'nom' => "UnicaenSkeletonApplication",
'desc' => "Squelette d'application Unicaen ZF2",
'version' => "0.0.1",
'date' => "19/04/2013",
'contact' => array('mail' => "dsi.applications@unicaen.fr", /*'tel' => "01 02 03 04 05"*/),
'mentionsLegales' => "http://www.unicaen.fr/outils-portail-institutionnel/mentions-legales/",
'informatiqueEtLibertes' => "http://www.unicaen.fr/outils-portail-institutionnel/informatique-et-libertes/",
),
);
/**
* You do not need to edit below this line
*/
return array(
'unicaen-app' => $settings,
);
\ No newline at end of file
<?php
/**
* UnicaenApp Global Configuration
*
* If you have a ./config/autoload/ directory set up for your project,
* drop this config file in it and change the values as you wish.
*/
$settings = array(
/**
* Informations concernant cette application
*/
'app_infos' => array(
'nom' => "SuperApplication",
'desc' => "Super application Unicaen ZF2",
'version' => "0.0.1",
'date' => "19/04/2013",
'contact' => array('mail' => "dsi.applications@unicaen.fr", /*'tel' => "01 02 03 04 05"*/),
'mentionsLegales' => "http://www.unicaen.fr/outils-portail-institutionnel/mentions-legales/",
'informatiqueEtLibertes' => "http://www.unicaen.fr/outils-portail-institutionnel/informatique-et-libertes/",
),
);
/**
* You do not need to edit below this line
*/
return array(
'unicaen-app' => $settings,
);
\ No newline at end of file
<?php
/**
* UnicaenApp Local Configuration
*
* If you have a ./config/autoload/ directory set up for your project,
* drop this config file in it and change the values as you wish.
*/
$settings = array(
/**
* Connexions aux annuaires LDAP.
* NB: Compte admin requis pour récupération coordonnées, affectations, rôles, etc.
*/
'ldap' => array(
'connection' => array(
'default' => array(
'params' => array(
'host' => 'ldap.unicaen.fr',
'username' => "uid=applidev,ou=system,dc=unicaen,dc=fr",
'password' => "Ifq1pdeS2of_7DC",
'baseDn' => "ou=people,dc=unicaen,dc=fr",
'bindRequiresDn' => true,
'accountFilterFormat' => "(&(objectClass=posixAccount)(supannAliasLogin=%s))",
)
)
)
),
/**
* Connexions aux bases de données via Doctrine (http://www.doctrine-project.org/).
*/
// 'doctrine' => array(
// 'connection' => array(
// 'orm_default' => array(
// 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
// 'params' => array(
// 'host' => 'localhost',
// 'port' => '3306',
// 'user' => 'root',
// 'password' => 'root',
// 'dbname' => 'squelette',
// )
// ),
// ),
// ),
/**
* Options concernant l'envoi de mail
*/
'mail' => array(
'transport_options' => array(
'host' => 'smtp.unicaen.fr',
'port' => 25,
),
'redirect_to' => array('dsi.applications@unicaen.fr'),
'do_not_send' => false,
),
);
/**
* You do not need to edit below this line
*/
return array(
'unicaen-app' => $settings,
);
\ No newline at end of file
<?php
/**
* UnicaenApp Local Configuration
*
* If you have a ./config/autoload/ directory set up for your project,
* drop this config file in it and change the values as you wish.
*/
$settings = array(
/**
* Connexions aux annuaires LDAP.
* NB: Compte admin requis pour récupération coordonnées, affectations, rôles, etc.
*/
'ldap' => array(
'connection' => array(
'default' => array(
'params' => array(
'host' => 'ldap.unicaen.fr',
'username' => "uid=xxxxxxxxx,ou=xxxxxxxxxx,dc=domain,dc=fr",
'password' => "xxxxxxxxxxxx",
'baseDn' => "ou=xxxxxxxxxxx,dc=domain,dc=fr",
'bindRequiresDn' => true,
'accountFilterFormat' => "(&(objectClass=posixAccount)(supannAliasLogin=%s))",
)
)
)
),
/**
* Connexions aux bases de données via Doctrine (http://www.doctrine-project.org/).
*/
// 'doctrine' => array(
// 'connection' => array(
// 'orm_default' => array(
// 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
// 'params' => array(
// 'host' => 'localhost',
// 'port' => '3306',
// 'user' => 'root',
// 'password' => 'root',
// 'dbname' => 'squelette',
// )
// ),
// ),
// ),
/**
* Options concernant l'envoi de mail
*/
'mail' => array(
'transport_options' => array(
'host' => 'smtp.unicaen.fr',
'port' => 25,
),
'redirect_to' => array('dsi.applications@unicaen.fr'),
'do_not_send' => false,
),
);
/**
* You do not need to edit below this line
*/
return array(
'unicaen-app' => $settings,
);
\ No newline at end of file
<?php
/**
* UnicaenAuth Global Configuration
*
* If you have a ./config/autoload/ directory set up for your project, you can
* drop this config file in it and change the values as you wish.
*/
$settings = array(
'bjyauthorize' => array(
// default role for unauthenticated users
'default_role' => false,
),
/**
* Mot de passe sésame, chiffré avec l'algo Bcrypt
* $bcrypt = new \Zend\Crypt\Password\Bcrypt();
* echo $bcrypt->create('votreMotDePasseSesame');
*/
'sesame_password' => false,
/**
* Flag indiquant si l'utilisateur authenitifié avec succès via l'annuaire LDAP doit
* être enregistré/mis à jour dans la table des utilisateurs de l'appli.
*/
'save_ldap_user_in_database' => false,
/**
* Enable registration
* Allows users to register through the website.
* Accepted values: boolean true or false
*/
'enable_registration' => false,
);
/**
* You do not need to edit below this line
*/
return array(
'unicaen-auth' => $settings,
'zfcuser' => array(
$k='enable_registration' => isset($settings[$k]) ? $settings[$k] : false,
),
);
\ No newline at end of file
<?php
/**
* UnicaenAuth Global Configuration
*
* If you have a ./config/autoload/ directory set up for your project, you can
* drop this config file in it and change the values as you wish.
*/
$settings = array(
'bjyauthorize' => array(
// default role for unauthenticated users
'default_role' => false,
),
/**
* Mot de passe sésame, chiffré avec l'algo Bcrypt
* $bcrypt = new \Zend\Crypt\Password\Bcrypt();
* echo $bcrypt->create('votreMotDePasseSesame');
*/
'sesame_password' => false,
/**
* Flag indiquant si l'utilisateur authenitifié avec succès via l'annuaire LDAP doit
* être enregistré/mis à jour dans la table des utilisateurs de l'appli.
*/
'save_ldap_user_in_database' => false,
/**
* Enable registration
* Allows users to register through the website.
* Accepted values: boolean true or false
*/
'enable_registration' => false,
);
/**
* You do not need to edit below this line
*/
return array(
'unicaen-auth' => $settings,
'zfcuser' => array(
$k='enable_registration' => isset($settings[$k]) ? $settings[$k] : false,
),
);
\ No newline at end of file
<?php
/**
* UnicaenAuth Configuration
*
* If you have a ./config/autoload/ directory set up for your project, you can
* drop this config file in it and change the values as you wish.
*/
$settings = array(
/**
* Paramètres de connexion au serveur CAS :
* - pour désactiver l'authentification CAS, le tableau 'cas' doit être vide.
* - pour l'activer, renseigner les paramètres.
*/
'cas' => array(
// 'connection' => array(
// 'default' => array(
// 'params' => array(
// 'hostname' => 'cas.unicaen.fr',
// 'port' => 443,
// 'version' => "2.0",
// 'uri' => "",
// 'debug' => false,
// ),
// ),
// ),
),
/**
* Mot de passe sésame, chiffré avec l'algo Bcrypt
* $bcrypt = new \Zend\Crypt\Password\Bcrypt();
* echo $bcrypt->create('votreMotDePasseSesame');
*/
'sesame_password' => '$2y$14$jbCVltklcys8TQj3hu30.OcKMi7rtUgmu3eo/nxMXynYvcZ5iHF8q',
);
/**
* You do not need to edit below this line
*/
return array(
'unicaen-auth' => $settings,
);
\ No newline at end of file
<?php
/**
* UnicaenAuth Configuration
*
* If you have a ./config/autoload/ directory set up for your project, you can
* drop this config file in it and change the values as you wish.
*/
$settings = array(
/**
* Paramètres de connexion au serveur CAS :
* - pour désactiver l'authentification CAS, le tableau 'cas' doit être vide.
* - pour l'activer, renseigner les paramètres.
*/
'cas' => array(
// 'connection' => array(
// 'default' => array(
// 'params' => array(
// 'hostname' => 'cas.unicaen.fr',
// 'port' => 443,
// 'version' => "2.0",
// 'uri' => "",
// 'debug' => false,
// ),
// ),
// ),
),
/**
* Mot de passe sésame, chiffré avec l'algo Bcrypt
* $bcrypt = new \Zend\Crypt\Password\Bcrypt();
* echo $bcrypt->create('votreMotDePasseSesame');
*/
'sesame_password' => '$2y$14$jbCVltklcys8TQj3hu30.OcKMi7rtUgmu3eo/nxMXynYvcZ5iHF8q',
);
/**
* You do not need to edit below this line
*/
return array(
'unicaen-auth' => $settings,
);
\ No newline at end of file
<?php
return array(
'zenddevelopertools' => array(
/**
* General Profiler settings
*/
'profiler' => array(
/**
* Enables or disables the profiler.
*
* Expects: boolean
* Default: false
*/
'enabled' => true,
/**
* Enables or disables the strict mode. If the strict mode is
* enabled, any error will throw an exception, otherwise all
* errors will be added to the report (and shown in the toolbar).
*
* Expects: boolean
* Default: true
*/
'strict' => false,
/**
* If enabled, the profiler tries to flush the content before the it
* starts collecting data. This option will be ignored if the Toolbar
* is enabled.
*
* Note: The flush listener listens to the MvcEvent::EVENT_FINISH event
* with a priority of -9400. You have to disbale this function if
* you wish to modify the output with a lower priority.
*
* Expects: boolean
* Default: false
*/
'flush_early' => false,
/**
* The cache directory is used in the version check and for every storage
* type that writes to the disk.
*
* Note: The default value assumes that the current working directory is the
* application root.
*
* Expects: string
* Default: 'data/cache'
*/
'cache_dir' => 'data/cache',
/**
* If a matches is defined, the profiler will be disabled if the
* request does not match the pattern.
*
* Example: 'matcher' => array('ip' => '127.0.0.1')
* OR
* 'matcher' => array('url' => array('path' => '/admin')
*
* Note: The matcher is not implemented yet!
*/
'matcher' => array(),
/**
* Contains a list with all collector the profiler should run.
* Zend Developer Tools ships with 'db' (Zend\Db), 'time', 'event', 'memory',
* 'exception', 'request' and 'mail' (Zend\Mail). If you wish to disable a default
* collector, simply set the value to null or false.
*
* Example: 'collectors' => array('db' => null)
*
* Expects: array
*/
'collectors' => array(),
),
/**
* General Toolbar settings
*/
'toolbar' => array(
/**
* Enables or disables the Toolbar.
*
* Expects: boolean
* Default: false
*/
'enabled' => true,
/**
* If enabled, every empty collector will be hidden.
*
* Expects: boolean
* Default: false
*/
'auto_hide' => false,
/**
* The Toolbar position.
*
* Expects: string ('bottom' or 'top')
* Default: bottom
*/
'position' => 'bottom',
/**
* If enabled, the Toolbar will check if your current Zend Framework version
* is up-to-date.
*
* Note: The check will only occur once every hour.
*
* Expects: boolean