svg
This commit is contained in:
parent
c3a3fbfec8
commit
05a2fe97bc
|
@ -112,7 +112,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- MODULE CRON -->
|
<!-- MODULE CRON -->
|
||||||
<variable type="oui/non" name='ninegate_activate_cron' description='Activer le module CRON' mandatory='True'>
|
<variable type="oui/non" name='ninegate_activate_cron' description='Activer le module CRON' mandatory='True'>
|
||||||
<value>oui</value>
|
<value>oui</value>
|
||||||
|
@ -120,6 +119,14 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- MODULE WEBSOCKET -->
|
||||||
|
<variable type="oui/non" name='ninegate_activate_websocket' description='Activer le module WEBSOCKET' mandatory='True'>
|
||||||
|
<value>oui</value>
|
||||||
|
</variable>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- LIMESURVEY -->
|
<!-- LIMESURVEY -->
|
||||||
<variable type="oui/non" name='ninegate_activate_widlimesurvey' description='Activer le widget Limesurvey' mandatory='True'>
|
<variable type="oui/non" name='ninegate_activate_widlimesurvey' description='Activer le widget Limesurvey' mandatory='True'>
|
||||||
<value>non</value>
|
<value>non</value>
|
||||||
|
@ -129,9 +136,6 @@
|
||||||
<variable type='string' name='ninegate_widlimesurvey_apikey' description='API Key de votre Limesurvey' mandatory='True' />
|
<variable type='string' name='ninegate_widlimesurvey_apikey' description='API Key de votre Limesurvey' mandatory='True' />
|
||||||
<variable type='string' name='ninegate_widlimesurvey_syncenvole' description='URL Posh-Profil pour synchronisation Limesurvey' mandatory='True' />
|
<variable type='string' name='ninegate_widlimesurvey_syncenvole' description='URL Posh-Profil pour synchronisation Limesurvey' mandatory='True' />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- MOODLE -->
|
<!-- MOODLE -->
|
||||||
<variable type="oui/non" name='ninegate_activate_widmoodle' description='Activer le widget Moodle' mandatory='True'>
|
<variable type="oui/non" name='ninegate_activate_widmoodle' description='Activer le widget Moodle' mandatory='True'>
|
||||||
<value>non</value>
|
<value>non</value>
|
||||||
|
@ -140,17 +144,12 @@
|
||||||
<variable type='string' name='ninegate_widmoodle_apikey' description='API Key de votre Moodle' mandatory='True' />
|
<variable type='string' name='ninegate_widmoodle_apikey' description='API Key de votre Moodle' mandatory='True' />
|
||||||
<variable type='string' name='ninegate_widmoodle_syncenvole' description='URL Posh-Profil pour synchronisation Moodle' mandatory='True' />
|
<variable type='string' name='ninegate_widmoodle_syncenvole' description='URL Posh-Profil pour synchronisation Moodle' mandatory='True' />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- OPENSONDAGE -->
|
<!-- OPENSONDAGE -->
|
||||||
<variable type="oui/non" name='ninegate_activate_widopensondage' description='Activer le widget Opensondage' mandatory='True'>
|
<variable type="oui/non" name='ninegate_activate_widopensondage' description='Activer le widget Opensondage' mandatory='True'>
|
||||||
<value>non</value>
|
<value>non</value>
|
||||||
</variable>
|
</variable>
|
||||||
<variable type='string' name='ninegate_widopensondage_url' description='URL complète de votre Opensondage' mandatory='True' />
|
<variable type='string' name='ninegate_widopensondage_url' description='URL complète de votre Opensondage' mandatory='True' />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- PIWIK -->
|
<!-- PIWIK -->
|
||||||
<variable type="oui/non" name='ninegate_activate_widpiwik' description='Activer le widget Piwik' mandatory='True'>
|
<variable type="oui/non" name='ninegate_activate_widpiwik' description='Activer le widget Piwik' mandatory='True'>
|
||||||
<value>non</value>
|
<value>non</value>
|
||||||
|
@ -158,7 +157,6 @@
|
||||||
<variable type='string' name='ninegate_widpiwik_url' description='URL complète de votre Piwik' mandatory='True' />
|
<variable type='string' name='ninegate_widpiwik_url' description='URL complète de votre Piwik' mandatory='True' />
|
||||||
<variable type='string' name='ninegate_widpiwik_syncenvole' description='URL Posh-Profil pour synchronisation Piwik' mandatory='True' />
|
<variable type='string' name='ninegate_widpiwik_syncenvole' description='URL Posh-Profil pour synchronisation Piwik' mandatory='True' />
|
||||||
|
|
||||||
|
|
||||||
<!-- WORDPRESS -->
|
<!-- WORDPRESS -->
|
||||||
<variable type="oui/non" name='ninegate_activate_widwordpress' description='Activer le widget Wordpress' mandatory='True'>
|
<variable type="oui/non" name='ninegate_activate_widwordpress' description='Activer le widget Wordpress' mandatory='True'>
|
||||||
<value>non</value>
|
<value>non</value>
|
||||||
|
@ -168,6 +166,17 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- WEBSOCKET -->
|
||||||
|
<variable type='string' name='ninegate_websocket_url' description='Host du serveur Websocket' mandatory='True' />
|
||||||
|
<variable type='string' name='ninegate_websocket_portexterne' description='Pot de commuinication externe du serveur Websocket' mandatory='True' >
|
||||||
|
<value>5555</value>
|
||||||
|
</variable>
|
||||||
|
<variable type='string' name='ninegate_websocket_portinterne' description='Pot de commuinication externe du serveur Websocket' mandatory='True'>
|
||||||
|
<value>5556</value>
|
||||||
|
</variable>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- EMAIL -->
|
<!-- EMAIL -->
|
||||||
<variable type='string' name='ninegate_noreply' description='Adresse mail utilisé pour le noreply' mandatory='True' />
|
<variable type='string' name='ninegate_noreply' description='Adresse mail utilisé pour le noreply' mandatory='True' />
|
||||||
<variable type='string' name='ninegate_smtphost' description='Host du serveur SMTP' />
|
<variable type='string' name='ninegate_smtphost' description='Host du serveur SMTP' />
|
||||||
|
@ -193,6 +202,7 @@
|
||||||
<separator name="ninegate_niveau01label">Paramètres associés aux look de l'application</separator>
|
<separator name="ninegate_niveau01label">Paramètres associés aux look de l'application</separator>
|
||||||
<separator name="ninegate_activate_portal">Paramètres associés aux modules à activer</separator>
|
<separator name="ninegate_activate_portal">Paramètres associés aux modules à activer</separator>
|
||||||
<separator name="ninegate_activate_widlimesurvey">Paramètres associés au Portail</separator>
|
<separator name="ninegate_activate_widlimesurvey">Paramètres associés au Portail</separator>
|
||||||
|
<separator name="ninegate_websocket_url">Paramètres associés au Serveur WEBSOCKET</separator>
|
||||||
<separator name="ninegate_noreply">Paramètres associés aux Mails</separator>
|
<separator name="ninegate_noreply">Paramètres associés aux Mails</separator>
|
||||||
<separator name="ninegate_db_mode">Paramètres associés à la Base de Données</separator>
|
<separator name="ninegate_db_mode">Paramètres associés à la Base de Données</separator>
|
||||||
</separators>
|
</separators>
|
||||||
|
@ -249,6 +259,7 @@
|
||||||
<target type='variable'>ninegate_activate_notice</target>
|
<target type='variable'>ninegate_activate_notice</target>
|
||||||
<target type='variable'>ninegate_activate_syncenvole</target>
|
<target type='variable'>ninegate_activate_syncenvole</target>
|
||||||
<target type='variable'>ninegate_activate_cron</target>
|
<target type='variable'>ninegate_activate_cron</target>
|
||||||
|
<target type='variable'>ninegate_activate_websocket</target>
|
||||||
|
|
||||||
<target type='variable'>ninegate_noreply</target>
|
<target type='variable'>ninegate_noreply</target>
|
||||||
<target type='variable'>ninegate_smtphost</target>
|
<target type='variable'>ninegate_smtphost</target>
|
||||||
|
@ -365,6 +376,24 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- AFFICHAGE EN FONCTION DU MODULE WEBSOCKET -->
|
||||||
|
<condition name='hidden_if_in' source='ninegate_activate_websocket'>
|
||||||
|
<param>non</param>
|
||||||
|
|
||||||
|
<target type='variable'>ninegate_websocket_url</target>
|
||||||
|
<target type='variable'>ninegate_websocket_portinterne</target>
|
||||||
|
<target type='variable'>ninegate_websocket_portexterne</target>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<fill name='calc_multi_condition' target='ninegate_websocket_url'>
|
||||||
|
<param>oui</param>
|
||||||
|
<param type='eole' name='condition_1' hidden='False'>activer_apache</param>
|
||||||
|
<param type='eole' name='match' hidden='False'>web_url</param>
|
||||||
|
<param name='default_mismatch'>None</param>
|
||||||
|
</fill>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- AFFICHAGE EN FONCTION DU WIDGET LIMESURVEY -->
|
<!-- AFFICHAGE EN FONCTION DU WIDGET LIMESURVEY -->
|
||||||
<fill name='calc_multi_condition' target='ninegate_activate_widlimesurvey'>
|
<fill name='calc_multi_condition' target='ninegate_activate_widlimesurvey'>
|
||||||
<param>oui</param>
|
<param>oui</param>
|
||||||
|
|
|
@ -136,10 +136,14 @@ gos_web_socket:
|
||||||
shared_config: true
|
shared_config: true
|
||||||
server:
|
server:
|
||||||
port: %websocket_port% #The port the socket server will listen on
|
port: %websocket_port% #The port the socket server will listen on
|
||||||
host: %weburl% #The host ip to bind to
|
host: %websocket_host% #The host ip to bind to
|
||||||
router:
|
router:
|
||||||
resources:
|
resources:
|
||||||
- "@CadolesWebsocketBundle/Resources/config/topic.yml"
|
- "@CadolesWebsocketBundle/Resources/config/topic.yml"
|
||||||
|
pushers:
|
||||||
|
wamp:
|
||||||
|
host: %websocket_host%
|
||||||
|
port: %websocket_portinterne%
|
||||||
|
|
||||||
# ckeditor configuration
|
# ckeditor configuration
|
||||||
ivory_ck_editor:
|
ivory_ck_editor:
|
||||||
|
|
|
@ -41,7 +41,10 @@ security:
|
||||||
check_path: /saml/acs
|
check_path: /saml/acs
|
||||||
|
|
||||||
access_control:
|
access_control:
|
||||||
- { path: ^/websocket, roles: [ROLE_ADMIN, ROLE_MODO, ROLE_USER] }
|
- { path: ^/websocket, roles: [ROLE_ADMIN, ROLE_MODO, ROLE_ANIM, ROLE_USER] }
|
||||||
- { path: ^/user, roles: [ROLE_ADMIN, ROLE_MODO, ROLE_USER] }
|
- { path: ^/user/group/submit, roles: [ROLE_ADMIN, ROLE_MODO, ROLE_ANIM] }
|
||||||
|
- { path: ^/user/group/update, roles: [ROLE_ADMIN, ROLE_MODO, ROLE_ANIM] }
|
||||||
|
- { path: ^/user/group/delete, roles: [ROLE_ADMIN, ROLE_MODO, ROLE_ANIM] }
|
||||||
|
- { path: ^/user, roles: [ROLE_ADMIN, ROLE_MODO, ROLE_ANIM, ROLE_USER] }
|
||||||
- { path: ^/config, roles: [ROLE_ADMIN, ROLE_MODO] }
|
- { path: ^/config, roles: [ROLE_ADMIN, ROLE_MODO] }
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ twig:
|
||||||
cron_activate: %cron_activate%
|
cron_activate: %cron_activate%
|
||||||
portal_activate: %portal_activate%
|
portal_activate: %portal_activate%
|
||||||
item_activate: %item_activate%
|
item_activate: %item_activate%
|
||||||
|
websocket_activate: %websocket_activate%
|
||||||
|
|
||||||
activate_widsonde: %activate_widsonde%
|
activate_widsonde: %activate_widsonde%
|
||||||
widsonde_url: %widsonde_url%
|
widsonde_url: %widsonde_url%
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
"doctrine/doctrine-migrations-bundle": "^1.2",
|
"doctrine/doctrine-migrations-bundle": "^1.2",
|
||||||
"doctrine/orm": "^2.5",
|
"doctrine/orm": "^2.5",
|
||||||
"egeloen/ckeditor-bundle": "^6.0",
|
"egeloen/ckeditor-bundle": "^6.0",
|
||||||
|
"gos/web-socket-bundle": "1.*",
|
||||||
"gregwar/captcha-bundle": "^2.0",
|
"gregwar/captcha-bundle": "^2.0",
|
||||||
"incenteev/composer-parameter-handler": "^2.0",
|
"incenteev/composer-parameter-handler": "^2.0",
|
||||||
"jasig/phpcas": "~1.3",
|
"jasig/phpcas": "~1.3",
|
||||||
|
|
|
@ -4,9 +4,62 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"hash": "f60fc0c21429506c604cf52a1c57f8b1",
|
"hash": "0430b523c39e2d254cfe1fb91666119b",
|
||||||
"content-hash": "ad29a4c36418b2be7c6f60297d160623",
|
"content-hash": "36178f772c0f0ff6bd5ac90edd474c25",
|
||||||
"packages": [
|
"packages": [
|
||||||
|
{
|
||||||
|
"name": "cboden/ratchet",
|
||||||
|
"version": "v0.4.1",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/ratchetphp/Ratchet.git",
|
||||||
|
"reference": "0d31f3a8ad4795fd48397712709e55cd07f51360"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/ratchetphp/Ratchet/zipball/0d31f3a8ad4795fd48397712709e55cd07f51360",
|
||||||
|
"reference": "0d31f3a8ad4795fd48397712709e55cd07f51360",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"guzzlehttp/psr7": "^1.0",
|
||||||
|
"php": ">=5.4.2",
|
||||||
|
"ratchet/rfc6455": "^0.2",
|
||||||
|
"react/socket": "^1.0 || ^0.8 || ^0.7 || ^0.6 || ^0.5",
|
||||||
|
"symfony/http-foundation": "^2.6|^3.0|^4.0",
|
||||||
|
"symfony/routing": "^2.6|^3.0|^4.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "~4.8"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Ratchet\\": "src/Ratchet"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Chris Boden",
|
||||||
|
"email": "cboden@gmail.com",
|
||||||
|
"role": "Developer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "PHP WebSocket library",
|
||||||
|
"homepage": "http://socketo.me",
|
||||||
|
"keywords": [
|
||||||
|
"Ratchet",
|
||||||
|
"WebSockets",
|
||||||
|
"server",
|
||||||
|
"sockets",
|
||||||
|
"websocket"
|
||||||
|
],
|
||||||
|
"time": "2017-12-12 00:49:31"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "composer/ca-bundle",
|
"name": "composer/ca-bundle",
|
||||||
"version": "1.1.4",
|
"version": "1.1.4",
|
||||||
|
@ -589,16 +642,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/doctrine-bundle",
|
"name": "doctrine/doctrine-bundle",
|
||||||
"version": "1.10.2",
|
"version": "1.10.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/doctrine/DoctrineBundle.git",
|
"url": "https://github.com/doctrine/DoctrineBundle.git",
|
||||||
"reference": "1f99e6645030542079c57d4680601a4a8778a1bd"
|
"reference": "907dafe1ba73c4c3b0f0ae8cfc1b9958c002e58c"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/1f99e6645030542079c57d4680601a4a8778a1bd",
|
"url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/907dafe1ba73c4c3b0f0ae8cfc1b9958c002e58c",
|
||||||
"reference": "1f99e6645030542079c57d4680601a4a8778a1bd",
|
"reference": "907dafe1ba73c4c3b0f0ae8cfc1b9958c002e58c",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -670,7 +723,7 @@
|
||||||
"orm",
|
"orm",
|
||||||
"persistence"
|
"persistence"
|
||||||
],
|
],
|
||||||
"time": "2019-02-06 13:18:04"
|
"time": "2019-04-04 08:03:53"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/doctrine-cache-bundle",
|
"name": "doctrine/doctrine-cache-bundle",
|
||||||
|
@ -1004,21 +1057,24 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/lexer",
|
"name": "doctrine/lexer",
|
||||||
"version": "v1.0.1",
|
"version": "1.0.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/doctrine/lexer.git",
|
"url": "https://github.com/doctrine/lexer.git",
|
||||||
"reference": "83893c552fd2045dd78aef794c31e694c37c0b8c"
|
"reference": "1febd6c3ef84253d7c815bed85fc622ad207a9f8"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c",
|
"url": "https://api.github.com/repos/doctrine/lexer/zipball/1febd6c3ef84253d7c815bed85fc622ad207a9f8",
|
||||||
"reference": "83893c552fd2045dd78aef794c31e694c37c0b8c",
|
"reference": "1febd6c3ef84253d7c815bed85fc622ad207a9f8",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.3.2"
|
"php": ">=5.3.2"
|
||||||
},
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "^4.5"
|
||||||
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
|
@ -1026,8 +1082,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": {
|
"psr-4": {
|
||||||
"Doctrine\\Common\\Lexer\\": "lib/"
|
"Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
@ -1048,13 +1104,16 @@
|
||||||
"email": "schmittjoh@gmail.com"
|
"email": "schmittjoh@gmail.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.",
|
"description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.",
|
||||||
"homepage": "http://www.doctrine-project.org",
|
"homepage": "https://www.doctrine-project.org/projects/lexer.html",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
"annotations",
|
||||||
|
"docblock",
|
||||||
"lexer",
|
"lexer",
|
||||||
"parser"
|
"parser",
|
||||||
|
"php"
|
||||||
],
|
],
|
||||||
"time": "2014-09-09 13:34:57"
|
"time": "2019-06-08 11:03:04"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/migrations",
|
"name": "doctrine/migrations",
|
||||||
|
@ -1330,30 +1389,25 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "evenement/evenement",
|
"name": "evenement/evenement",
|
||||||
"version": "v2.1.0",
|
"version": "v3.0.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/igorw/evenement.git",
|
"url": "https://github.com/igorw/evenement.git",
|
||||||
"reference": "6ba9a777870ab49f417e703229d53931ed40fd7a"
|
"reference": "531bfb9d15f8aa57454f5f0285b18bec903b8fb7"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/igorw/evenement/zipball/6ba9a777870ab49f417e703229d53931ed40fd7a",
|
"url": "https://api.github.com/repos/igorw/evenement/zipball/531bfb9d15f8aa57454f5f0285b18bec903b8fb7",
|
||||||
"reference": "6ba9a777870ab49f417e703229d53931ed40fd7a",
|
"reference": "531bfb9d15f8aa57454f5f0285b18bec903b8fb7",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.4.0"
|
"php": ">=7.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^6.0||^5.7||^4.8.35"
|
"phpunit/phpunit": "^6.0"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
|
||||||
"branch-alias": {
|
|
||||||
"dev-master": "2.0-dev"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": {
|
"psr-0": {
|
||||||
"Evenement": "src"
|
"Evenement": "src"
|
||||||
|
@ -1374,7 +1428,7 @@
|
||||||
"event-dispatcher",
|
"event-dispatcher",
|
||||||
"event-emitter"
|
"event-emitter"
|
||||||
],
|
],
|
||||||
"time": "2017-07-17 17:39:19"
|
"time": "2017-07-23 21:35:13"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "fig/link-util",
|
"name": "fig/link-util",
|
||||||
|
@ -1538,137 +1592,39 @@
|
||||||
],
|
],
|
||||||
"time": "2018-10-04 17:09:23"
|
"time": "2018-10-04 17:09:23"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "gos/ratchet",
|
|
||||||
"version": "v0.3.6",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/GeniusesOfSymfony/Ratchet.git",
|
|
||||||
"reference": "f72ee4f70f24da1fc232537088e6c368ae4211e0"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/GeniusesOfSymfony/Ratchet/zipball/f72ee4f70f24da1fc232537088e6c368ae4211e0",
|
|
||||||
"reference": "f72ee4f70f24da1fc232537088e6c368ae4211e0",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"guzzle/http": "^3.6",
|
|
||||||
"php": ">=5.3.9",
|
|
||||||
"react/socket": "^0.3 || ^0.4",
|
|
||||||
"symfony/http-foundation": "^2.2|^3.0|^4.0",
|
|
||||||
"symfony/routing": "^2.2|^3.0|^4.0"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"Ratchet\\": "src/Ratchet"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Chris Boden",
|
|
||||||
"email": "cboden@gmail.com",
|
|
||||||
"role": "Developer"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "PHP WebSocket library",
|
|
||||||
"homepage": "http://socketo.me",
|
|
||||||
"keywords": [
|
|
||||||
"Ratchet",
|
|
||||||
"WebSockets",
|
|
||||||
"server",
|
|
||||||
"sockets"
|
|
||||||
],
|
|
||||||
"time": "2017-12-12 16:15:11"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "gos/ratchet-stack",
|
|
||||||
"version": "v0.2.0",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/GeniusesOfSymfony/RatchetStack.git",
|
|
||||||
"reference": "a7dfc817bf8b786c575022e290ab0769dbf09814"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/GeniusesOfSymfony/RatchetStack/zipball/a7dfc817bf8b786c575022e290ab0769dbf09814",
|
|
||||||
"reference": "a7dfc817bf8b786c575022e290ab0769dbf09814",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"cboden/ratchet": "^0.3|^0.4",
|
|
||||||
"php": ">=5.3"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"extra": {
|
|
||||||
"branch-alias": {
|
|
||||||
"dev-master": "1.0.x-dev"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"Gos\\Component\\RatchetStack\\": "src/"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Johann Saunier",
|
|
||||||
"email": "johann_27@hotmail.fr"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Ratchet Stack",
|
|
||||||
"homepage": "https://github.com/GeniusesOfSymfony/RatchetStack",
|
|
||||||
"keywords": [
|
|
||||||
"Ratchet",
|
|
||||||
"application",
|
|
||||||
"stack"
|
|
||||||
],
|
|
||||||
"time": "2018-05-02 13:03:51"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "gos/web-socket-bundle",
|
"name": "gos/web-socket-bundle",
|
||||||
"version": "v1.8.11",
|
"version": "v1.8.13",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/GeniusesOfSymfony/WebSocketBundle.git",
|
"url": "https://github.com/GeniusesOfSymfony/WebSocketBundle.git",
|
||||||
"reference": "a26b71e9014a73b95ddbb02a813157563a296a48"
|
"reference": "016f4b49a16731945fc3ee1e0781f53167e393cf"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/GeniusesOfSymfony/WebSocketBundle/zipball/a26b71e9014a73b95ddbb02a813157563a296a48",
|
"url": "https://api.github.com/repos/GeniusesOfSymfony/WebSocketBundle/zipball/016f4b49a16731945fc3ee1e0781f53167e393cf",
|
||||||
"reference": "a26b71e9014a73b95ddbb02a813157563a296a48",
|
"reference": "016f4b49a16731945fc3ee1e0781f53167e393cf",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"gos/pnctl-event-loop-emitter": "~0.1",
|
"cboden/ratchet": "^0.4.1",
|
||||||
"gos/pubsub-router-bundle": "~0.2",
|
"gos/pnctl-event-loop-emitter": "^0.1",
|
||||||
"gos/ratchet": "~0.3.5",
|
"gos/pubsub-router-bundle": "^0.3",
|
||||||
"gos/ratchet-stack": "~0.1",
|
"gos/websocket-client": "^0.1",
|
||||||
"gos/websocket-client": "~0.1.0",
|
"ocramius/proxy-manager": "^1.0|^2.1",
|
||||||
"php": ">=5.4",
|
"php": ">=5.4",
|
||||||
"symfony/framework-bundle": "~2.3|~3.0"
|
"symfony/framework-bundle": "^2.3|^3.0|^4.0"
|
||||||
},
|
|
||||||
"replace": {
|
|
||||||
"cboden/ratchet": "~0.3.0"
|
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^4.8"
|
"phpunit/phpunit": "^4.8"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
|
"doctrine/cache": "* to use doctrine/cache as a client driver",
|
||||||
"ext-amqp": "*",
|
"ext-amqp": "*",
|
||||||
"ext-libev": "*",
|
"ext-libev": "*",
|
||||||
"ext-libevent": ">=0.0.5",
|
"ext-libevent": ">=0.0.5",
|
||||||
"ext-zmq": "*",
|
"ext-zmq": "*",
|
||||||
"ocramius/proxy-manager": "~1.0",
|
"symfony/cache": ">=3.1 to use symfony/cache as a client driver",
|
||||||
"symfony/proxy-manager-bridge": "~2.3"
|
"symfony/proxy-manager-bridge": "~2.3"
|
||||||
},
|
},
|
||||||
"type": "symfony-bundle",
|
"type": "symfony-bundle",
|
||||||
|
@ -1705,7 +1661,7 @@
|
||||||
"io",
|
"io",
|
||||||
"websocket"
|
"websocket"
|
||||||
],
|
],
|
||||||
"time": "2017-09-29 16:00:43"
|
"time": "2018-07-29 14:31:46"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "gos/websocket-client",
|
"name": "gos/websocket-client",
|
||||||
|
@ -1864,208 +1820,6 @@
|
||||||
],
|
],
|
||||||
"time": "2018-11-20 10:41:34"
|
"time": "2018-11-20 10:41:34"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "guzzle/common",
|
|
||||||
"version": "v3.9.2",
|
|
||||||
"target-dir": "Guzzle/Common",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/Guzzle3/common.git",
|
|
||||||
"reference": "2e36af7cf2ce3ea1f2d7c2831843b883a8e7b7dc"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/Guzzle3/common/zipball/2e36af7cf2ce3ea1f2d7c2831843b883a8e7b7dc",
|
|
||||||
"reference": "2e36af7cf2ce3ea1f2d7c2831843b883a8e7b7dc",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"php": ">=5.3.2",
|
|
||||||
"symfony/event-dispatcher": ">=2.1"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"extra": {
|
|
||||||
"branch-alias": {
|
|
||||||
"dev-master": "3.7-dev"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-0": {
|
|
||||||
"Guzzle\\Common": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"description": "Common libraries used by Guzzle",
|
|
||||||
"homepage": "http://guzzlephp.org/",
|
|
||||||
"keywords": [
|
|
||||||
"collection",
|
|
||||||
"common",
|
|
||||||
"event",
|
|
||||||
"exception"
|
|
||||||
],
|
|
||||||
"abandoned": "guzzle/guzzle",
|
|
||||||
"time": "2014-08-11 04:32:36"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "guzzle/http",
|
|
||||||
"version": "v3.9.2",
|
|
||||||
"target-dir": "Guzzle/Http",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/Guzzle3/http.git",
|
|
||||||
"reference": "1e8dd1e2ba9dc42332396f39fbfab950b2301dc5"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/Guzzle3/http/zipball/1e8dd1e2ba9dc42332396f39fbfab950b2301dc5",
|
|
||||||
"reference": "1e8dd1e2ba9dc42332396f39fbfab950b2301dc5",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"guzzle/common": "self.version",
|
|
||||||
"guzzle/parser": "self.version",
|
|
||||||
"guzzle/stream": "self.version",
|
|
||||||
"php": ">=5.3.2"
|
|
||||||
},
|
|
||||||
"suggest": {
|
|
||||||
"ext-curl": "*"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"extra": {
|
|
||||||
"branch-alias": {
|
|
||||||
"dev-master": "3.7-dev"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-0": {
|
|
||||||
"Guzzle\\Http": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Michael Dowling",
|
|
||||||
"email": "mtdowling@gmail.com",
|
|
||||||
"homepage": "https://github.com/mtdowling"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "HTTP libraries used by Guzzle",
|
|
||||||
"homepage": "http://guzzlephp.org/",
|
|
||||||
"keywords": [
|
|
||||||
"Guzzle",
|
|
||||||
"client",
|
|
||||||
"curl",
|
|
||||||
"http",
|
|
||||||
"http client"
|
|
||||||
],
|
|
||||||
"abandoned": "guzzle/guzzle",
|
|
||||||
"time": "2014-08-11 04:32:36"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "guzzle/parser",
|
|
||||||
"version": "v3.9.2",
|
|
||||||
"target-dir": "Guzzle/Parser",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/Guzzle3/parser.git",
|
|
||||||
"reference": "6874d171318a8e93eb6d224cf85e4678490b625c"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/Guzzle3/parser/zipball/6874d171318a8e93eb6d224cf85e4678490b625c",
|
|
||||||
"reference": "6874d171318a8e93eb6d224cf85e4678490b625c",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"php": ">=5.3.2"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"extra": {
|
|
||||||
"branch-alias": {
|
|
||||||
"dev-master": "3.7-dev"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-0": {
|
|
||||||
"Guzzle\\Parser": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"description": "Interchangeable parsers used by Guzzle",
|
|
||||||
"homepage": "http://guzzlephp.org/",
|
|
||||||
"keywords": [
|
|
||||||
"URI Template",
|
|
||||||
"cookie",
|
|
||||||
"http",
|
|
||||||
"message",
|
|
||||||
"url"
|
|
||||||
],
|
|
||||||
"abandoned": "guzzle/guzzle",
|
|
||||||
"time": "2014-02-05 18:29:46"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "guzzle/stream",
|
|
||||||
"version": "v3.9.2",
|
|
||||||
"target-dir": "Guzzle/Stream",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/Guzzle3/stream.git",
|
|
||||||
"reference": "60c7fed02e98d2c518dae8f97874c8f4622100f0"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/Guzzle3/stream/zipball/60c7fed02e98d2c518dae8f97874c8f4622100f0",
|
|
||||||
"reference": "60c7fed02e98d2c518dae8f97874c8f4622100f0",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"guzzle/common": "self.version",
|
|
||||||
"php": ">=5.3.2"
|
|
||||||
},
|
|
||||||
"suggest": {
|
|
||||||
"guzzle/http": "To convert Guzzle request objects to PHP streams"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"extra": {
|
|
||||||
"branch-alias": {
|
|
||||||
"dev-master": "3.7-dev"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-0": {
|
|
||||||
"Guzzle\\Stream": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Michael Dowling",
|
|
||||||
"email": "mtdowling@gmail.com",
|
|
||||||
"homepage": "https://github.com/mtdowling"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Guzzle stream wrapper component",
|
|
||||||
"homepage": "http://guzzlephp.org/",
|
|
||||||
"keywords": [
|
|
||||||
"Guzzle",
|
|
||||||
"component",
|
|
||||||
"stream"
|
|
||||||
],
|
|
||||||
"abandoned": "guzzle/guzzle",
|
|
||||||
"time": "2014-05-01 21:36:02"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "guzzlehttp/guzzle",
|
"name": "guzzlehttp/guzzle",
|
||||||
"version": "6.3.3",
|
"version": "6.3.3",
|
||||||
|
@ -2184,33 +1938,37 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "guzzlehttp/psr7",
|
"name": "guzzlehttp/psr7",
|
||||||
"version": "1.5.2",
|
"version": "1.6.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/guzzle/psr7.git",
|
"url": "https://github.com/guzzle/psr7.git",
|
||||||
"reference": "9f83dded91781a01c63574e387eaa769be769115"
|
"reference": "239400de7a173fe9901b9ac7c06497751f00727a"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/guzzle/psr7/zipball/9f83dded91781a01c63574e387eaa769be769115",
|
"url": "https://api.github.com/repos/guzzle/psr7/zipball/239400de7a173fe9901b9ac7c06497751f00727a",
|
||||||
"reference": "9f83dded91781a01c63574e387eaa769be769115",
|
"reference": "239400de7a173fe9901b9ac7c06497751f00727a",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.4.0",
|
"php": ">=5.4.0",
|
||||||
"psr/http-message": "~1.0",
|
"psr/http-message": "~1.0",
|
||||||
"ralouphie/getallheaders": "^2.0.5"
|
"ralouphie/getallheaders": "^2.0.5 || ^3.0.0"
|
||||||
},
|
},
|
||||||
"provide": {
|
"provide": {
|
||||||
"psr/http-message-implementation": "1.0"
|
"psr/http-message-implementation": "1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
"ext-zlib": "*",
|
||||||
"phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8"
|
"phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8"
|
||||||
},
|
},
|
||||||
|
"suggest": {
|
||||||
|
"zendframework/zend-httphandlerrunner": "Emit PSR-7 responses"
|
||||||
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.5-dev"
|
"dev-master": "1.6-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -2247,7 +2005,7 @@
|
||||||
"uri",
|
"uri",
|
||||||
"url"
|
"url"
|
||||||
],
|
],
|
||||||
"time": "2018-12-04 20:46:45"
|
"time": "2019-07-01 23:21:34"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "incenteev/composer-parameter-handler",
|
"name": "incenteev/composer-parameter-handler",
|
||||||
|
@ -2726,91 +2484,40 @@
|
||||||
],
|
],
|
||||||
"time": "2018-11-05 09:00:11"
|
"time": "2018-11-05 09:00:11"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "ocramius/package-versions",
|
|
||||||
"version": "1.2.0",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/Ocramius/PackageVersions.git",
|
|
||||||
"reference": "ad8a245decad4897cc6b432743913dad0d69753c"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/Ocramius/PackageVersions/zipball/ad8a245decad4897cc6b432743913dad0d69753c",
|
|
||||||
"reference": "ad8a245decad4897cc6b432743913dad0d69753c",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"composer-plugin-api": "^1.0",
|
|
||||||
"php": "~7.0"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"composer/composer": "^1.3",
|
|
||||||
"ext-zip": "*",
|
|
||||||
"humbug/humbug": "dev-master",
|
|
||||||
"phpunit/phpunit": "^6.4"
|
|
||||||
},
|
|
||||||
"type": "composer-plugin",
|
|
||||||
"extra": {
|
|
||||||
"class": "PackageVersions\\Installer",
|
|
||||||
"branch-alias": {
|
|
||||||
"dev-master": "2.0.x-dev"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"PackageVersions\\": "src/PackageVersions"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Marco Pivetta",
|
|
||||||
"email": "ocramius@gmail.com"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)",
|
|
||||||
"time": "2017-11-24 11:07:03"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "ocramius/proxy-manager",
|
"name": "ocramius/proxy-manager",
|
||||||
"version": "2.0.4",
|
"version": "1.0.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Ocramius/ProxyManager.git",
|
"url": "https://github.com/Ocramius/ProxyManager.git",
|
||||||
"reference": "a55d08229f4f614bf335759ed0cf63378feeb2e6"
|
"reference": "57e9272ec0e8deccf09421596e0e2252df440e11"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/Ocramius/ProxyManager/zipball/a55d08229f4f614bf335759ed0cf63378feeb2e6",
|
"url": "https://api.github.com/repos/Ocramius/ProxyManager/zipball/57e9272ec0e8deccf09421596e0e2252df440e11",
|
||||||
"reference": "a55d08229f4f614bf335759ed0cf63378feeb2e6",
|
"reference": "57e9272ec0e8deccf09421596e0e2252df440e11",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"ocramius/package-versions": "^1.0",
|
"php": ">=5.3.3",
|
||||||
"php": "7.0.0 - 7.0.5 || ^7.0.7",
|
"zendframework/zend-code": ">2.2.5,<3.0"
|
||||||
"zendframework/zend-code": "3.0.0 - 3.0.2 || ^3.0.4"
|
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"couscous/couscous": "^1.4.0",
|
|
||||||
"ext-phar": "*",
|
"ext-phar": "*",
|
||||||
"phpbench/phpbench": "^0.11.2",
|
"phpunit/phpunit": "~4.0",
|
||||||
"phpunit/phpunit": "^5.4.6",
|
"squizlabs/php_codesniffer": "1.5.*"
|
||||||
"squizlabs/php_codesniffer": "^2.6.0"
|
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"ocramius/generated-hydrator": "To have very fast object to array to object conversion for ghost objects",
|
"ocramius/generated-hydrator": "To have very fast object to array to object conversion for ghost objects",
|
||||||
"zendframework/zend-json": "To have the JsonRpc adapter (Remote Object feature)",
|
"zendframework/zend-json": "To have the JsonRpc adapter (Remote Object feature)",
|
||||||
"zendframework/zend-soap": "To have the Soap adapter (Remote Object feature)",
|
"zendframework/zend-soap": "To have the Soap adapter (Remote Object feature)",
|
||||||
|
"zendframework/zend-stdlib": "To use the hydrator proxy",
|
||||||
"zendframework/zend-xmlrpc": "To have the XmlRpc adapter (Remote Object feature)"
|
"zendframework/zend-xmlrpc": "To have the XmlRpc adapter (Remote Object feature)"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "3.0.x-dev"
|
"dev-master": "2.0.x-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -2826,7 +2533,7 @@
|
||||||
{
|
{
|
||||||
"name": "Marco Pivetta",
|
"name": "Marco Pivetta",
|
||||||
"email": "ocramius@gmail.com",
|
"email": "ocramius@gmail.com",
|
||||||
"homepage": "http://ocramius.github.io/"
|
"homepage": "http://ocramius.github.com/"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "A library providing utilities to generate, instantiate and generally operate with Object Proxies",
|
"description": "A library providing utilities to generate, instantiate and generally operate with Object Proxies",
|
||||||
|
@ -2838,7 +2545,7 @@
|
||||||
"proxy pattern",
|
"proxy pattern",
|
||||||
"service proxies"
|
"service proxies"
|
||||||
],
|
],
|
||||||
"time": "2016-11-04 15:53:15"
|
"time": "2015-08-09 04:28:19"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "oneup/uploader-bundle",
|
"name": "oneup/uploader-bundle",
|
||||||
|
@ -3255,24 +2962,24 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ralouphie/getallheaders",
|
"name": "ralouphie/getallheaders",
|
||||||
"version": "2.0.5",
|
"version": "3.0.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/ralouphie/getallheaders.git",
|
"url": "https://github.com/ralouphie/getallheaders.git",
|
||||||
"reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa"
|
"reference": "120b605dfeb996808c31b6477290a714d356e822"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
|
"url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822",
|
||||||
"reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
|
"reference": "120b605dfeb996808c31b6477290a714d356e822",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.3"
|
"php": ">=5.6"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "~3.7.0",
|
"php-coveralls/php-coveralls": "^2.1",
|
||||||
"satooshi/php-coveralls": ">=1.0"
|
"phpunit/phpunit": "^5 || ^6.5"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -3291,7 +2998,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "A polyfill for getallheaders.",
|
"description": "A polyfill for getallheaders.",
|
||||||
"time": "2016-02-11 07:05:27"
|
"time": "2019-03-08 08:55:37"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ramsey/uuid",
|
"name": "ramsey/uuid",
|
||||||
|
@ -3376,29 +3083,161 @@
|
||||||
"time": "2018-07-19 23:38:55"
|
"time": "2018-07-19 23:38:55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "react/event-loop",
|
"name": "ratchet/rfc6455",
|
||||||
"version": "v0.4.3",
|
"version": "v0.2.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/reactphp/event-loop.git",
|
"url": "https://github.com/ratchetphp/RFC6455.git",
|
||||||
"reference": "8bde03488ee897dc6bb3d91e4e17c353f9c5252f"
|
"reference": "c62f7cd95ffbb6e94fd657be694fc7372ecd6e62"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/reactphp/event-loop/zipball/8bde03488ee897dc6bb3d91e4e17c353f9c5252f",
|
"url": "https://api.github.com/repos/ratchetphp/RFC6455/zipball/c62f7cd95ffbb6e94fd657be694fc7372ecd6e62",
|
||||||
"reference": "8bde03488ee897dc6bb3d91e4e17c353f9c5252f",
|
"reference": "c62f7cd95ffbb6e94fd657be694fc7372ecd6e62",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.4.0"
|
"guzzlehttp/psr7": "^1.0",
|
||||||
|
"php": ">=5.4.2"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "~4.8"
|
"phpunit/phpunit": "4.8.*",
|
||||||
|
"react/http": "^0.4.1",
|
||||||
|
"react/socket-client": "^0.4.3"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Ratchet\\RFC6455\\": "src"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Chris Boden",
|
||||||
|
"email": "cboden@gmail.com",
|
||||||
|
"role": "Developer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "RFC6455 WebSocket protocol handler",
|
||||||
|
"homepage": "http://socketo.me",
|
||||||
|
"keywords": [
|
||||||
|
"WebSockets",
|
||||||
|
"rfc6455",
|
||||||
|
"websocket"
|
||||||
|
],
|
||||||
|
"time": "2019-03-10 17:10:42"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "react/cache",
|
||||||
|
"version": "v1.0.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/reactphp/cache.git",
|
||||||
|
"reference": "aa10d63a1b40a36a486bdf527f28bac607ee6466"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/reactphp/cache/zipball/aa10d63a1b40a36a486bdf527f28bac607ee6466",
|
||||||
|
"reference": "aa10d63a1b40a36a486bdf527f28bac607ee6466",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.3.0",
|
||||||
|
"react/promise": "~2.0|~1.1"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"React\\Cache\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"description": "Async, Promise-based cache interface for ReactPHP",
|
||||||
|
"keywords": [
|
||||||
|
"cache",
|
||||||
|
"caching",
|
||||||
|
"promise",
|
||||||
|
"reactphp"
|
||||||
|
],
|
||||||
|
"time": "2019-07-11 13:45:28"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "react/dns",
|
||||||
|
"version": "v1.1.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/reactphp/dns.git",
|
||||||
|
"reference": "a04f6f23ee40afec2e5814ddfbdf71b9e88bbc1f"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/reactphp/dns/zipball/a04f6f23ee40afec2e5814ddfbdf71b9e88bbc1f",
|
||||||
|
"reference": "a04f6f23ee40afec2e5814ddfbdf71b9e88bbc1f",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.3.0",
|
||||||
|
"react/cache": "^1.0 || ^0.6 || ^0.5",
|
||||||
|
"react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5",
|
||||||
|
"react/promise": "^2.1 || ^1.2.1",
|
||||||
|
"react/promise-timer": "^1.2"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"clue/block-react": "^1.2",
|
||||||
|
"phpunit/phpunit": "^7.0 || ^6.4 || ^5.7 || ^4.8.35"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"React\\Dns\\": "src"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"description": "Async DNS resolver for ReactPHP",
|
||||||
|
"keywords": [
|
||||||
|
"async",
|
||||||
|
"dns",
|
||||||
|
"dns-resolver",
|
||||||
|
"reactphp"
|
||||||
|
],
|
||||||
|
"time": "2019-07-18 09:47:47"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "react/event-loop",
|
||||||
|
"version": "v0.5.3",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/reactphp/event-loop.git",
|
||||||
|
"reference": "228178a947de1f7cd9296d691878569628288c6f"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/reactphp/event-loop/zipball/228178a947de1f7cd9296d691878569628288c6f",
|
||||||
|
"reference": "228178a947de1f7cd9296d691878569628288c6f",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.3.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "~4.8.35 || ^5.7 || ^6.4"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"ext-event": "~1.0",
|
"ext-event": "~1.0 for ExtEventLoop",
|
||||||
"ext-libev": "*",
|
"ext-pcntl": "For signal handling support when using the StreamSelectLoop"
|
||||||
"ext-libevent": ">=0.1.0"
|
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -3410,12 +3249,12 @@
|
||||||
"license": [
|
"license": [
|
||||||
"MIT"
|
"MIT"
|
||||||
],
|
],
|
||||||
"description": "Event loop abstraction layer that libraries can use for evented I/O.",
|
"description": "ReactPHP's core reactor event loop that libraries can use for evented I/O.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"asynchronous",
|
"asynchronous",
|
||||||
"event-loop"
|
"event-loop"
|
||||||
],
|
],
|
||||||
"time": "2017-04-27 10:56:23"
|
"time": "2018-07-09 13:51:04"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "react/promise",
|
"name": "react/promise",
|
||||||
|
@ -3464,30 +3303,84 @@
|
||||||
"time": "2019-01-07 21:25:54"
|
"time": "2019-01-07 21:25:54"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "react/socket",
|
"name": "react/promise-timer",
|
||||||
"version": "v0.4.6",
|
"version": "v1.5.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/reactphp/socket.git",
|
"url": "https://github.com/reactphp/promise-timer.git",
|
||||||
"reference": "cf074e53c974df52388ebd09710a9018894745d2"
|
"reference": "35fb910604fd86b00023fc5cda477c8074ad0abc"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/reactphp/socket/zipball/cf074e53c974df52388ebd09710a9018894745d2",
|
"url": "https://api.github.com/repos/reactphp/promise-timer/zipball/35fb910604fd86b00023fc5cda477c8074ad0abc",
|
||||||
"reference": "cf074e53c974df52388ebd09710a9018894745d2",
|
"reference": "35fb910604fd86b00023fc5cda477c8074ad0abc",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"evenement/evenement": "~2.0|~1.0",
|
"php": ">=5.3",
|
||||||
"php": ">=5.3.0",
|
"react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5",
|
||||||
"react/event-loop": "0.4.*|0.3.*",
|
"react/promise": "^2.7.0 || ^1.2.1"
|
||||||
"react/promise": "^2.0 || ^1.1",
|
|
||||||
"react/stream": "^0.4.5"
|
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"clue/block-react": "^1.1",
|
"phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35"
|
||||||
"phpunit/phpunit": "~4.8",
|
},
|
||||||
"react/socket-client": "^0.5.1"
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"React\\Promise\\Timer\\": "src/"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"src/functions_include.php"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Christian Lück",
|
||||||
|
"email": "christian@lueck.tv"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "A trivial implementation of timeouts for Promises, built on top of ReactPHP.",
|
||||||
|
"homepage": "https://github.com/reactphp/promise-timer",
|
||||||
|
"keywords": [
|
||||||
|
"async",
|
||||||
|
"event-loop",
|
||||||
|
"promise",
|
||||||
|
"reactphp",
|
||||||
|
"timeout",
|
||||||
|
"timer"
|
||||||
|
],
|
||||||
|
"time": "2019-03-27 18:10:32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "react/socket",
|
||||||
|
"version": "v1.3.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/reactphp/socket.git",
|
||||||
|
"reference": "10f0629ec83ea0fa22597f348623f554227e3ca0"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/reactphp/socket/zipball/10f0629ec83ea0fa22597f348623f554227e3ca0",
|
||||||
|
"reference": "10f0629ec83ea0fa22597f348623f554227e3ca0",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"evenement/evenement": "^3.0 || ^2.0 || ^1.0",
|
||||||
|
"php": ">=5.3.0",
|
||||||
|
"react/dns": "^1.0 || ^0.4.13",
|
||||||
|
"react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5",
|
||||||
|
"react/promise": "^2.6.0 || ^1.2.1",
|
||||||
|
"react/promise-timer": "^1.4.0",
|
||||||
|
"react/stream": "^1.1"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"clue/block-react": "^1.2",
|
||||||
|
"phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -3499,38 +3392,38 @@
|
||||||
"license": [
|
"license": [
|
||||||
"MIT"
|
"MIT"
|
||||||
],
|
],
|
||||||
"description": "Async, streaming plaintext TCP/IP and secure TLS socket server for React PHP",
|
"description": "Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Socket"
|
"Connection",
|
||||||
|
"Socket",
|
||||||
|
"async",
|
||||||
|
"reactphp",
|
||||||
|
"stream"
|
||||||
],
|
],
|
||||||
"time": "2017-01-26 09:23:38"
|
"time": "2019-07-10 10:11:14"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "react/stream",
|
"name": "react/stream",
|
||||||
"version": "v0.4.6",
|
"version": "v1.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/reactphp/stream.git",
|
"url": "https://github.com/reactphp/stream.git",
|
||||||
"reference": "44dc7f51ea48624110136b535b9ba44fd7d0c1ee"
|
"reference": "50426855f7a77ddf43b9266c22320df5bf6c6ce6"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/reactphp/stream/zipball/44dc7f51ea48624110136b535b9ba44fd7d0c1ee",
|
"url": "https://api.github.com/repos/reactphp/stream/zipball/50426855f7a77ddf43b9266c22320df5bf6c6ce6",
|
||||||
"reference": "44dc7f51ea48624110136b535b9ba44fd7d0c1ee",
|
"reference": "50426855f7a77ddf43b9266c22320df5bf6c6ce6",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"evenement/evenement": "^2.0|^1.0",
|
"evenement/evenement": "^3.0 || ^2.0 || ^1.0",
|
||||||
"php": ">=5.3.8"
|
"php": ">=5.3.8",
|
||||||
|
"react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3.5"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"clue/stream-filter": "~1.2",
|
"clue/stream-filter": "~1.2",
|
||||||
"react/event-loop": "^0.4|^0.3",
|
"phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35"
|
||||||
"react/promise": "^2.0|^1.0"
|
|
||||||
},
|
|
||||||
"suggest": {
|
|
||||||
"react/event-loop": "^0.4",
|
|
||||||
"react/promise": "^2.0"
|
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -3542,12 +3435,18 @@
|
||||||
"license": [
|
"license": [
|
||||||
"MIT"
|
"MIT"
|
||||||
],
|
],
|
||||||
"description": "Basic readable and writable stream interfaces that support piping.",
|
"description": "Event-driven readable and writable streams for non-blocking I/O in ReactPHP",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
"event-driven",
|
||||||
|
"io",
|
||||||
|
"non-blocking",
|
||||||
"pipe",
|
"pipe",
|
||||||
"stream"
|
"reactphp",
|
||||||
|
"readable",
|
||||||
|
"stream",
|
||||||
|
"writable"
|
||||||
],
|
],
|
||||||
"time": "2017-01-25 14:44:14"
|
"time": "2019-01-01 16:15:09"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "robrichards/xmlseclibs",
|
"name": "robrichards/xmlseclibs",
|
||||||
|
@ -3589,21 +3488,21 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sensio/distribution-bundle",
|
"name": "sensio/distribution-bundle",
|
||||||
"version": "v5.0.24",
|
"version": "v5.0.25",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sensiolabs/SensioDistributionBundle.git",
|
"url": "https://github.com/sensiolabs/SensioDistributionBundle.git",
|
||||||
"reference": "59eac70f15f97ee945924948a6f5e2f6f86b7a4b"
|
"reference": "80a38234bde8321fb92aa0b8c27978a272bb4baf"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sensiolabs/SensioDistributionBundle/zipball/59eac70f15f97ee945924948a6f5e2f6f86b7a4b",
|
"url": "https://api.github.com/repos/sensiolabs/SensioDistributionBundle/zipball/80a38234bde8321fb92aa0b8c27978a272bb4baf",
|
||||||
"reference": "59eac70f15f97ee945924948a6f5e2f6f86b7a4b",
|
"reference": "80a38234bde8321fb92aa0b8c27978a272bb4baf",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.3.9",
|
"php": ">=5.3.9",
|
||||||
"sensiolabs/security-checker": "~5.0",
|
"sensiolabs/security-checker": "~5.0|~6.0",
|
||||||
"symfony/class-loader": "~2.3|~3.0",
|
"symfony/class-loader": "~2.3|~3.0",
|
||||||
"symfony/config": "~2.3|~3.0",
|
"symfony/config": "~2.3|~3.0",
|
||||||
"symfony/dependency-injection": "~2.3|~3.0",
|
"symfony/dependency-injection": "~2.3|~3.0",
|
||||||
|
@ -3637,7 +3536,7 @@
|
||||||
"configuration",
|
"configuration",
|
||||||
"distribution"
|
"distribution"
|
||||||
],
|
],
|
||||||
"time": "2018-12-14 17:36:15"
|
"time": "2019-06-18 15:43:58"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sensio/framework-extra-bundle",
|
"name": "sensio/framework-extra-bundle",
|
||||||
|
@ -3882,30 +3781,30 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/monolog-bundle",
|
"name": "symfony/monolog-bundle",
|
||||||
"version": "v3.3.1",
|
"version": "v3.4.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/monolog-bundle.git",
|
"url": "https://github.com/symfony/monolog-bundle.git",
|
||||||
"reference": "572e143afc03419a75ab002c80a2fd99299195ff"
|
"reference": "7fbecb371c1c614642c93c6b2cbcdf723ae8809d"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/monolog-bundle/zipball/572e143afc03419a75ab002c80a2fd99299195ff",
|
"url": "https://api.github.com/repos/symfony/monolog-bundle/zipball/7fbecb371c1c614642c93c6b2cbcdf723ae8809d",
|
||||||
"reference": "572e143afc03419a75ab002c80a2fd99299195ff",
|
"reference": "7fbecb371c1c614642c93c6b2cbcdf723ae8809d",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"monolog/monolog": "~1.22",
|
"monolog/monolog": "~1.22",
|
||||||
"php": ">=5.6",
|
"php": ">=5.6",
|
||||||
"symfony/config": "~2.7|~3.3|~4.0",
|
"symfony/config": "~3.4|~4.0",
|
||||||
"symfony/dependency-injection": "~2.7|~3.4.10|^4.0.10",
|
"symfony/dependency-injection": "~3.4.10|^4.0.10",
|
||||||
"symfony/http-kernel": "~2.7|~3.3|~4.0",
|
"symfony/http-kernel": "~3.4|~4.0",
|
||||||
"symfony/monolog-bridge": "~2.7|~3.3|~4.0"
|
"symfony/monolog-bridge": "~3.4|~4.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"symfony/console": "~2.7|~3.3|~4.0",
|
"symfony/console": "~3.4|~4.0",
|
||||||
"symfony/phpunit-bridge": "^3.3|^4.0",
|
"symfony/phpunit-bridge": "^3.4.19|^4.0",
|
||||||
"symfony/yaml": "~2.7|~3.3|~4.0"
|
"symfony/yaml": "~3.4|~4.0"
|
||||||
},
|
},
|
||||||
"type": "symfony-bundle",
|
"type": "symfony-bundle",
|
||||||
"extra": {
|
"extra": {
|
||||||
|
@ -3941,7 +3840,7 @@
|
||||||
"log",
|
"log",
|
||||||
"logging"
|
"logging"
|
||||||
],
|
],
|
||||||
"time": "2018-11-04 09:58:13"
|
"time": "2019-06-20 12:18:19"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/orm-pack",
|
"name": "symfony/orm-pack",
|
||||||
|
@ -4430,16 +4329,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/symfony",
|
"name": "symfony/symfony",
|
||||||
"version": "v3.4.26",
|
"version": "v3.4.29",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/symfony.git",
|
"url": "https://github.com/symfony/symfony.git",
|
||||||
"reference": "1b89e7baec9891c323bbf1ec81af77d901fc60c9"
|
"reference": "4c9b6d7d898457ae2189efdfaca58712269fc994"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/symfony/zipball/1b89e7baec9891c323bbf1ec81af77d901fc60c9",
|
"url": "https://api.github.com/repos/symfony/symfony/zipball/4c9b6d7d898457ae2189efdfaca58712269fc994",
|
||||||
"reference": "1b89e7baec9891c323bbf1ec81af77d901fc60c9",
|
"reference": "4c9b6d7d898457ae2189efdfaca58712269fc994",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -4458,7 +4357,7 @@
|
||||||
"symfony/polyfill-mbstring": "~1.0",
|
"symfony/polyfill-mbstring": "~1.0",
|
||||||
"symfony/polyfill-php56": "~1.0",
|
"symfony/polyfill-php56": "~1.0",
|
||||||
"symfony/polyfill-php70": "~1.6",
|
"symfony/polyfill-php70": "~1.6",
|
||||||
"twig/twig": "^1.35|^2.4.4"
|
"twig/twig": "^1.40|^2.9"
|
||||||
},
|
},
|
||||||
"conflict": {
|
"conflict": {
|
||||||
"phpdocumentor/reflection-docblock": "<3.0||>=3.2.0,<3.2.2",
|
"phpdocumentor/reflection-docblock": "<3.0||>=3.2.0,<3.2.2",
|
||||||
|
@ -4537,7 +4436,7 @@
|
||||||
"ocramius/proxy-manager": "~0.4|~1.0|~2.0",
|
"ocramius/proxy-manager": "~0.4|~1.0|~2.0",
|
||||||
"phpdocumentor/reflection-docblock": "^3.0|^4.0",
|
"phpdocumentor/reflection-docblock": "^3.0|^4.0",
|
||||||
"predis/predis": "~1.0",
|
"predis/predis": "~1.0",
|
||||||
"symfony/phpunit-bridge": "~3.4|~4.0",
|
"symfony/phpunit-bridge": "~3.4|~4.0|~5.0",
|
||||||
"symfony/security-acl": "~2.8|~3.0"
|
"symfony/security-acl": "~2.8|~3.0"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
|
@ -4581,34 +4480,34 @@
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"framework"
|
"framework"
|
||||||
],
|
],
|
||||||
"time": "2019-04-17 15:57:27"
|
"time": "2019-06-26 13:56:55"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "tetranz/select2entity-bundle",
|
"name": "tetranz/select2entity-bundle",
|
||||||
"version": "v2.9.5",
|
"version": "v2.10.0",
|
||||||
"target-dir": "Tetranz/Select2EntityBundle",
|
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/tetranz/select2entity-bundle.git",
|
"url": "https://github.com/tetranz/select2entity-bundle.git",
|
||||||
"reference": "c57281f4af06ca0c7e74c27fcc4bf8c95a1beaad"
|
"reference": "67b61be1a23228bc4e77a2e59ba5fff8fd9fffab"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/tetranz/select2entity-bundle/zipball/c57281f4af06ca0c7e74c27fcc4bf8c95a1beaad",
|
"url": "https://api.github.com/repos/tetranz/select2entity-bundle/zipball/67b61be1a23228bc4e77a2e59ba5fff8fd9fffab",
|
||||||
"reference": "c57281f4af06ca0c7e74c27fcc4bf8c95a1beaad",
|
"reference": "67b61be1a23228bc4e77a2e59ba5fff8fd9fffab",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"doctrine/orm": ">=2.4",
|
"doctrine/orm": ">=2.4",
|
||||||
"php": ">=5.4.0"
|
"php": ">=5.4.0",
|
||||||
|
"twig/twig": ">=2.9"
|
||||||
},
|
},
|
||||||
"type": "symfony-bundle",
|
"type": "symfony-bundle",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": []
|
"branch-alias": []
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": {
|
"psr-4": {
|
||||||
"Tetranz\\Select2EntityBundle": ""
|
"Tetranz\\Select2EntityBundle\\": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
@ -4621,14 +4520,14 @@
|
||||||
"email": "tetranz@gmail.com"
|
"email": "tetranz@gmail.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "A Symfony2 bundle that integrates Select2 as a drop-in replacement for a standard entity field on a Symfony form.",
|
"description": "A Symfony bundle that integrates Select2 as a drop-in replacement for a standard entity field on a Symfony form.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"autocomplete",
|
"autocomplete",
|
||||||
"select2",
|
"select2",
|
||||||
"symfony",
|
"symfony",
|
||||||
"typeahead"
|
"typeahead"
|
||||||
],
|
],
|
||||||
"time": "2018-03-05 02:52:46"
|
"time": "2019-07-07 23:00:30"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "thecsea/simple-caldav-client",
|
"name": "thecsea/simple-caldav-client",
|
||||||
|
@ -4675,16 +4574,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "twig/twig",
|
"name": "twig/twig",
|
||||||
"version": "v2.8.1",
|
"version": "v2.11.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/twigphp/Twig.git",
|
"url": "https://github.com/twigphp/Twig.git",
|
||||||
"reference": "91cc2594d3143761ce0399c1caffd0b500ffe5b9"
|
"reference": "699ed2342557c88789a15402de5eb834dedd6792"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/twigphp/Twig/zipball/91cc2594d3143761ce0399c1caffd0b500ffe5b9",
|
"url": "https://api.github.com/repos/twigphp/Twig/zipball/699ed2342557c88789a15402de5eb834dedd6792",
|
||||||
"reference": "91cc2594d3143761ce0399c1caffd0b500ffe5b9",
|
"reference": "699ed2342557c88789a15402de5eb834dedd6792",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -4695,12 +4594,12 @@
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"psr/container": "^1.0",
|
"psr/container": "^1.0",
|
||||||
"symfony/debug": "^2.7",
|
"symfony/debug": "^2.7",
|
||||||
"symfony/phpunit-bridge": "^3.4.19|^4.1.8"
|
"symfony/phpunit-bridge": "^3.4.19|^4.1.8|^5.0"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "2.8-dev"
|
"dev-master": "2.11-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -4738,31 +4637,30 @@
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"templating"
|
"templating"
|
||||||
],
|
],
|
||||||
"time": "2019-04-16 17:14:24"
|
"time": "2019-06-18 15:37:11"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "zendframework/zend-code",
|
"name": "zendframework/zend-code",
|
||||||
"version": "3.1.0",
|
"version": "2.6.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/zendframework/zend-code.git",
|
"url": "https://github.com/zendframework/zend-code.git",
|
||||||
"reference": "2899c17f83a7207f2d7f53ec2f421204d3beea27"
|
"reference": "95033f061b083e16cdee60530ec260d7d628b887"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/zendframework/zend-code/zipball/2899c17f83a7207f2d7f53ec2f421204d3beea27",
|
"url": "https://api.github.com/repos/zendframework/zend-code/zipball/95033f061b083e16cdee60530ec260d7d628b887",
|
||||||
"reference": "2899c17f83a7207f2d7f53ec2f421204d3beea27",
|
"reference": "95033f061b083e16cdee60530ec260d7d628b887",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^5.6 || 7.0.0 - 7.0.4 || ^7.0.6",
|
"php": "^5.5 || 7.0.0 - 7.0.4 || ^7.0.6",
|
||||||
"zendframework/zend-eventmanager": "^2.6 || ^3.0"
|
"zendframework/zend-eventmanager": "^2.6 || ^3.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"doctrine/annotations": "~1.0",
|
"doctrine/annotations": "~1.0",
|
||||||
"ext-phar": "*",
|
"fabpot/php-cs-fixer": "1.7.*",
|
||||||
"phpunit/phpunit": "^4.8.21",
|
"phpunit/phpunit": "^4.8.21",
|
||||||
"squizlabs/php_codesniffer": "^2.5",
|
|
||||||
"zendframework/zend-stdlib": "^2.7 || ^3.0"
|
"zendframework/zend-stdlib": "^2.7 || ^3.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
|
@ -4772,8 +4670,8 @@
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "3.1-dev",
|
"dev-master": "2.6-dev",
|
||||||
"dev-develop": "3.2-dev"
|
"dev-develop": "2.7-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -4791,7 +4689,7 @@
|
||||||
"code",
|
"code",
|
||||||
"zf2"
|
"zf2"
|
||||||
],
|
],
|
||||||
"time": "2016-10-24 13:23:32"
|
"time": "2016-04-20 17:26:42"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "zendframework/zend-eventmanager",
|
"name": "zendframework/zend-eventmanager",
|
||||||
|
@ -4851,16 +4749,16 @@
|
||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
{
|
{
|
||||||
"name": "nikic/php-parser",
|
"name": "nikic/php-parser",
|
||||||
"version": "v4.2.1",
|
"version": "v4.2.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||||
"reference": "5221f49a608808c1e4d436df32884cbc1b821ac0"
|
"reference": "1bd73cc04c3843ad8d6b0bfc0956026a151fc420"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/5221f49a608808c1e4d436df32884cbc1b821ac0",
|
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1bd73cc04c3843ad8d6b0bfc0956026a151fc420",
|
||||||
"reference": "5221f49a608808c1e4d436df32884cbc1b821ac0",
|
"reference": "1bd73cc04c3843ad8d6b0bfc0956026a151fc420",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -4898,7 +4796,7 @@
|
||||||
"parser",
|
"parser",
|
||||||
"php"
|
"php"
|
||||||
],
|
],
|
||||||
"time": "2019-02-16 20:54:15"
|
"time": "2019-05-25 20:07:01"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sensio/generator-bundle",
|
"name": "sensio/generator-bundle",
|
||||||
|
@ -4956,16 +4854,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/maker-bundle",
|
"name": "symfony/maker-bundle",
|
||||||
"version": "v1.11.6",
|
"version": "v1.12.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/maker-bundle.git",
|
"url": "https://github.com/symfony/maker-bundle.git",
|
||||||
"reference": "d262c2cace4d9bca99137a84f6fc6ba909a17e02"
|
"reference": "201d0e050dca336c44f93657ce1f34f3b3868432"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/maker-bundle/zipball/d262c2cace4d9bca99137a84f6fc6ba909a17e02",
|
"url": "https://api.github.com/repos/symfony/maker-bundle/zipball/201d0e050dca336c44f93657ce1f34f3b3868432",
|
||||||
"reference": "d262c2cace4d9bca99137a84f6fc6ba909a17e02",
|
"reference": "201d0e050dca336c44f93657ce1f34f3b3868432",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -4981,12 +4879,14 @@
|
||||||
"symfony/http-kernel": "^3.4|^4.0"
|
"symfony/http-kernel": "^3.4|^4.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"allocine/twigcs": "^3.0",
|
|
||||||
"doctrine/doctrine-bundle": "^1.8",
|
"doctrine/doctrine-bundle": "^1.8",
|
||||||
"doctrine/orm": "^2.3",
|
"doctrine/orm": "^2.3",
|
||||||
"friendsofphp/php-cs-fixer": "^2.8",
|
"friendsofphp/php-cs-fixer": "^2.8",
|
||||||
"symfony/phpunit-bridge": "^3.4|^4.0",
|
"friendsoftwig/twigcs": "^3.1.2",
|
||||||
|
"symfony/http-client": "^4.3",
|
||||||
|
"symfony/phpunit-bridge": "^3.4.19|^4.0",
|
||||||
"symfony/process": "^3.4|^4.0",
|
"symfony/process": "^3.4|^4.0",
|
||||||
|
"symfony/security-core": "^3.4|^4.0",
|
||||||
"symfony/yaml": "^3.4|^4.0"
|
"symfony/yaml": "^3.4|^4.0"
|
||||||
},
|
},
|
||||||
"type": "symfony-bundle",
|
"type": "symfony-bundle",
|
||||||
|
@ -5018,20 +4918,20 @@
|
||||||
"scaffold",
|
"scaffold",
|
||||||
"scaffolding"
|
"scaffolding"
|
||||||
],
|
],
|
||||||
"time": "2019-04-19 17:26:45"
|
"time": "2019-07-09 22:19:18"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/phpunit-bridge",
|
"name": "symfony/phpunit-bridge",
|
||||||
"version": "v3.4.26",
|
"version": "v3.4.29",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/phpunit-bridge.git",
|
"url": "https://github.com/symfony/phpunit-bridge.git",
|
||||||
"reference": "a43a2f6c465a2d99635fea0addbebddc3864ad97"
|
"reference": "521489968e58dcdb8df153436cc18349737e49e3"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/a43a2f6c465a2d99635fea0addbebddc3864ad97",
|
"url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/521489968e58dcdb8df153436cc18349737e49e3",
|
||||||
"reference": "a43a2f6c465a2d99635fea0addbebddc3864ad97",
|
"reference": "521489968e58dcdb8df153436cc18349737e49e3",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -5083,7 +4983,7 @@
|
||||||
],
|
],
|
||||||
"description": "Symfony PHPUnit Bridge",
|
"description": "Symfony PHPUnit Bridge",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2019-04-16 09:03:16"
|
"time": "2019-06-26 10:03:25"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"aliases": [],
|
"aliases": [],
|
||||||
|
|
|
@ -8,6 +8,9 @@ affniveau02=$(CreoleGet ninegate_niveau02view non)
|
||||||
labelsniveau02=$(CreoleGet ninegate_niveau02labels non)
|
labelsniveau02=$(CreoleGet ninegate_niveau02labels non)
|
||||||
iconniveau02=$(CreoleGet ninegate_niveau02icon non)
|
iconniveau02=$(CreoleGet ninegate_niveau02icon non)
|
||||||
weburl=$(CreoleGet web_url non)
|
weburl=$(CreoleGet web_url non)
|
||||||
|
ninegate_websocket=$(CreoleGet ninegate_activate_websocket non)
|
||||||
|
websocket_url=$(CreoleGet adresse_ip_eth0 non)
|
||||||
|
websocket_portinterne=$(CreoleGet ninegate_websocket_portinterne non)
|
||||||
|
|
||||||
www_dir="$container_path_web/var/www/html"
|
www_dir="$container_path_web/var/www/html"
|
||||||
eportail_dir="$www_dir/eportail"
|
eportail_dir="$www_dir/eportail"
|
||||||
|
@ -50,12 +53,15 @@ fi
|
||||||
./perm.sh www-data
|
./perm.sh www-data
|
||||||
|
|
||||||
# Server Websocket
|
# Server Websocket
|
||||||
echo ""
|
if [[ "$ninegate_websocket" = 'oui' ]]
|
||||||
echo WEBSOCKET = STOP
|
then
|
||||||
pid="$(pgrep -f gos:websocket)"
|
echo ""
|
||||||
if [ -n "${pid}" ]; then
|
echo WEBSOCKET = STOP
|
||||||
|
pid="$(pgrep -f gos:websocket)"
|
||||||
|
if [ -n "${pid}" ]; then
|
||||||
kill -9 ${pid};
|
kill -9 ${pid};
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo WEBSOCKET = START
|
echo WEBSOCKET = START
|
||||||
bin/console gos:websocket:server --port 5556 -a $web_url --no-debug -n -q --env=prod & disown
|
bin/console gos:websocket:server --port $websocket_portinterne -a $websocket_url --no-debug -n -q --env=prod & disown
|
||||||
|
fi
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
websocket_url=$(CreoleGet adresse_ip_eth0 non)
|
||||||
|
websocket_portinterne=$(CreoleGet ninegate_websocket_portinterne non)
|
||||||
|
|
||||||
|
# Server Websocket
|
||||||
|
echo WEBSOCKET = STOP
|
||||||
|
pid="$(pgrep -f gos:websocket)"
|
||||||
|
if [ -n "${pid}" ]; then
|
||||||
|
kill -9 ${pid};
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo WEBSOCKET = START
|
||||||
|
bin/console gos:websocket:server --port $websocket_portinterne -a $websocket_url --no-debug -n -q --env=prod & disown
|
|
@ -8,6 +8,8 @@ use Symfony\Component\Finder\Finder;
|
||||||
use Symfony\Component\HttpKernel\KernelInterface;
|
use Symfony\Component\HttpKernel\KernelInterface;
|
||||||
use Doctrine\DBAL\Connection as DBALConnection;
|
use Doctrine\DBAL\Connection as DBALConnection;
|
||||||
use Doctrine\ORM\EntityManager;
|
use Doctrine\ORM\EntityManager;
|
||||||
|
use Ramsey\Uuid\Uuid;
|
||||||
|
use Ramsey\Uuid\Exception\UnsatisfiedDependencyException;
|
||||||
|
|
||||||
use Cadoles\CoreBundle\Entity\Group;
|
use Cadoles\CoreBundle\Entity\Group;
|
||||||
use Cadoles\CoreBundle\Entity\UserGroup;
|
use Cadoles\CoreBundle\Entity\UserGroup;
|
||||||
|
@ -114,9 +116,11 @@ class InitDataCommand extends ContainerAwareCommand
|
||||||
$datas=$qb->getQuery()->getResult();
|
$datas=$qb->getQuery()->getResult();
|
||||||
foreach($datas as $data) {
|
foreach($datas as $data) {
|
||||||
$output->writeln(" > Ratachement ".$data->getId()." ".$data->getUsername());
|
$output->writeln(" > Ratachement ".$data->getId()." ".$data->getUsername());
|
||||||
|
$key = Uuid::uuid4();
|
||||||
$usergroup=new UserGroup();
|
$usergroup=new UserGroup();
|
||||||
$usergroup->setUser($data);
|
$usergroup->setUser($data);
|
||||||
$usergroup->setGroup($group);
|
$usergroup->setGroup($group);
|
||||||
|
$usergroup->setKeyvalue($key);
|
||||||
$em->persist($usergroup);
|
$em->persist($usergroup);
|
||||||
$em->flush();
|
$em->flush();
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ INSERT IGNORE INTO `niveau01` (`id`, `label`, `siren`) VALUES
|
||||||
(-100, 'DRAAF', '130007107');
|
(-100, 'DRAAF', '130007107');
|
||||||
|
|
||||||
INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES
|
INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES
|
||||||
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}fTB28jypXVo+jctUtN4bThWKPiqY6H6k
|
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}XuBTTUoInXPRBr1msGCFHj0Nm1C83fj/
|
||||||
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');
|
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||||
use Symfony\Component\Form\FormError;
|
use Symfony\Component\Form\FormError;
|
||||||
use Ramsey\Uuid\Uuid;
|
use Ramsey\Uuid\Uuid;
|
||||||
|
use Ramsey\Uuid\Exception\UnsatisfiedDependencyException;
|
||||||
|
|
||||||
use Cadoles\CoreBundle\Entity\Group;
|
use Cadoles\CoreBundle\Entity\Group;
|
||||||
use Cadoles\CoreBundle\Entity\Usergroup;
|
use Cadoles\CoreBundle\Entity\Usergroup;
|
||||||
|
@ -16,6 +17,7 @@ use Cadoles\CoreBundle\Entity\Usermodo;
|
||||||
use Cadoles\CoreBundle\Form\GroupType;
|
use Cadoles\CoreBundle\Form\GroupType;
|
||||||
use Cadoles\PortalBundle\Entity\Calendar;
|
use Cadoles\PortalBundle\Entity\Calendar;
|
||||||
use Cadoles\PortalBundle\Entity\Blog;
|
use Cadoles\PortalBundle\Entity\Blog;
|
||||||
|
use Cadoles\WebsocketBundle\Entity\Message;
|
||||||
|
|
||||||
class GroupController extends Controller
|
class GroupController extends Controller
|
||||||
{
|
{
|
||||||
|
@ -24,22 +26,24 @@ class GroupController extends Controller
|
||||||
private $labeldata = 'group';
|
private $labeldata = 'group';
|
||||||
private $labeldatas = 'groups';
|
private $labeldatas = 'groups';
|
||||||
|
|
||||||
public function listAction()
|
public function listAction($access)
|
||||||
{
|
{
|
||||||
return $this->render('CadolesCoreBundle:Group:list.html.twig',[
|
return $this->render('CadolesCoreBundle:Group:list.html.twig',[
|
||||||
'useheader' => true,
|
'useheader' => true,
|
||||||
'usemenu' => false,
|
'usemenu' => false,
|
||||||
'usesidebar' => true,
|
'usesidebar' => ($access=="config"),
|
||||||
|
'access' => $access
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ajaxlistAction(Request $request)
|
public function ajaxlistAction(Request $request,$access)
|
||||||
{
|
{
|
||||||
// S'assurer que c'est un appel ajax
|
// S'assurer que c'est un appel ajax
|
||||||
if (!$request->isXmlHttpRequest()) {
|
if (!$request->isXmlHttpRequest()) {
|
||||||
return new JsonResponse(array('message' => 'Interdit'), 400);
|
return new JsonResponse(array('message' => 'Interdit'), 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$user=$this->getUser();
|
||||||
$portal_activate=$this->getParameter("portal_activate");
|
$portal_activate=$this->getParameter("portal_activate");
|
||||||
|
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
|
@ -51,19 +55,39 @@ class GroupController extends Controller
|
||||||
$order= $request->query->get('order');
|
$order= $request->query->get('order');
|
||||||
|
|
||||||
// Nombre total d'enregistrement
|
// Nombre total d'enregistrement
|
||||||
$total = $em->createQueryBuilder()->select('COUNT(table)')->from($this->labelentity,'table')->getQuery()->getSingleScalarResult();
|
$qb=$em->createQueryBuilder();
|
||||||
|
$qb->select('COUNT(table)')->from($this->labelentity,'table');
|
||||||
|
if($access=="user") {
|
||||||
|
$qb->from("CadolesCoreBundle:UserGroup","ug")
|
||||||
|
->andWhere(("table.fgcanshare=:flag"))
|
||||||
|
->andWhere("table.id=ug.group")
|
||||||
|
->andWhere(":user=ug.user")
|
||||||
|
->setParameter("flag", true)
|
||||||
|
->setParameter("user", $user);
|
||||||
|
|
||||||
|
}
|
||||||
|
$total = $qb->getQuery()->getSingleScalarResult();
|
||||||
|
|
||||||
// Nombre d'enregistrement filtré
|
// Nombre d'enregistrement filtré
|
||||||
if($search["value"]=="")
|
if($search["value"]=="")
|
||||||
$totalf = $total;
|
$totalf = $total;
|
||||||
else {
|
else {
|
||||||
$totalf= $em->createQueryBuilder()
|
$qb=$em->createQueryBuilder();
|
||||||
->select('COUNT(table)')
|
$qb->select('COUNT(table)')
|
||||||
->from($this->labelentity,'table')
|
->from($this->labelentity,'table')
|
||||||
->where('table.label LIKE :value')
|
->where('table.label LIKE :value')
|
||||||
->setParameter("value", "%".$search["value"]."%")
|
->setParameter("value", "%".$search["value"]."%");
|
||||||
->getQuery()
|
if($access=="user") {
|
||||||
->getSingleScalarResult();
|
$qb->from("CadolesCoreBundle:UserGroup","ug")
|
||||||
|
->andWhere(("table.fgcanshare=:flag"))
|
||||||
|
->andWhere("table.id=ug.group")
|
||||||
|
->andWhere(":user=ug.user")
|
||||||
|
->setParameter("flag", true)
|
||||||
|
->setParameter("user", $user);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$totalf= $qb->getQuery()->getSingleScalarResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Construction du tableau de retour
|
// Construction du tableau de retour
|
||||||
|
@ -77,8 +101,17 @@ class GroupController extends Controller
|
||||||
// Parcours des Enregistrement
|
// Parcours des Enregistrement
|
||||||
$qb = $em->createQueryBuilder();
|
$qb = $em->createQueryBuilder();
|
||||||
$qb->select('table')->from($this->labelentity,'table');
|
$qb->select('table')->from($this->labelentity,'table');
|
||||||
|
if($access=="user") {
|
||||||
|
$qb->from("CadolesCoreBundle:UserGroup","ug")
|
||||||
|
->andWhere(("table.fgcanshare=:flag"))
|
||||||
|
->andWhere("table.id=ug.group")
|
||||||
|
->andWhere(":user=ug.user")
|
||||||
|
->setParameter("flag", true)
|
||||||
|
->setParameter("user", $this->getUser());
|
||||||
|
|
||||||
|
}
|
||||||
if($search["value"]!="") {
|
if($search["value"]!="") {
|
||||||
$qb ->where('table.label LIKE :value')
|
$qb ->andwhere('table.label LIKE :value')
|
||||||
->setParameter("value", "%".$search["value"]."%");
|
->setParameter("value", "%".$search["value"]."%");
|
||||||
}
|
}
|
||||||
switch($order[0]["column"]) {
|
switch($order[0]["column"]) {
|
||||||
|
@ -107,6 +140,7 @@ class GroupController extends Controller
|
||||||
foreach($datas as $data) {
|
foreach($datas as $data) {
|
||||||
$action = "";
|
$action = "";
|
||||||
|
|
||||||
|
if($access=="config") {
|
||||||
// Modification possible si groupe non template et non tout le monde
|
// Modification possible si groupe non template et non tout le monde
|
||||||
if(!$data->getFgTemplate() && !$data->getFgall())
|
if(!$data->getFgTemplate() && !$data->getFgall())
|
||||||
$action .="<a href='".$this->generateUrl('cadoles_core_config_group_update', array('id'=>$data->getId()))."'><i class='fa fa-file fa-2x fa-fw'></i></a>";
|
$action .="<a href='".$this->generateUrl('cadoles_core_config_group_update', array('id'=>$data->getId()))."'><i class='fa fa-file fa-2x fa-fw'></i></a>";
|
||||||
|
@ -122,6 +156,25 @@ class GroupController extends Controller
|
||||||
if($data->getId()>0&&!$data->getFgall()&&!$data->getFgTemplate()&&$this->isGranted('ROLE_ADMIN')) $action.="<a href='".$this->generateUrl('cadoles_core_config_group_delete', array('id'=>$data->getId()))."'><i class='fa fa-trash fa-fw fa-2x'></i></a>";
|
if($data->getId()>0&&!$data->getFgall()&&!$data->getFgTemplate()&&$this->isGranted('ROLE_ADMIN')) $action.="<a href='".$this->generateUrl('cadoles_core_config_group_delete', array('id'=>$data->getId()))."'><i class='fa fa-trash fa-fw fa-2x'></i></a>";
|
||||||
if(!$data->getFgall()) $action .="<a href='".$this->generateUrl('cadoles_core_config_group_users', array('id'=>$data->getId()))."'><i class='fa fa-users fa-2x fa-fw'></i></a>";
|
if(!$data->getFgall()) $action .="<a href='".$this->generateUrl('cadoles_core_config_group_users', array('id'=>$data->getId()))."'><i class='fa fa-users fa-2x fa-fw'></i></a>";
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$fgproprio=($user==$data->getOwner());
|
||||||
|
$fgmanager=$this->getDoctrine()->getRepository("CadolesCoreBundle:UserGroup")->findOneBy(["user"=>$this->getUser(),"group"=>$data])->getFgmanager();
|
||||||
|
|
||||||
|
// Modification possible uniquement si l'utilisateur est propriétaire du groupe
|
||||||
|
if($fgproprio) {
|
||||||
|
$action .="<a href='".$this->generateUrl('cadoles_core_'.$access.'_group_update', array('id'=>$data->getId()))."'><i class='fa fa-file fa-2x fa-fw'></i></a>";
|
||||||
|
$action .="<a href='".$this->generateUrl('cadoles_core_'.$access.'_group_delete', array('id'=>$data->getId()))."'><i class='fa fa-trash fa-2x fa-fw'></i></a>";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Gestion des utilisateurs du groupe uniquement pour le proprio ou les managers
|
||||||
|
if($fgproprio||$fgmanager) {
|
||||||
|
$action .="<a href='".$this->generateUrl('cadoles_core_'.$access.'_group_users', array('id'=>$data->getId()))."'><i class='fa fa-users fa-2x fa-fw'></i></a>";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$filtre="";
|
$filtre="";
|
||||||
if($this->GetParameter("masteridentity")=="LDAP") $filtre=$data->getLdapfilter();
|
if($this->GetParameter("masteridentity")=="LDAP") $filtre=$data->getLdapfilter();
|
||||||
if($this->GetParameter("masteridentity")=="SSO") $filtre=$data->getAttributes();
|
if($this->GetParameter("masteridentity")=="SSO") $filtre=$data->getAttributes();
|
||||||
|
@ -144,7 +197,7 @@ class GroupController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function ajaxusersnotinAction($id,Request $request)
|
public function ajaxusersnotinAction($id,Request $request,$access="config")
|
||||||
{
|
{
|
||||||
// S'assurer que c'est un appel ajax
|
// S'assurer que c'est un appel ajax
|
||||||
if (!$request->isXmlHttpRequest()) {
|
if (!$request->isXmlHttpRequest()) {
|
||||||
|
@ -168,7 +221,7 @@ class GroupController extends Controller
|
||||||
|
|
||||||
// Nombre total d'enregistrement
|
// Nombre total d'enregistrement
|
||||||
$qb = $em->createQueryBuilder();
|
$qb = $em->createQueryBuilder();
|
||||||
if($this->isGranted('ROLE_ADMIN'))
|
if($this->isGranted('ROLE_ADMIN')||$access=="user")
|
||||||
$qb->select('COUNT(user)')
|
$qb->select('COUNT(user)')
|
||||||
->from('CadolesCoreBundle:User','user')
|
->from('CadolesCoreBundle:User','user')
|
||||||
->where($qb->expr()->not($qb->expr()->exists($sub->getDQL())))
|
->where($qb->expr()->not($qb->expr()->exists($sub->getDQL())))
|
||||||
|
@ -190,7 +243,7 @@ class GroupController extends Controller
|
||||||
if($search["value"]=="")
|
if($search["value"]=="")
|
||||||
$totalf = $total;
|
$totalf = $total;
|
||||||
else {
|
else {
|
||||||
if($this->isGranted('ROLE_ADMIN'))
|
if($this->isGranted('ROLE_ADMIN')||$access=="user")
|
||||||
$totalf= $em->createQueryBuilder()
|
$totalf= $em->createQueryBuilder()
|
||||||
->select('COUNT(user)')
|
->select('COUNT(user)')
|
||||||
->from('CadolesCoreBundle:User','user')
|
->from('CadolesCoreBundle:User','user')
|
||||||
|
@ -229,7 +282,7 @@ class GroupController extends Controller
|
||||||
$qb = $em->createQueryBuilder();
|
$qb = $em->createQueryBuilder();
|
||||||
$qb->select('user')->from("CadolesCoreBundle:User",'user');
|
$qb->select('user')->from("CadolesCoreBundle:User",'user');
|
||||||
|
|
||||||
if($this->isGranted('ROLE_ADMIN'))
|
if($this->isGranted('ROLE_ADMIN')||$access=="user")
|
||||||
$qb->where($qb->expr()->not($qb->expr()->exists($sub->getDQL())));
|
$qb->where($qb->expr()->not($qb->expr()->exists($sub->getDQL())));
|
||||||
else
|
else
|
||||||
$qb->from('CadolesCoreBundle:UserModo','usermodo')
|
$qb->from('CadolesCoreBundle:UserModo','usermodo')
|
||||||
|
@ -273,7 +326,7 @@ class GroupController extends Controller
|
||||||
return new Response(json_encode($output), 200);
|
return new Response(json_encode($output), 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ajaxusersinAction($id,Request $request)
|
public function ajaxusersinAction($id,Request $request,$access="config")
|
||||||
{
|
{
|
||||||
// S'assurer que c'est un appel ajax
|
// S'assurer que c'est un appel ajax
|
||||||
if (!$request->isXmlHttpRequest()) {
|
if (!$request->isXmlHttpRequest()) {
|
||||||
|
@ -298,7 +351,7 @@ class GroupController extends Controller
|
||||||
|
|
||||||
// Nombre total d'enregistrement
|
// Nombre total d'enregistrement
|
||||||
$qb = $em->createQueryBuilder();
|
$qb = $em->createQueryBuilder();
|
||||||
if($this->isGranted('ROLE_ADMIN'))
|
if($this->isGranted('ROLE_ADMIN')||$access=="user")
|
||||||
$qb->select('COUNT(user)')
|
$qb->select('COUNT(user)')
|
||||||
->from('CadolesCoreBundle:User','user')
|
->from('CadolesCoreBundle:User','user')
|
||||||
->where($qb->expr()->exists($sub->getDQL()))
|
->where($qb->expr()->exists($sub->getDQL()))
|
||||||
|
@ -320,7 +373,7 @@ class GroupController extends Controller
|
||||||
if($search["value"]=="")
|
if($search["value"]=="")
|
||||||
$totalf = $total;
|
$totalf = $total;
|
||||||
else {
|
else {
|
||||||
if($this->isGranted('ROLE_ADMIN'))
|
if($this->isGranted('ROLE_ADMIN')||$access=="user")
|
||||||
$totalf= $em->createQueryBuilder()
|
$totalf= $em->createQueryBuilder()
|
||||||
->select('COUNT(user)')
|
->select('COUNT(user)')
|
||||||
->from('CadolesCoreBundle:User','user')
|
->from('CadolesCoreBundle:User','user')
|
||||||
|
@ -359,7 +412,7 @@ class GroupController extends Controller
|
||||||
$qb = $em->createQueryBuilder();
|
$qb = $em->createQueryBuilder();
|
||||||
$qb->select('user')->from("CadolesCoreBundle:User",'user');
|
$qb->select('user')->from("CadolesCoreBundle:User",'user');
|
||||||
|
|
||||||
if($this->isGranted('ROLE_ADMIN'))
|
if($this->isGranted('ROLE_ADMIN')||$access=="user")
|
||||||
$qb->where($qb->expr()->exists($sub->getDQL()));
|
$qb->where($qb->expr()->exists($sub->getDQL()));
|
||||||
else
|
else
|
||||||
$qb->from('CadolesCoreBundle:UserModo','usermodo')
|
$qb->from('CadolesCoreBundle:UserModo','usermodo')
|
||||||
|
@ -386,10 +439,13 @@ class GroupController extends Controller
|
||||||
$datas=$qb->setFirstResult($start)->setMaxResults($length)->getQuery()->getResult();
|
$datas=$qb->setFirstResult($start)->setMaxResults($length)->getQuery()->getResult();
|
||||||
|
|
||||||
foreach($datas as $data) {
|
foreach($datas as $data) {
|
||||||
|
// Propriétaire
|
||||||
|
$usergroup=$em->getRepository("CadolesCoreBundle:UserGroup")->findOneBy(["user"=>$data->getId(),"group"=>$id]);
|
||||||
|
$fgproprio=($usergroup->getUser()==$group->getOwner());
|
||||||
|
|
||||||
// Action
|
// Action
|
||||||
$action = "";
|
$action = "";
|
||||||
if($group->getLdapfilter()==""&&$group->getAttributes()=="")
|
if($group->getLdapfilter()==""&&$group->getAttributes()==""&&!$fgproprio)
|
||||||
$action.="<a style='cursor:pointer' onClick='delUsers(".$data->getId().")'><i class='fa fa-minus fa-fw'></i></a>";
|
$action.="<a style='cursor:pointer' onClick='delUsers(".$data->getId().")'><i class='fa fa-minus fa-fw'></i></a>";
|
||||||
|
|
||||||
// Avatar
|
// Avatar
|
||||||
|
@ -398,9 +454,11 @@ class GroupController extends Controller
|
||||||
// Flag manager
|
// Flag manager
|
||||||
$fgmanager="";
|
$fgmanager="";
|
||||||
if($fgcanshare) {
|
if($fgcanshare) {
|
||||||
$usergroup=$em->getRepository("CadolesCoreBundle:UserGroup")->findOneBy(["user"=>$data->getId(),"group"=>$id]);
|
|
||||||
$checked=($usergroup->getFgmanager()?"checked":"");
|
$checked=($usergroup->getFgmanager()?"checked":"");
|
||||||
$fgmanager="<input type='checkbox' class='switch' onChange='switchManager(".$data->getId().");' $checked>";
|
$fgmanager="<input type='checkbox' class='switch' onChange='switchManager(".$data->getId().");' $checked>";
|
||||||
|
if($fgproprio) $fgmanager="Propriétaire du groupe";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -411,7 +469,7 @@ class GroupController extends Controller
|
||||||
return new Response(json_encode($output), 200);
|
return new Response(json_encode($output), 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function usergroupaddAction(Request $request)
|
public function usergroupaddAction(Request $request,$access="config")
|
||||||
{
|
{
|
||||||
// S'assurer que c'est un appel ajax
|
// S'assurer que c'est un appel ajax
|
||||||
if (!$request->isXmlHttpRequest()) {
|
if (!$request->isXmlHttpRequest()) {
|
||||||
|
@ -428,18 +486,25 @@ class GroupController extends Controller
|
||||||
if($group->getFgAll()||$group->getFgtemplate())
|
if($group->getFgAll()||$group->getFgtemplate())
|
||||||
throw $this->createNotFoundException('Permission denied');
|
throw $this->createNotFoundException('Permission denied');
|
||||||
|
|
||||||
|
$key = Uuid::uuid4();
|
||||||
$usergroup=new Usergroup;
|
$usergroup=new Usergroup;
|
||||||
$usergroup->setUser($em->getRepository("CadolesCoreBundle:User")->find($userid));
|
$user=$em->getRepository("CadolesCoreBundle:User")->find($userid);
|
||||||
|
$usergroup->setUser($user);
|
||||||
$usergroup->setGroup($group);
|
$usergroup->setGroup($group);
|
||||||
|
$usergroup->setKeyvalue($key);
|
||||||
$em->persist($usergroup);
|
$em->persist($usergroup);
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
||||||
|
$user=$em->getRepository("CadolesCoreBundle:User")->find($userid);
|
||||||
|
$message="Inscription de l'utilisateur<br>".$user->getLastname()." ".$user->getFirstname()."<br>Par ".$this->getUser()->getLastname()." ".$this->getUser()->getFirstname();
|
||||||
|
$websocket = $this->container->get('cadoles.websocket.pushmessage')->send($key->toString(),$userid,$groupid,$message);
|
||||||
|
|
||||||
$response = new Response(json_encode($output));
|
$response = new Response(json_encode($output));
|
||||||
$response->headers->set('Content-Type', 'application/json');
|
$response->headers->set('Content-Type', 'application/json');
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function usergroupdelAction(Request $request)
|
public function usergroupdelAction(Request $request,$access="config")
|
||||||
{
|
{
|
||||||
// S'assurer que c'est un appel ajax
|
// S'assurer que c'est un appel ajax
|
||||||
if (!$request->isXmlHttpRequest()) {
|
if (!$request->isXmlHttpRequest()) {
|
||||||
|
@ -457,15 +522,21 @@ class GroupController extends Controller
|
||||||
throw $this->createNotFoundException('Permission denied');
|
throw $this->createNotFoundException('Permission denied');
|
||||||
|
|
||||||
$data = $em->getRepository("CadolesCoreBundle:Usergroup")->findOneBy(array("user"=>$userid,"group"=>$groupid));
|
$data = $em->getRepository("CadolesCoreBundle:Usergroup")->findOneBy(array("user"=>$userid,"group"=>$groupid));
|
||||||
|
$user=$em->getRepository("CadolesCoreBundle:User")->find($userid);
|
||||||
|
$message="Désinscription de l'utilisateur<br>".$user->getLastname()." ".$user->getFirstname()."<br>Par ".$this->getUser()->getLastname()." ".$this->getUser()->getFirstname();;
|
||||||
|
$websocket = $this->container->get('cadoles.websocket.pushmessage')->send($data->getKeyvalue(),$userid,$groupid,$message);
|
||||||
|
|
||||||
|
|
||||||
$em->remove($data);
|
$em->remove($data);
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
||||||
|
|
||||||
$response = new Response(json_encode($output));
|
$response = new Response(json_encode($output));
|
||||||
$response->headers->set('Content-Type', 'application/json');
|
$response->headers->set('Content-Type', 'application/json');
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function switchmanagerAction(Request $request)
|
public function switchmanagerAction(Request $request,$access="config")
|
||||||
{
|
{
|
||||||
// S'assurer que c'est un appel ajax
|
// S'assurer que c'est un appel ajax
|
||||||
if (!$request->isXmlHttpRequest()) {
|
if (!$request->isXmlHttpRequest()) {
|
||||||
|
@ -496,15 +567,18 @@ class GroupController extends Controller
|
||||||
// Initialisation de l'enregistrement
|
// Initialisation de l'enregistrement
|
||||||
$data = new Group();
|
$data = new Group();
|
||||||
$data->setFgopen(false);
|
$data->setFgopen(false);
|
||||||
$data->setFgcanshare(false);
|
$data->setFgcanshare(($access=="user"));
|
||||||
$data->setFgcancreatepage(false);
|
$data->setFgcancreatepage(false);
|
||||||
$data->setFgcancreatecalendar(false);
|
$data->setFgcancreatecalendar(false);
|
||||||
$data->setFgcancreateblog(false);
|
$data->setFgcancreateblog(false);
|
||||||
|
if($access=="user") $data->setOwner($this->getUser());
|
||||||
|
|
||||||
// Création du formulaire
|
// Création du formulaire
|
||||||
$form = $this->createForm(GroupType::class,$data,array(
|
$form = $this->createForm(GroupType::class,$data,array(
|
||||||
"mode"=>"submit",
|
"mode"=>"submit",
|
||||||
|
"fgall"=>false,
|
||||||
"updatelimite"=>false,
|
"updatelimite"=>false,
|
||||||
|
"access"=>$access,
|
||||||
"masteridentity"=> $this->GetParameter("masteridentity"),
|
"masteridentity"=> $this->GetParameter("masteridentity"),
|
||||||
"portal_activate"=>$this->getParameter("portal_activate")
|
"portal_activate"=>$this->getParameter("portal_activate")
|
||||||
)
|
)
|
||||||
|
@ -533,12 +607,24 @@ class GroupController extends Controller
|
||||||
$em->persist($data);
|
$em->persist($data);
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
||||||
|
// Si acces par user on ajoute forcement le owner comme membre du groupe en tant que manager
|
||||||
|
if($access=="user") {
|
||||||
|
$key = Uuid::uuid4();
|
||||||
|
$usergroup=new Usergroup;
|
||||||
|
$usergroup->setUser($this->getUser());
|
||||||
|
$usergroup->setGroup($data);
|
||||||
|
$usergroup->setFgmanager(true);
|
||||||
|
$usergroup->setKeyvalue($key);
|
||||||
|
$em->persist($usergroup);
|
||||||
|
$em->flush();
|
||||||
|
}
|
||||||
|
|
||||||
// On s'assure que le groupe de travail à bien page d'accueil / calendrier / blog associé
|
// On s'assure que le groupe de travail à bien page d'accueil / calendrier / blog associé
|
||||||
// Sinon on les génère
|
// Sinon on les génère
|
||||||
$this->ctrlFgcanshare($data);
|
$this->ctrlFgcanshare($data,$access);
|
||||||
|
|
||||||
// Retour à la liste
|
// Retour à la liste
|
||||||
return $this->redirectToRoute("cadoles_core_config_group_users",["id"=>$data->getId()]);
|
return $this->redirectToRoute("cadoles_core_".$access."_group_users",["id"=>$data->getId()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Affichage du formulaire
|
// Affichage du formulaire
|
||||||
|
@ -549,10 +635,10 @@ class GroupController extends Controller
|
||||||
return $this->render($this->labelentity.':edit.html.twig', [
|
return $this->render($this->labelentity.':edit.html.twig', [
|
||||||
'useheader' => true,
|
'useheader' => true,
|
||||||
'usemenu' => false,
|
'usemenu' => false,
|
||||||
'usesidebar' => true,
|
'usesidebar' => ($access=="config"),
|
||||||
$this->labeldata => $data,
|
$this->labeldata => $data,
|
||||||
'mode' => 'submit',
|
'mode' => 'submit',
|
||||||
'access' => 'access',
|
'access' => $access,
|
||||||
'icons' => $icons,
|
'icons' => $icons,
|
||||||
'iconsuser' => $iconsuser,
|
'iconsuser' => $iconsuser,
|
||||||
'form' => $form->createView()
|
'form' => $form->createView()
|
||||||
|
@ -568,6 +654,8 @@ class GroupController extends Controller
|
||||||
// Création du formulaire
|
// Création du formulaire
|
||||||
$form = $this->createForm(GroupType::class,$data,array(
|
$form = $this->createForm(GroupType::class,$data,array(
|
||||||
"mode" => "update",
|
"mode" => "update",
|
||||||
|
"access" => $access,
|
||||||
|
"fgall" => $data->getFgAll(),
|
||||||
"updatelimite" => ($data->getFgAll()||$data->getFgTemplate()),
|
"updatelimite" => ($data->getFgAll()||$data->getFgTemplate()),
|
||||||
"masteridentity" => $this->GetParameter("masteridentity"),
|
"masteridentity" => $this->GetParameter("masteridentity"),
|
||||||
"portal_activate" => $this->getParameter("portal_activate"),
|
"portal_activate" => $this->getParameter("portal_activate"),
|
||||||
|
@ -602,21 +690,21 @@ class GroupController extends Controller
|
||||||
|
|
||||||
// On s'assure que le groupe de travail à bien page d'accueil / calendrier / blog associé
|
// On s'assure que le groupe de travail à bien page d'accueil / calendrier / blog associé
|
||||||
// Sinon on les génère
|
// Sinon on les génère
|
||||||
$this->ctrlFgcanshare($data);
|
$this->ctrlFgcanshare($data,$access);
|
||||||
|
|
||||||
// Retour à la liste
|
// Retour à la liste
|
||||||
return $this->redirectToRoute($this->labelroute);
|
return $this->redirectToRoute("cadoles_core_".$access."_group");
|
||||||
}
|
}
|
||||||
|
|
||||||
$icons=$em->getRepository("CadolesPortalBundle:Icon")->findBy(["user"=>null]);
|
$icons=$em->getRepository("CadolesPortalBundle:Icon")->findBy(["user"=>null]);
|
||||||
$iconsuser=null;
|
$iconsuser=null;
|
||||||
if($access=="user") $iconsuser=$em()->getRepository("CadolesPortalBundle:Icon")->findBy(["user"=>$this->getUser()]);
|
if($access=="user") $iconsuser=$em->getRepository("CadolesPortalBundle:Icon")->findBy(["user"=>$this->getUser()]);
|
||||||
|
|
||||||
// Affichage du formulaire
|
// Affichage du formulaire
|
||||||
return $this->render($this->labelentity.':edit.html.twig', [
|
return $this->render($this->labelentity.':edit.html.twig', [
|
||||||
'useheader' => true,
|
'useheader' => true,
|
||||||
'usemenu' => false,
|
'usemenu' => false,
|
||||||
'usesidebar' => true,
|
'usesidebar' => ($access=="config"),
|
||||||
$this->labeldata => $data,
|
$this->labeldata => $data,
|
||||||
'mode' => 'update',
|
'mode' => 'update',
|
||||||
'access' => $access,
|
'access' => $access,
|
||||||
|
@ -626,10 +714,12 @@ class GroupController extends Controller
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function deleteAction($id,Request $request)
|
public function deleteAction($id,Request $request, $access="config")
|
||||||
{
|
{
|
||||||
|
$em = $this->getDoctrine()->getManager();
|
||||||
|
|
||||||
// Seule role admin peut supprimer un groupe
|
// Seule role admin peut supprimer un groupe
|
||||||
if(!$this->isGranted('ROLE_ADMIN'))
|
if($access=="config"&&!$this->isGranted('ROLE_ADMIN'))
|
||||||
return $this->redirectToRoute($this->labelroute);
|
return $this->redirectToRoute($this->labelroute);
|
||||||
|
|
||||||
// Récupération de l'enregistrement courant
|
// Récupération de l'enregistrement courant
|
||||||
|
@ -656,25 +746,31 @@ class GroupController extends Controller
|
||||||
|
|
||||||
// Sur validation
|
// Sur validation
|
||||||
if ($form->get('submit')->isClicked() && $form->isValid()) {
|
if ($form->get('submit')->isClicked() && $form->isValid()) {
|
||||||
$em = $this->getDoctrine()->getManager();
|
|
||||||
$em->remove($data);
|
$em->remove($data);
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
||||||
return $this->redirectToRoute($this->labelroute);
|
return $this->redirectToRoute("cadoles_core_".$access."_group");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$icons=$em->getRepository("CadolesPortalBundle:Icon")->findBy(["user"=>null]);
|
||||||
|
$iconsuser=null;
|
||||||
|
if($access=="user") $iconsuser=$em->getRepository("CadolesPortalBundle:Icon")->findBy(["user"=>$this->getUser()]);
|
||||||
|
|
||||||
// Affichage du formulaire
|
// Affichage du formulaire
|
||||||
return $this->render($this->labelentity.':edit.html.twig', [
|
return $this->render($this->labelentity.':edit.html.twig', [
|
||||||
'useheader' => true,
|
'useheader' => true,
|
||||||
'usemenu' => false,
|
'usemenu' => false,
|
||||||
'usesidebar' => true,
|
'usesidebar' => ($access=="config"),
|
||||||
$this->labeldata => $data,
|
$this->labeldata => $data,
|
||||||
'mode' => 'delete',
|
'mode' => 'delete',
|
||||||
|
'access' => $access,
|
||||||
|
'icons' => $icons,
|
||||||
|
'iconsuser' => $iconsuser,
|
||||||
'form' => $form->createView()
|
'form' => $form->createView()
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function usersAction($id,Request $request)
|
public function usersAction($id,Request $request, $access="config")
|
||||||
{
|
{
|
||||||
// Récupération de l'enregistrement courant
|
// Récupération de l'enregistrement courant
|
||||||
$data=$this->getData($id);
|
$data=$this->getData($id);
|
||||||
|
@ -683,12 +779,13 @@ class GroupController extends Controller
|
||||||
return $this->render($this->labelentity.':users.html.twig', [
|
return $this->render($this->labelentity.':users.html.twig', [
|
||||||
'useheader' => true,
|
'useheader' => true,
|
||||||
'usemenu' => false,
|
'usemenu' => false,
|
||||||
'usesidebar' => true,
|
'usesidebar' => ($access=="config"),
|
||||||
|
'access' => $access,
|
||||||
$this->labeldata => $data
|
$this->labeldata => $data
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function ctrlFgcanshare($group) {
|
protected function ctrlFgcanshare($group,$access) {
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
|
|
||||||
if($group->getFgcanshare()) {
|
if($group->getFgcanshare()) {
|
||||||
|
@ -697,6 +794,7 @@ class GroupController extends Controller
|
||||||
$page=$this->getDoctrine()->getRepository("CadolesPortalBundle:Page")->clonePage(null,$group->getPagetemplate());
|
$page=$this->getDoctrine()->getRepository("CadolesPortalBundle:Page")->clonePage(null,$group->getPagetemplate());
|
||||||
$group->addPage($page);
|
$group->addPage($page);
|
||||||
$page->setName("Groupe = ".$group->getLabel());
|
$page->setName("Groupe = ".$group->getLabel());
|
||||||
|
if($access=="user")$page->setUser($this->getUser());
|
||||||
|
|
||||||
$em->persist($page);
|
$em->persist($page);
|
||||||
$em->persist($group);
|
$em->persist($group);
|
||||||
|
@ -713,6 +811,7 @@ class GroupController extends Controller
|
||||||
$calendar->addGroup($group);
|
$calendar->addGroup($group);
|
||||||
$calendar->setColor($group->getColor());
|
$calendar->setColor($group->getColor());
|
||||||
$calendar->setType(0);
|
$calendar->setType(0);
|
||||||
|
if($access=="user")$calendar->setUser($this->getUser());
|
||||||
|
|
||||||
$em->persist($calendar);
|
$em->persist($calendar);
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
@ -724,6 +823,7 @@ class GroupController extends Controller
|
||||||
|
|
||||||
$blog->setName("Groupe = ".$group->getLabel());
|
$blog->setName("Groupe = ".$group->getLabel());
|
||||||
$blog->addGroup($group);
|
$blog->addGroup($group);
|
||||||
|
if($access=="user")$blog->setUser($this->getUser());
|
||||||
|
|
||||||
$em->persist($blog);
|
$em->persist($blog);
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
|
@ -22,6 +22,7 @@ use Cadoles\CoreBundle\Entity\UserGroup;
|
||||||
use Cadoles\CoreBundle\Entity\UserModo;
|
use Cadoles\CoreBundle\Entity\UserModo;
|
||||||
use Cadoles\CoreBundle\Entity\Niveau01;
|
use Cadoles\CoreBundle\Entity\Niveau01;
|
||||||
use Cadoles\CoreBundle\Entity\Niveau02;
|
use Cadoles\CoreBundle\Entity\Niveau02;
|
||||||
|
use Cadoles\WebsocketBundle\Entity\Message;
|
||||||
|
|
||||||
use Cadoles\CoreBundle\Form\UserType;
|
use Cadoles\CoreBundle\Form\UserType;
|
||||||
|
|
||||||
|
@ -66,7 +67,7 @@ class UserController extends Controller
|
||||||
$viewniveau02=$this->getParameter('viewniveau02');
|
$viewniveau02=$this->getParameter('viewniveau02');
|
||||||
|
|
||||||
// Nombre total d'enregistrement
|
// Nombre total d'enregistrement
|
||||||
if($this->isGranted('ROLE_ADMIN'))
|
if($this->isGranted('ROLE_ADMIN')||$access=="user")
|
||||||
$total = $em->createQueryBuilder()->select('COUNT(user)')->from($this->labelentity,'user')->getQuery()->getSingleScalarResult();
|
$total = $em->createQueryBuilder()->select('COUNT(user)')->from($this->labelentity,'user')->getQuery()->getSingleScalarResult();
|
||||||
elseif($this->isGranted('ROLE_MODO')) {
|
elseif($this->isGranted('ROLE_MODO')) {
|
||||||
$usermodo=$this->get('security.token_storage')->getToken()->getUser()->getId();
|
$usermodo=$this->get('security.token_storage')->getToken()->getUser()->getId();
|
||||||
|
@ -79,7 +80,7 @@ class UserController extends Controller
|
||||||
->setParameter("userid", $usermodo)
|
->setParameter("userid", $usermodo)
|
||||||
->getQuery()->getSingleScalarResult();
|
->getQuery()->getSingleScalarResult();
|
||||||
}
|
}
|
||||||
elseif($this->isGranted('ROLE_USER')) {
|
elseif($this->isGranted('ROLE_ANIM')||$this->isGranted('ROLE_USER')) {
|
||||||
$niveau01=$this->get('security.token_storage')->getToken()->getUser()->getNiveau01();
|
$niveau01=$this->get('security.token_storage')->getToken()->getUser()->getNiveau01();
|
||||||
$total = $em->createQueryBuilder()
|
$total = $em->createQueryBuilder()
|
||||||
->select('COUNT(user)')
|
->select('COUNT(user)')
|
||||||
|
@ -93,7 +94,7 @@ class UserController extends Controller
|
||||||
if($search["value"]=="")
|
if($search["value"]=="")
|
||||||
$totalf = $total;
|
$totalf = $total;
|
||||||
else {
|
else {
|
||||||
if($this->isGranted('ROLE_ADMIN'))
|
if($this->isGranted('ROLE_ADMIN')||$access=="user")
|
||||||
$totalf= $em->createQueryBuilder()
|
$totalf= $em->createQueryBuilder()
|
||||||
->select('COUNT(user)')
|
->select('COUNT(user)')
|
||||||
->from('CadolesCoreBundle:User','user')
|
->from('CadolesCoreBundle:User','user')
|
||||||
|
@ -117,7 +118,7 @@ class UserController extends Controller
|
||||||
->setParameter("value", "%".$search["value"]."%")
|
->setParameter("value", "%".$search["value"]."%")
|
||||||
->getQuery()
|
->getQuery()
|
||||||
->getSingleScalarResult();
|
->getSingleScalarResult();
|
||||||
elseif($this->isGranted('ROLE_USER'))
|
elseif($this->isGranted('ROLE_ANIM')||$this->isGranted('ROLE_USER'))
|
||||||
$totalf= $em->createQueryBuilder()
|
$totalf= $em->createQueryBuilder()
|
||||||
->select('COUNT(user)')
|
->select('COUNT(user)')
|
||||||
->from('CadolesCoreBundle:User','user')
|
->from('CadolesCoreBundle:User','user')
|
||||||
|
@ -141,7 +142,7 @@ class UserController extends Controller
|
||||||
|
|
||||||
// Parcours des Enregistrement
|
// Parcours des Enregistrement
|
||||||
$qb = $em->createQueryBuilder();
|
$qb = $em->createQueryBuilder();
|
||||||
if($this->isGranted('ROLE_ADMIN')) {
|
if($this->isGranted('ROLE_ADMIN')||$access=="user") {
|
||||||
$qb->select('user')->from($this->labelentity,'user')->from('CadolesCoreBundle:Niveau01','niveau01');
|
$qb->select('user')->from($this->labelentity,'user')->from('CadolesCoreBundle:Niveau01','niveau01');
|
||||||
$qb->where('user.niveau01=niveau01.id');
|
$qb->where('user.niveau01=niveau01.id');
|
||||||
}
|
}
|
||||||
|
@ -152,7 +153,7 @@ class UserController extends Controller
|
||||||
->andWhere("usermodo.user = :userid")
|
->andWhere("usermodo.user = :userid")
|
||||||
->setParameter("userid", $usermodo);
|
->setParameter("userid", $usermodo);
|
||||||
}
|
}
|
||||||
elseif($this->isGranted('ROLE_USER')) {
|
elseif($this->isGranted('ROLE_ANIM')||$this->isGranted('ROLE_USER')) {
|
||||||
$qb->select('user')->from($this->labelentity,'user')->from('CadolesCoreBundle:Niveau01','niveau01');
|
$qb->select('user')->from($this->labelentity,'user')->from('CadolesCoreBundle:Niveau01','niveau01');
|
||||||
$qb->where('user.niveau01=niveau01.id')
|
$qb->where('user.niveau01=niveau01.id')
|
||||||
->andwhere("user.niveau01 = :niveau01")
|
->andwhere("user.niveau01 = :niveau01")
|
||||||
|
@ -310,14 +311,20 @@ class UserController extends Controller
|
||||||
|
|
||||||
// Ajout des groupes
|
// Ajout des groupes
|
||||||
foreach($lstgroups as $idgroup) {
|
foreach($lstgroups as $idgroup) {
|
||||||
$group= new UserGroup();
|
$group=$em->getRepository("CadolesCoreBundle:Group")->find($idgroup);
|
||||||
|
|
||||||
$group->setUser($data);
|
$key = Uuid::uuid4();
|
||||||
$datagroup = $em->getRepository("CadolesCoreBundle:Group")->find($idgroup);
|
|
||||||
$group->setGroup($datagroup);
|
|
||||||
|
|
||||||
$em->persist($group);
|
$usergroup= new UserGroup();
|
||||||
|
$usergroup->setUser($data);
|
||||||
|
$datagroup = $group;
|
||||||
|
$usergroup->setGroup($datagroup);
|
||||||
|
$usergroup->setKeyvalue($key);
|
||||||
|
$em->persist($usergroup);
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
||||||
|
$message="Inscription de l'utilisateur<br>".$data->getLastname()." ".$data->getFirstname()."<br>Par ".$this->getUser()->getLastname()." ".$this->getUser()->getFirstname();
|
||||||
|
$websocket = $this->container->get('cadoles.websocket.pushmessage')->send($key->toString(),$iduser,$idgroup,$message);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ajout des modos
|
// Ajout des modos
|
||||||
|
@ -420,25 +427,35 @@ class UserController extends Controller
|
||||||
$em->persist($data);
|
$em->persist($data);
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
||||||
|
|
||||||
// On récupère les groupes et on cacule ceux à ajouter ou à supprimer
|
// On récupère les groupes et on cacule ceux à ajouter ou à supprimer
|
||||||
$lstgroups=array_filter(explode(",",$form->get("linkgroups")->getData()));
|
$lstgroups=array_filter(explode(",",$form->get("linkgroups")->getData()));
|
||||||
$removegroups=array_diff($oldlstgroups,$lstgroups);
|
$removegroups=array_diff($oldlstgroups,$lstgroups);
|
||||||
$addgroups=array_diff($lstgroups,$oldlstgroups);
|
$addgroups=array_diff($lstgroups,$oldlstgroups);
|
||||||
|
|
||||||
|
|
||||||
// Ajout des nouveaux groupes
|
// Ajout des nouveaux groupes
|
||||||
foreach($addgroups as $idgroup) {
|
foreach($addgroups as $idgroup) {
|
||||||
$group= new UserGroup();
|
$group=$em->getRepository("CadolesCoreBundle:Group")->find($idgroup);
|
||||||
|
|
||||||
$group->setUser($data);
|
$key = Uuid::uuid4();
|
||||||
$datagroup = $em->getRepository("CadolesCoreBundle:Group")->find($idgroup);
|
|
||||||
$group->setGroup($datagroup);
|
|
||||||
|
|
||||||
$em->persist($group);
|
$usergroup= new UserGroup();
|
||||||
|
$usergroup->setUser($data);
|
||||||
|
$datagroup = $group;
|
||||||
|
$usergroup->setGroup($datagroup);
|
||||||
|
$usergroup->setKeyvalue($key);
|
||||||
|
$em->persist($usergroup);
|
||||||
$em->flush();
|
$em->flush();
|
||||||
|
|
||||||
|
$message="Inscription de l'utilisateur<br>".$data->getLastname()." ".$data->getFirstname()."<br>Par ".$this->getUser()->getLastname()." ".$this->getUser()->getFirstname();
|
||||||
|
$websocket = $this->container->get('cadoles.websocket.pushmessage')->send($key->toString(),$id,$idgroup,$message);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Suppression des groupes obsolètes
|
// Suppression des groupes obsolètes
|
||||||
foreach($removegroups as $idgroup) {
|
foreach($removegroups as $idgroup) {
|
||||||
|
$group=$em->getRepository("CadolesCoreBundle:Group")->find($idgroup);
|
||||||
|
|
||||||
// Lien Group User
|
// Lien Group User
|
||||||
$usergroups = $em ->createQueryBuilder()
|
$usergroups = $em ->createQueryBuilder()
|
||||||
->select('table')
|
->select('table')
|
||||||
|
@ -449,6 +466,9 @@ class UserController extends Controller
|
||||||
->getQuery()
|
->getQuery()
|
||||||
->getResult();
|
->getResult();
|
||||||
foreach($usergroups as $usergroup) {
|
foreach($usergroups as $usergroup) {
|
||||||
|
$message="Désinscription de l'utilisateur<br>".$data->getLastname()." ".$data->getFirstname()."<br>Par ".$this->getUser()->getLastname()." ".$this->getUser()->getFirstname();
|
||||||
|
$websocket = $this->container->get('cadoles.websocket.pushmessage')->send($usergroup->getKeyvalue(),$id,$idgroup,$message);
|
||||||
|
|
||||||
$em->remove($usergroup);
|
$em->remove($usergroup);
|
||||||
$em->flush();
|
$em->flush();
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,8 @@ use Doctrine\Common\EventSubscriber;
|
||||||
use Doctrine\ORM\Event\LifecycleEventArgs;
|
use Doctrine\ORM\Event\LifecycleEventArgs;
|
||||||
use Doctrine\ORM\Event\PreUpdateEventArgs;
|
use Doctrine\ORM\Event\PreUpdateEventArgs;
|
||||||
use Doctrine\ORM\EntityManager;
|
use Doctrine\ORM\EntityManager;
|
||||||
|
use Ramsey\Uuid\Uuid;
|
||||||
|
use Ramsey\Uuid\Exception\UnsatisfiedDependencyException;
|
||||||
|
|
||||||
class syncUser implements EventSubscriber
|
class syncUser implements EventSubscriber
|
||||||
{
|
{
|
||||||
|
@ -143,9 +145,11 @@ class syncUser implements EventSubscriber
|
||||||
if($fgall) {
|
if($fgall) {
|
||||||
$data=$this->em->getRepository('CadolesCoreBundle:UserGroup')->findBy(array('user'=>$user,'group'=>$fgall[0]));
|
$data=$this->em->getRepository('CadolesCoreBundle:UserGroup')->findBy(array('user'=>$user,'group'=>$fgall[0]));
|
||||||
if(!$data) {
|
if(!$data) {
|
||||||
|
$key = Uuid::uuid4();
|
||||||
$data=new UserGroup();
|
$data=new UserGroup();
|
||||||
$data->setUser($user);
|
$data->setUser($user);
|
||||||
$data->setGroup($fgall[0]);
|
$data->setGroup($fgall[0]);
|
||||||
|
$data->setKeyvalue($key);
|
||||||
$this->em->persist($data);
|
$this->em->persist($data);
|
||||||
$this->em->flush();
|
$this->em->flush();
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,15 +33,18 @@ class GroupType extends AbstractType
|
||||||
|
|
||||||
if($options["portal_activate"]) {
|
if($options["portal_activate"]) {
|
||||||
$choices=array("oui" => "1","non" => "0");
|
$choices=array("oui" => "1","non" => "0");
|
||||||
|
|
||||||
|
if(!$options["fgall"]) {
|
||||||
$builder->add("fgcanshare",
|
$builder->add("fgcanshare",
|
||||||
ChoiceType::class,array(
|
ChoiceType::class,array(
|
||||||
"label" =>"Groupe de Travail",
|
"label" =>"Groupe de Travail",
|
||||||
'disabled' => ($options["mode"]=="delete"?true:false),
|
'disabled' => ($options["mode"]=="delete"||$options["access"]=="user"?true:false),
|
||||||
"attr" => array("class" => "form-control", "style" => "margin-bottom:15px"),
|
"attr" => array("class" => "form-control", "style" => "margin-bottom:15px"),
|
||||||
"choices" => $choices
|
"choices" => $choices
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
$builder->add('pagetemplate',
|
$builder->add('pagetemplate',
|
||||||
EntityType::class,[
|
EntityType::class,[
|
||||||
"class" => "CadolesPortalBundle:Page",
|
"class" => "CadolesPortalBundle:Page",
|
||||||
|
@ -54,7 +57,9 @@ class GroupType extends AbstractType
|
||||||
"disabled" => ($options["mode"]=="delete"||$options["masteridentity"]!="SQL"?true:false),
|
"disabled" => ($options["mode"]=="delete"||$options["masteridentity"]!="SQL"?true:false),
|
||||||
"attr" => array("class" => "form-control", "style" => "margin-bottom:15px","readonly" => ($options["mode"]=="delete"?true:false))
|
"attr" => array("class" => "form-control", "style" => "margin-bottom:15px","readonly" => ($options["mode"]=="delete"?true:false))
|
||||||
]);
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if($options["access"]=="config") {
|
||||||
$builder->add("fgcancreatepage",
|
$builder->add("fgcancreatepage",
|
||||||
ChoiceType::class,array(
|
ChoiceType::class,array(
|
||||||
"label" =>"Permission de créer des Pages",
|
"label" =>"Permission de créer des Pages",
|
||||||
|
@ -202,6 +207,7 @@ class GroupType extends AbstractType
|
||||||
'placeholder' => 'Selectionner des chartes',
|
'placeholder' => 'Selectionner des chartes',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$builder->add('idicon', HiddenType::class,['mapped'=> false,'data' => $options["idicon"]]);
|
$builder->add('idicon', HiddenType::class,['mapped'=> false,'data' => $options["idicon"]]);
|
||||||
|
|
||||||
|
@ -293,9 +299,11 @@ class GroupType extends AbstractType
|
||||||
$resolver->setDefaults(array(
|
$resolver->setDefaults(array(
|
||||||
'data_class' => 'Cadoles\CoreBundle\Entity\Group',
|
'data_class' => 'Cadoles\CoreBundle\Entity\Group',
|
||||||
'mode' => "string",
|
'mode' => "string",
|
||||||
|
'access' => "string",
|
||||||
'masteridentity' => "string",
|
'masteridentity' => "string",
|
||||||
'portal_activate' => "boolean",
|
'portal_activate' => "boolean",
|
||||||
'updatelimite' => "boolean",
|
'updatelimite' => "boolean",
|
||||||
|
'fgall' => "boolean",
|
||||||
'idicon' => "string",
|
'idicon' => "string",
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@ class UserType extends AbstractType
|
||||||
);
|
);
|
||||||
|
|
||||||
if($options["access"]=="config") {
|
if($options["access"]=="config") {
|
||||||
$choices=array("Utilisateur" => "ROLE_USER","Modérateur" => "ROLE_MODO","Administrateur" => "ROLE_ADMIN");
|
$choices=array("Utilisateur" => "ROLE_USER","Animateur de Groupe" => "ROLE_ANIM","Modérateur" => "ROLE_MODO","Administrateur" => "ROLE_ADMIN");
|
||||||
$onfocus=($options["perm"]?"":"this.defaultIndex=this.selectedIndex;");
|
$onfocus=($options["perm"]?"":"this.defaultIndex=this.selectedIndex;");
|
||||||
$onchange=($options["perm"]?"":"this.selectedIndex=this.defaultIndex;");
|
$onchange=($options["perm"]?"":"this.selectedIndex=this.defaultIndex;");
|
||||||
$readonly=($options["perm"]?"":" background-color: #eee;");
|
$readonly=($options["perm"]?"":" background-color: #eee;");
|
||||||
|
|
|
@ -4,6 +4,8 @@ namespace Cadoles\CoreBundle\Repository;
|
||||||
|
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
use Cadoles\CoreBundle\Entity\UserGroup;
|
use Cadoles\CoreBundle\Entity\UserGroup;
|
||||||
|
use Ramsey\Uuid\Uuid;
|
||||||
|
use Ramsey\Uuid\Exception\UnsatisfiedDependencyException;
|
||||||
|
|
||||||
class GroupRepository extends \Doctrine\ORM\EntityRepository
|
class GroupRepository extends \Doctrine\ORM\EntityRepository
|
||||||
{
|
{
|
||||||
|
@ -56,9 +58,11 @@ class GroupRepository extends \Doctrine\ORM\EntityRepository
|
||||||
foreach($retgroups as $retgroup) {
|
foreach($retgroups as $retgroup) {
|
||||||
$usergroup=$this->_em->getRepository('CadolesCoreBundle:UserGroup')->findBy(["user"=>$user,"group"=>$retgroup]);
|
$usergroup=$this->_em->getRepository('CadolesCoreBundle:UserGroup')->findBy(["user"=>$user,"group"=>$retgroup]);
|
||||||
if(!$usergroup) {
|
if(!$usergroup) {
|
||||||
|
$key = Uuid::uuid4();
|
||||||
$usergroup=new UserGroup();
|
$usergroup=new UserGroup();
|
||||||
$usergroup->setUser($user);
|
$usergroup->setUser($user);
|
||||||
$usergroup->setGroup($retgroup);
|
$usergroup->setGroup($retgroup);
|
||||||
|
$usergroup->setKeyvalue($key);
|
||||||
|
|
||||||
$this->_em->persist($usergroup);
|
$this->_em->persist($usergroup);
|
||||||
$this->_em->flush();
|
$this->_em->flush();
|
||||||
|
|
|
@ -249,15 +249,15 @@ cadoles_core_config_importuser_filectrl:
|
||||||
defaults: { _controller: CadolesCoreBundle:User:importuserfilectrl }
|
defaults: { _controller: CadolesCoreBundle:User:importuserfilectrl }
|
||||||
|
|
||||||
#-- Access user
|
#-- Access user
|
||||||
cadoles_core_profil:
|
cadoles_core_user:
|
||||||
path: /user
|
path: /user
|
||||||
defaults: { _controller: CadolesCoreBundle:User:profil }
|
defaults: { _controller: CadolesCoreBundle:User:profil }
|
||||||
|
|
||||||
cadoles_core_profil_user_ajax_list:
|
cadoles_core_user_user_ajax_list:
|
||||||
path: /user/user/ajax/list
|
path: /user/user/ajax/list
|
||||||
defaults: { _controller: CadolesCoreBundle:User:ajaxlist, access: user }
|
defaults: { _controller: CadolesCoreBundle:User:ajaxlist, access: user }
|
||||||
|
|
||||||
cadoles_core_profil_users:
|
cadoles_core_user_users:
|
||||||
path: /user/users
|
path: /user/users
|
||||||
defaults: { _controller: CadolesCoreBundle:User:list, access: user }
|
defaults: { _controller: CadolesCoreBundle:User:list, access: user }
|
||||||
|
|
||||||
|
@ -311,50 +311,95 @@ cadoles_core_config_niveau02_ajax_list:
|
||||||
|
|
||||||
|
|
||||||
#== Group ================================================================================================================
|
#== Group ================================================================================================================
|
||||||
|
#-- Access config
|
||||||
cadoles_core_config_group:
|
cadoles_core_config_group:
|
||||||
path: /config/group
|
path: /config/group
|
||||||
defaults: { _controller: CadolesCoreBundle:Group:list }
|
defaults: { _controller: CadolesCoreBundle:Group:list, access: config }
|
||||||
|
|
||||||
cadoles_core_config_group_submit:
|
cadoles_core_config_group_submit:
|
||||||
path: /config/group/submit
|
path: /config/group/submit
|
||||||
defaults: { _controller: CadolesCoreBundle:Group:submit }
|
defaults: { _controller: CadolesCoreBundle:Group:submit, access: config }
|
||||||
|
|
||||||
cadoles_core_config_group_update:
|
cadoles_core_config_group_update:
|
||||||
path: /config/group/update/{id}
|
path: /config/group/update/{id}
|
||||||
defaults: { _controller: CadolesCoreBundle:Group:update }
|
defaults: { _controller: CadolesCoreBundle:Group:update, access: config }
|
||||||
|
|
||||||
cadoles_core_config_group_delete:
|
cadoles_core_config_group_delete:
|
||||||
path: /config/group/delete/{id}
|
path: /config/group/delete/{id}
|
||||||
defaults: { _controller: CadolesCoreBundle:Group:delete }
|
defaults: { _controller: CadolesCoreBundle:Group:delete, access: config }
|
||||||
|
|
||||||
cadoles_core_config_group_ajax_list:
|
cadoles_core_config_group_ajax_list:
|
||||||
path: /config/group/ajax/list
|
path: /config/group/ajax/list
|
||||||
defaults: { _controller: CadolesCoreBundle:Group:ajaxlist }
|
defaults: { _controller: CadolesCoreBundle:Group:ajaxlist, access: config }
|
||||||
|
|
||||||
cadoles_core_config_group_users:
|
cadoles_core_config_group_users:
|
||||||
path: /config/group/users/{id}
|
path: /config/group/users/{id}
|
||||||
defaults: { _controller: CadolesCoreBundle:Group:users }
|
defaults: { _controller: CadolesCoreBundle:Group:users, access: config }
|
||||||
|
|
||||||
cadoles_core_config_group_ajax_usersnotin:
|
cadoles_core_config_group_ajax_usersnotin:
|
||||||
path: /config/group/ajax/usersnotin/{id}
|
path: /config/group/ajax/usersnotin/{id}
|
||||||
defaults: { _controller: CadolesCoreBundle:Group:ajaxusersnotin }
|
defaults: { _controller: CadolesCoreBundle:Group:ajaxusersnotin, access: config }
|
||||||
|
|
||||||
cadoles_core_config_group_ajax_usersin:
|
cadoles_core_config_group_ajax_usersin:
|
||||||
path: /config/group/ajax/usersin/{id}
|
path: /config/group/ajax/usersin/{id}
|
||||||
defaults: { _controller: CadolesCoreBundle:Group:ajaxusersin }
|
defaults: { _controller: CadolesCoreBundle:Group:ajaxusersin, access: config }
|
||||||
|
|
||||||
cadoles_core_config_group_ajax_usergroup_add:
|
cadoles_core_config_group_ajax_usergroup_add:
|
||||||
path: /config/group/ajax/usergroupadd
|
path: /config/group/ajax/usergroupadd
|
||||||
defaults: { _controller: CadolesCoreBundle:Group:usergroupadd }
|
defaults: { _controller: CadolesCoreBundle:Group:usergroupadd, access: config }
|
||||||
|
|
||||||
cadoles_core_config_group_ajax_usergroup_del:
|
cadoles_core_config_group_ajax_usergroup_del:
|
||||||
path: /config/group/ajax/usergroupdel
|
path: /config/group/ajax/usergroupdel
|
||||||
defaults: { _controller: CadolesCoreBundle:Group:usergroupdel }
|
defaults: { _controller: CadolesCoreBundle:Group:usergroupdel, access: config }
|
||||||
|
|
||||||
cadoles_core_config_group_ajax_switchmanager:
|
cadoles_core_config_group_ajax_switchmanager:
|
||||||
path: /config/group/ajax/switchmanager
|
path: /config/group/ajax/switchmanager
|
||||||
defaults: { _controller: CadolesCoreBundle:Group:switchmanager }
|
defaults: { _controller: CadolesCoreBundle:Group:switchmanager, access: config }
|
||||||
|
|
||||||
|
#-- Access user
|
||||||
|
cadoles_core_user_group:
|
||||||
|
path: /user/group
|
||||||
|
defaults: { _controller: CadolesCoreBundle:Group:list, access: user }
|
||||||
|
|
||||||
|
cadoles_core_user_group_ajax_list:
|
||||||
|
path: /user/group/ajax/list
|
||||||
|
defaults: { _controller: CadolesCoreBundle:Group:ajaxlist, access: user }
|
||||||
|
|
||||||
|
cadoles_core_user_group_submit:
|
||||||
|
path: /user/group/submit
|
||||||
|
defaults: { _controller: CadolesCoreBundle:Group:submit, access: user }
|
||||||
|
|
||||||
|
cadoles_core_user_group_update:
|
||||||
|
path: /user/group/update/{id}
|
||||||
|
defaults: { _controller: CadolesCoreBundle:Group:update, access: user }
|
||||||
|
|
||||||
|
cadoles_core_user_group_delete:
|
||||||
|
path: /user/group/delete/{id}
|
||||||
|
defaults: { _controller: CadolesCoreBundle:Group:delete, access: user }
|
||||||
|
|
||||||
|
cadoles_core_user_group_users:
|
||||||
|
path: /user/group/users/{id}
|
||||||
|
defaults: { _controller: CadolesCoreBundle:Group:users, access: user }
|
||||||
|
|
||||||
|
cadoles_core_user_group_ajax_usersnotin:
|
||||||
|
path: /user/group/ajax/usersnotin/{id}
|
||||||
|
defaults: { _controller: CadolesCoreBundle:Group:ajaxusersnotin, access: user }
|
||||||
|
|
||||||
|
cadoles_core_user_group_ajax_usersin:
|
||||||
|
path: /user/group/ajax/usersin/{id}
|
||||||
|
defaults: { _controller: CadolesCoreBundle:Group:ajaxusersin, access: user }
|
||||||
|
|
||||||
|
cadoles_core_user_group_ajax_usergroup_add:
|
||||||
|
path: /user/group/ajax/usergroupadd
|
||||||
|
defaults: { _controller: CadolesCoreBundle:Group:usergroupadd, access: user }
|
||||||
|
|
||||||
|
cadoles_core_user_group_ajax_usergroup_del:
|
||||||
|
path: /user/group/ajax/usergroupdel
|
||||||
|
defaults: { _controller: CadolesCoreBundle:Group:usergroupdel, access: user }
|
||||||
|
|
||||||
|
cadoles_core_user_group_ajax_switchmanager:
|
||||||
|
path: /user/group/ajax/switchmanager
|
||||||
|
defaults: { _controller: CadolesCoreBundle:Group:switchmanager, access: user }
|
||||||
|
|
||||||
#== Whitelist ============================================================================================================
|
#== Whitelist ============================================================================================================
|
||||||
cadoles_core_config_whitelist:
|
cadoles_core_config_whitelist:
|
||||||
|
|
|
@ -42,6 +42,9 @@
|
||||||
<img id="logo" src="/{{ alias }}/{{ app.session.get('logo') }}">
|
<img id="logo" src="/{{ alias }}/{{ app.session.get('logo') }}">
|
||||||
<h1>{{ app.session.get('appname') }}</h1>
|
<h1>{{ app.session.get('appname') }}</h1>
|
||||||
<h2>Vous avez perdu votre connection</h2>
|
<h2>Vous avez perdu votre connection</h2>
|
||||||
|
ou
|
||||||
|
<h2>Vous n'avez plus accès à cette page</h2>
|
||||||
|
<br><br>
|
||||||
Vous allez être redirigé vers la page d'accueil
|
Vous allez être redirigé vers la page d'accueil
|
||||||
<br>
|
<br>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
{{ form_widget(form.submit) }} <a class="btn btn-default" href={{ path('cadoles_core_config_group') }}>Annuler</a>
|
{{ form_widget(form.submit) }} <a class="btn btn-default" href={{ path('cadoles_core_'~access~'_group') }}>Annuler</a>
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
{% if form.fgcanshare is defined %}
|
{% if form.fgcancreatepage is defined %}
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-pencil fa-fw"></i> Permissions Portail
|
<i class="fa fa-pencil fa-fw"></i> Permissions Portail
|
||||||
|
|
|
@ -1,13 +1,27 @@
|
||||||
{% extends '@CadolesCore/base.html.twig' %}
|
{% extends '@CadolesCore/base.html.twig' %}
|
||||||
|
|
||||||
{% block pagewrapper %}
|
{% block pagewrapper %}
|
||||||
<h1 class="page-header">Gestion des Groupes</h1>
|
<h1 class="page-header">
|
||||||
|
{%if access=="config" %}
|
||||||
|
Gestion des Groupes
|
||||||
|
{%else%}
|
||||||
|
Mes Groupes de Travail
|
||||||
|
{%endif%}
|
||||||
|
</h1>
|
||||||
|
|
||||||
<p><a class="btn btn-success" href={{ path('cadoles_core_config_group_submit') }}>Ajouter</a></p>
|
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_MODO') or is_granted('ROLE_ANIM') %}
|
||||||
|
<p><a class="btn btn-success" href={{ path('cadoles_core_'~access~'_group_submit') }}>
|
||||||
|
{% if access=="config" %}
|
||||||
|
Ajouter
|
||||||
|
{% else %}
|
||||||
|
Créer un Groupe de Travail
|
||||||
|
{% endif %}
|
||||||
|
</a></p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-table fa-fw"></i> Liste des Groupes
|
<i class="fa fa-table fa-fw"></i>Liste des Groupes
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
@ -21,10 +35,12 @@
|
||||||
<th class="no-sort {% if masteridentity=="SQL" %} no-visible {% endif %}">Filtre</th>
|
<th class="no-sort {% if masteridentity=="SQL" %} no-visible {% endif %}">Filtre</th>
|
||||||
{% if portal_activate %}
|
{% if portal_activate %}
|
||||||
<th>Groupe de Travail</th>
|
<th>Groupe de Travail</th>
|
||||||
|
{% if access=="config" %}
|
||||||
<th>Création Pages</th>
|
<th>Création Pages</th>
|
||||||
<th>Création Calendriers</th>
|
<th>Création Calendriers</th>
|
||||||
<th>Création Blogs</th>
|
<th>Création Blogs</th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
|
@ -43,7 +59,7 @@
|
||||||
order: [[ 1, "asc" ]],
|
order: [[ 1, "asc" ]],
|
||||||
processing: true,
|
processing: true,
|
||||||
serverSide: true,
|
serverSide: true,
|
||||||
ajax: "{{ path('cadoles_core_config_group_ajax_list') }}",
|
ajax: "{{ path('cadoles_core_'~access~'_group_ajax_list') }}",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
{% block pagewrapper %}
|
{% block pagewrapper %}
|
||||||
<h1 class="page-header">Gestion des Utilisateurs</h1>
|
<h1 class="page-header">Gestion des Utilisateurs</h1>
|
||||||
<h2>Groupe = {{ group.label }}</h2>
|
<h2>Groupe = {{ group.label }}</h2>
|
||||||
|
<a class="btn btn-default" href={{ path('cadoles_core_'~access~'_group') }}>Fermer</a>
|
||||||
<a class="btn btn-default" href={{ path('cadoles_core_config_group') }}>Fermer</a>
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
|
@ -22,7 +21,9 @@
|
||||||
<th width="70px" class="no-sort">Avatar</th>
|
<th width="70px" class="no-sort">Avatar</th>
|
||||||
<th width="200px">Login</th>
|
<th width="200px">Login</th>
|
||||||
<th>Email</th>
|
<th>Email</th>
|
||||||
<th class="no-sort no-visible">Manager</th>
|
{% if group.fgcanshare %}
|
||||||
|
<th class="no-sort">Manager</th>
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
|
@ -46,7 +47,9 @@
|
||||||
<th width="70px" class="no-sort">Avatar</th>
|
<th width="70px" class="no-sort">Avatar</th>
|
||||||
<th width="200px">Login</th>
|
<th width="200px">Login</th>
|
||||||
<th>Email</th>
|
<th>Email</th>
|
||||||
<th class="no-sort {% if not group.fgcanshare %}no-visible{% endif %}">Manager</th>
|
{% if group.fgcanshare %}
|
||||||
|
<th class="no-sort">Manager</th>
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
|
@ -60,13 +63,13 @@
|
||||||
{% block localjavascript %}
|
{% block localjavascript %}
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#dataTablesnotin').DataTable({
|
$('#dataTablesnotin').DataTable({
|
||||||
columnDefs: [ { "targets": 'no-sort', "orderable": false } ],
|
columnDefs: [ { "targets": 'no-sort', "orderable": false },{ "targets": 'no-visible', "visible": false } ],
|
||||||
responsive: true,
|
responsive: true,
|
||||||
iDisplayLength: 100,
|
iDisplayLength: 100,
|
||||||
order: [[ 2, "asc" ]],
|
order: [[ 2, "asc" ]],
|
||||||
processing: true,
|
processing: true,
|
||||||
serverSide: true,
|
serverSide: true,
|
||||||
ajax: "{{ path('cadoles_core_config_group_ajax_usersnotin',{'id':group.id}) }}",
|
ajax: "{{ path('cadoles_core_'~access~'_group_ajax_usersnotin',{'id':group.id}) }}",
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#dataTablesin').DataTable({
|
$('#dataTablesin').DataTable({
|
||||||
|
@ -77,10 +80,10 @@
|
||||||
processing: true,
|
processing: true,
|
||||||
serverSide: true,
|
serverSide: true,
|
||||||
ajax: {
|
ajax: {
|
||||||
"url": "{{ path('cadoles_core_config_group_ajax_usersin',{'id':group.id}) }}",
|
"url": "{{ path('cadoles_core_'~access~'_group_ajax_usersin',{'id':group.id}) }}",
|
||||||
"data": function ( d ) {
|
"data": function ( d ) {
|
||||||
return $.extend( {}, d, {
|
return $.extend( {}, d, {
|
||||||
"fgcanshare": {{ group.fgcanshare }}
|
"fgcanshare": "{{ group.fgcanshare }}"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -96,7 +99,7 @@
|
||||||
$.ajax({
|
$.ajax({
|
||||||
rowId: 2,
|
rowId: 2,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url: "{{ path('cadoles_core_config_group_ajax_usergroup_add') }}",
|
url: "{{ path('cadoles_core_'~access~'_group_ajax_usergroup_add') }}",
|
||||||
data: "userid="+userid+"&groupid="+{{ group.id }},
|
data: "userid="+userid+"&groupid="+{{ group.id }},
|
||||||
success: function(data, dataType)
|
success: function(data, dataType)
|
||||||
{
|
{
|
||||||
|
@ -118,7 +121,7 @@
|
||||||
$.ajax({
|
$.ajax({
|
||||||
rowId: 2,
|
rowId: 2,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url: "{{ path('cadoles_core_config_group_ajax_usergroup_del') }}",
|
url: "{{ path('cadoles_core_'~access~'_group_ajax_usergroup_del') }}",
|
||||||
data: "userid="+userid+"&groupid="+{{ group.id }},
|
data: "userid="+userid+"&groupid="+{{ group.id }},
|
||||||
success: function(data, dataType)
|
success: function(data, dataType)
|
||||||
{
|
{
|
||||||
|
@ -139,7 +142,7 @@
|
||||||
function switchManager(id) {
|
function switchManager(id) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url: "{{ path('cadoles_core_config_group_ajax_switchmanager') }}",
|
url: "{{ path('cadoles_core_'~access~'_group_ajax_switchmanager') }}",
|
||||||
data: {
|
data: {
|
||||||
"group": {{ group.id }},
|
"group": {{ group.id }},
|
||||||
"user": id,
|
"user": id,
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_MODO') %}
|
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_MODO') %}
|
||||||
<li><a href="{{ path('cadoles_core_config') }}" title="Configuration"><i class="fa fa-gear fa-fw"></i></a>
|
<li><a href="{{ path('cadoles_core_config') }}" title="Configuration"><i class="fa fa-gear fa-fw"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li><a href="{{ path('cadoles_core_profil_users') }}" title="Annuaire"><i class="fa fa-users fa-fw"></i></a>
|
<li><a href="{{ path('cadoles_core_user_users') }}" title="Annuaire"><i class="fa fa-address-book fa-fw"></i></a>
|
||||||
|
<li><a href="{{ path('cadoles_core_user_group') }}" title="Groupes"><i class="fa fa-users fa-fw"></i></a>
|
||||||
<li><a href="{{ path('cadoles_portal_user_notice_view') }}" title="Charte"><i class="fa fa-info fa-fw"></i></a>
|
<li><a href="{{ path('cadoles_portal_user_notice_view') }}" title="Charte"><i class="fa fa-info fa-fw"></i></a>
|
||||||
<li><a href="{{ path('cadoles_core_profil') }}" title="Profil"><img class='avatar' src="/{{ alias }}/uploads/avatar/{{ app.user.avatar }}"></a></li>
|
<li><a href="{{ path('cadoles_core_user') }}" title="Profil"><img class='avatar' src="/{{ alias }}/uploads/avatar/{{ app.user.avatar }}"></a></li>
|
||||||
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -54,7 +54,11 @@
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div style="width:90px; margin:auto;">
|
<div style="width:90px; margin:auto;">
|
||||||
<img id="user_avatar_img" src="/{{ alias }}/uploads/avatar/{{ user.avatar }}" class="avatar big" >
|
{% set avatar= "noavatar.png" %}
|
||||||
|
{% if user.avatar %}
|
||||||
|
{% set avatar= user.avatar %}
|
||||||
|
{% endif %}
|
||||||
|
<img id="user_avatar_img" src="/{{ alias }}/uploads/avatar/{{ avatar }}" class="avatar big" >
|
||||||
{{ form_widget(form.avatar) }}
|
{{ form_widget(form.avatar) }}
|
||||||
<a class="btn btn-info" style="width:100%; margin-bottom:15px;" data-toggle="modal" data-target="#mymodal" onClick="ModalLoad('mymodal','Avatar','{{ path('cadoles_core_crop01') }}');" title='Ajouter un avatar'>Modifier</a>
|
<a class="btn btn-info" style="width:100%; margin-bottom:15px;" data-toggle="modal" data-target="#mymodal" onClick="ModalLoad('mymodal','Avatar','{{ path('cadoles_core_crop01') }}');" title='Ajouter un avatar'>Modifier</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -134,7 +138,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<a class="btn btn-success" data-toggle="modal" data-target="#groupmodal" title='Ajouter'>Ajouter</a>
|
<a class="btn btn-success" data-toggle="modal" data-target="#groupmodal" title='Ajouter'>Inscription à un Groupe</a>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
|
|
||||||
|
@ -152,8 +156,8 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for group in user.groups %}
|
{% for group in user.groups %}
|
||||||
<tr id="linkgroup{{ group.group.id }}">
|
<tr id="linkgroup{{ group.group.id }}">
|
||||||
{% if (access=="config" or group.group.fgopen) and not group.group.fgall and group.group.ldapfilter=="" and group.group.attributes =="" %}
|
{% if (access=="config" or group.group.fgopen or group.group.fgcanshare) and group.group.owner!=app.user and not group.group.fgall and group.group.ldapfilter=="" and group.group.attributes =="" %}
|
||||||
<td><a style="cursor:pointer"><i class="fa fa-trash fa-fw" onclick="removeLinkGroup({{ group.group.id }})"></i></a></td>
|
<td><a style="cursor:pointer" title="Se Désinscrire"><i class="fa fa-sign-out fa-fw" onclick="removeLinkGroup({{ group.group.id }})"></i></a></td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td></td>
|
<td></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -383,6 +387,7 @@
|
||||||
})
|
})
|
||||||
.error(function(){
|
.error(function(){
|
||||||
var imgSrc = $(this).attr('src');
|
var imgSrc = $(this).attr('src');
|
||||||
|
if(imgSrc!="/{{alias}}/uploads/avatar/")
|
||||||
$(this).attr('src',imgSrc);
|
$(this).attr('src',imgSrc);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -445,6 +450,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
function removeLinkGroup(id) {
|
function removeLinkGroup(id) {
|
||||||
|
if (confirm("Désirez vous vraiment vous désinscrire de ce groupe ?")) {
|
||||||
// On supprime la ligne du tableau
|
// On supprime la ligne du tableau
|
||||||
$("#linkgroup"+id).remove();
|
$("#linkgroup"+id).remove();
|
||||||
|
|
||||||
|
@ -454,6 +460,7 @@
|
||||||
// On rend visible la ligne de liste complète
|
// On rend visible la ligne de liste complète
|
||||||
$("#listgroup"+id).show();
|
$("#listgroup"+id).show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function addLinkGroup(id) {
|
function addLinkGroup(id) {
|
||||||
// On cache la ligne du tableau
|
// On cache la ligne du tableau
|
||||||
|
@ -464,7 +471,7 @@
|
||||||
|
|
||||||
// On ajoute la ligne de liste des liens
|
// On ajoute la ligne de liste des liens
|
||||||
html ="<tr id='linkgroup"+id+"'>";
|
html ="<tr id='linkgroup"+id+"'>";
|
||||||
html+="<td><a style='cursor:pointer'><i class='fa fa-trash fa-fw' onclick='removeLinkGroup("+id+")'></i></a></td>";
|
html+="<td><a style='cursor:pointer' title='Se Désinscrire'><i class='fa fa-sign-out fa-fw' onclick='removeLinkGroup("+id+")'></i></a></td>";
|
||||||
html+="<td>"+$("#listgrouplabel"+id).html()+"</td>";
|
html+="<td>"+$("#listgrouplabel"+id).html()+"</td>";
|
||||||
html+="</tr>";
|
html+="</tr>";
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
ajax: "{{ path('cadoles_core_config_user_ajax_list') }}",
|
ajax: "{{ path('cadoles_core_config_user_ajax_list') }}",
|
||||||
{% else %}
|
{% else %}
|
||||||
order: [[ 1, "asc" ]],
|
order: [[ 1, "asc" ]],
|
||||||
ajax: "{{ path('cadoles_core_profil_user_ajax_list') }}",
|
ajax: "{{ path('cadoles_core_user_user_ajax_list') }}",
|
||||||
{% endif %}
|
{% endif %}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -43,6 +43,7 @@ class InitDataCommand extends ContainerAwareCommand
|
||||||
$activate_widopensondage = $this->getContainer()->getParameter('activate_widopensondage');
|
$activate_widopensondage = $this->getContainer()->getParameter('activate_widopensondage');
|
||||||
$activate_widpiwik = $this->getContainer()->getParameter('activate_widpiwik');
|
$activate_widpiwik = $this->getContainer()->getParameter('activate_widpiwik');
|
||||||
$activate_widwordpress = $this->getContainer()->getParameter('activate_widwordpress');
|
$activate_widwordpress = $this->getContainer()->getParameter('activate_widwordpress');
|
||||||
|
$activate_websocket = $this->getContainer()->getParameter('websocket_activate');
|
||||||
|
|
||||||
$output->writeln('PORTAL = Default Data');
|
$output->writeln('PORTAL = Default Data');
|
||||||
|
|
||||||
|
@ -670,6 +671,7 @@ class InitDataCommand extends ContainerAwareCommand
|
||||||
|
|
||||||
// Widget Chat
|
// Widget Chat
|
||||||
$entityWidget = $em->getRepository('CadolesPortalBundle:Widget')->find(-1840);
|
$entityWidget = $em->getRepository('CadolesPortalBundle:Widget')->find(-1840);
|
||||||
|
if($activate_websocket) {
|
||||||
if(!$entityWidget) $entityWidget = new Widget();
|
if(!$entityWidget) $entityWidget = new Widget();
|
||||||
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_chat.png"]);
|
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_chat.png"]);
|
||||||
$entityWidget->setId(-1840);
|
$entityWidget->setId(-1840);
|
||||||
|
@ -686,6 +688,10 @@ class InitDataCommand extends ContainerAwareCommand
|
||||||
$parameter = json_decode('{"fields": []}');
|
$parameter = json_decode('{"fields": []}');
|
||||||
$entityWidget->setParameter($parameter);
|
$entityWidget->setParameter($parameter);
|
||||||
$em->persist($entityWidget);
|
$em->persist($entityWidget);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$em->remove($entityWidget);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1816,7 +1816,7 @@ class PagewidgetController extends Controller
|
||||||
|
|
||||||
foreach($group->getUsers() as $usergroup) {
|
foreach($group->getUsers() as $usergroup) {
|
||||||
|
|
||||||
array_push($members,$usergroup->getUser());
|
array_push($members,$usergroup);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,7 @@ class AlertType extends AbstractType
|
||||||
"choices" => [
|
"choices" => [
|
||||||
"Visiteur" => 'ROLE_ANONYME',
|
"Visiteur" => 'ROLE_ANONYME',
|
||||||
"Utilisateur" => 'ROLE_USER',
|
"Utilisateur" => 'ROLE_USER',
|
||||||
|
"Animateur de Groupe" => 'ROLE_ANIM',
|
||||||
"Modérateur" => 'ROLE_MODO',
|
"Modérateur" => 'ROLE_MODO',
|
||||||
"Administateur" => 'ROLE_ADMIN',
|
"Administateur" => 'ROLE_ADMIN',
|
||||||
],
|
],
|
||||||
|
|
|
@ -34,6 +34,7 @@ class BlogType extends AbstractType
|
||||||
"choices" => [
|
"choices" => [
|
||||||
"Visiteur" => 'ROLE_ANONYME',
|
"Visiteur" => 'ROLE_ANONYME',
|
||||||
"Utilisateur" => 'ROLE_USER',
|
"Utilisateur" => 'ROLE_USER',
|
||||||
|
"Animateur de Groupe" => 'ROLE_ANIM',
|
||||||
"Modérateur" => 'ROLE_MODO',
|
"Modérateur" => 'ROLE_MODO',
|
||||||
"Administateur" => 'ROLE_ADMIN',
|
"Administateur" => 'ROLE_ADMIN',
|
||||||
],
|
],
|
||||||
|
|
|
@ -72,6 +72,7 @@ class CalendarType extends AbstractType
|
||||||
"choices" => [
|
"choices" => [
|
||||||
"Visiteur" => 'ROLE_ANONYME',
|
"Visiteur" => 'ROLE_ANONYME',
|
||||||
"Utilisateur" => 'ROLE_USER',
|
"Utilisateur" => 'ROLE_USER',
|
||||||
|
"Animateur de Groupe" => 'ROLE_ANIM',
|
||||||
"Modérateur" => 'ROLE_MODO',
|
"Modérateur" => 'ROLE_MODO',
|
||||||
"Administateur" => 'ROLE_ADMIN',
|
"Administateur" => 'ROLE_ADMIN',
|
||||||
],
|
],
|
||||||
|
|
|
@ -47,6 +47,7 @@ class FluxType extends AbstractType
|
||||||
"choices" => [
|
"choices" => [
|
||||||
"Visiteur" => 'ROLE_ANONYME',
|
"Visiteur" => 'ROLE_ANONYME',
|
||||||
"Utilisateur" => 'ROLE_USER',
|
"Utilisateur" => 'ROLE_USER',
|
||||||
|
"Animateur de Groupe" => 'ROLE_ANIM',
|
||||||
"Modérateur" => 'ROLE_MODO',
|
"Modérateur" => 'ROLE_MODO',
|
||||||
"Administateur" => 'ROLE_ADMIN',
|
"Administateur" => 'ROLE_ADMIN',
|
||||||
],
|
],
|
||||||
|
|
|
@ -60,6 +60,7 @@ class ItemType extends AbstractType
|
||||||
"choices" => [
|
"choices" => [
|
||||||
"Visiteur" => 'ROLE_ANONYME',
|
"Visiteur" => 'ROLE_ANONYME',
|
||||||
"Utilisateur" => 'ROLE_USER',
|
"Utilisateur" => 'ROLE_USER',
|
||||||
|
"Animateur de Groupe" => 'ROLE_ANIM',
|
||||||
"Modérateur" => 'ROLE_MODO',
|
"Modérateur" => 'ROLE_MODO',
|
||||||
"Administateur" => 'ROLE_ADMIN',
|
"Administateur" => 'ROLE_ADMIN',
|
||||||
],
|
],
|
||||||
|
|
|
@ -55,6 +55,7 @@ class NoticeType extends AbstractType
|
||||||
"choices" => [
|
"choices" => [
|
||||||
"Visiteur" => 'ROLE_ANONYME',
|
"Visiteur" => 'ROLE_ANONYME',
|
||||||
"Utilisateur" => 'ROLE_USER',
|
"Utilisateur" => 'ROLE_USER',
|
||||||
|
"Animateur de Groupe" => 'ROLE_ANIM',
|
||||||
"Modérateur" => 'ROLE_MODO',
|
"Modérateur" => 'ROLE_MODO',
|
||||||
"Administateur" => 'ROLE_ADMIN',
|
"Administateur" => 'ROLE_ADMIN',
|
||||||
],
|
],
|
||||||
|
|
|
@ -50,6 +50,7 @@ class PageUpdateEditorType extends AbstractType
|
||||||
"choices" => [
|
"choices" => [
|
||||||
"Visiteur" => 'ROLE_ANONYME',
|
"Visiteur" => 'ROLE_ANONYME',
|
||||||
"Utilisateur" => 'ROLE_USER',
|
"Utilisateur" => 'ROLE_USER',
|
||||||
|
"Animateur de Groupe" => 'ROLE_ANIM',
|
||||||
"Modérateur" => 'ROLE_MODO',
|
"Modérateur" => 'ROLE_MODO',
|
||||||
"Administateur" => 'ROLE_ADMIN',
|
"Administateur" => 'ROLE_ADMIN',
|
||||||
],
|
],
|
||||||
|
|
|
@ -37,6 +37,7 @@ class PageUpdateToolType extends AbstractType
|
||||||
"choices" => [
|
"choices" => [
|
||||||
"Visiteur" => 'ROLE_ANONYME',
|
"Visiteur" => 'ROLE_ANONYME',
|
||||||
"Utilisateur" => 'ROLE_USER',
|
"Utilisateur" => 'ROLE_USER',
|
||||||
|
"Animateur de Groupe" => 'ROLE_ANIM',
|
||||||
"Modérateur" => 'ROLE_MODO',
|
"Modérateur" => 'ROLE_MODO',
|
||||||
"Administateur" => 'ROLE_ADMIN',
|
"Administateur" => 'ROLE_ADMIN',
|
||||||
],
|
],
|
||||||
|
|
|
@ -46,6 +46,7 @@ class PageUpdateURLType extends AbstractType
|
||||||
"choices" => [
|
"choices" => [
|
||||||
"Visiteur" => 'ROLE_ANONYME',
|
"Visiteur" => 'ROLE_ANONYME',
|
||||||
"Utilisateur" => 'ROLE_USER',
|
"Utilisateur" => 'ROLE_USER',
|
||||||
|
"Animateur de Groupe" => 'ROLE_ANIM',
|
||||||
"Modérateur" => 'ROLE_MODO',
|
"Modérateur" => 'ROLE_MODO',
|
||||||
"Administateur" => 'ROLE_ADMIN',
|
"Administateur" => 'ROLE_ADMIN',
|
||||||
],
|
],
|
||||||
|
|
|
@ -47,6 +47,7 @@ class PageUpdateWidgetType extends AbstractType
|
||||||
"choices" => [
|
"choices" => [
|
||||||
"Visiteur" => 'ROLE_ANONYME',
|
"Visiteur" => 'ROLE_ANONYME',
|
||||||
"Utilisateur" => 'ROLE_USER',
|
"Utilisateur" => 'ROLE_USER',
|
||||||
|
"Animateur de Groupe" => 'ROLE_ANIM',
|
||||||
"Modérateur" => 'ROLE_MODO',
|
"Modérateur" => 'ROLE_MODO',
|
||||||
"Administateur" => 'ROLE_ADMIN',
|
"Administateur" => 'ROLE_ADMIN',
|
||||||
],
|
],
|
||||||
|
|
|
@ -68,6 +68,7 @@ class BlogRepository extends EntityRepository
|
||||||
|
|
||||||
// blogs partagées
|
// blogs partagées
|
||||||
$blogsshared=[];
|
$blogsshared=[];
|
||||||
|
/*
|
||||||
if($user) {
|
if($user) {
|
||||||
$blogsshared=$this->createQueryBuilder('blog')
|
$blogsshared=$this->createQueryBuilder('blog')
|
||||||
->from('CadolesCoreBundle:Group','g')
|
->from('CadolesCoreBundle:Group','g')
|
||||||
|
@ -94,6 +95,7 @@ class BlogRepository extends EntityRepository
|
||||||
$blogshared->setCanadd($this->getInwriter($user,$blogshared));
|
$blogshared->setCanadd($this->getInwriter($user,$blogshared));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// Initialisation du calcul des blogs
|
// Initialisation du calcul des blogs
|
||||||
$blogsadmin=new ArrayCollection();
|
$blogsadmin=new ArrayCollection();
|
||||||
|
@ -102,7 +104,8 @@ class BlogRepository extends EntityRepository
|
||||||
foreach($roles as $role) {
|
foreach($roles as $role) {
|
||||||
$qb = $this->createQueryBuilder("blog");
|
$qb = $this->createQueryBuilder("blog");
|
||||||
$qb ->where($qb->expr()->like('blog.roles', $qb->expr()->literal("%$role%")))
|
$qb ->where($qb->expr()->like('blog.roles', $qb->expr()->literal("%$role%")))
|
||||||
->andWhere("blog.user is null");
|
->andWhere("blog.user != :user or blog.user is null")
|
||||||
|
->setParameter('user',$user);
|
||||||
|
|
||||||
$blogsroles=$qb->getQuery()->getResult();
|
$blogsroles=$qb->getQuery()->getResult();
|
||||||
foreach($blogsroles as $blogrole) {
|
foreach($blogsroles as $blogrole) {
|
||||||
|
@ -114,7 +117,8 @@ class BlogRepository extends EntityRepository
|
||||||
foreach($groups as $group) {
|
foreach($groups as $group) {
|
||||||
$qb = $this->createQueryBuilder("blog");
|
$qb = $this->createQueryBuilder("blog");
|
||||||
$qb ->where(":group MEMBER OF blog.groups")
|
$qb ->where(":group MEMBER OF blog.groups")
|
||||||
->andWhere("blog.user is null")
|
->andWhere("blog.user != :user or blog.user is null")
|
||||||
|
->setParameter('user',$user)
|
||||||
->setParameter("group",$group->getGroup());
|
->setParameter("group",$group->getGroup());
|
||||||
|
|
||||||
$blogsgroups=$qb->getQuery()->getResult();
|
$blogsgroups=$qb->getQuery()->getResult();
|
||||||
|
@ -184,8 +188,6 @@ class BlogRepository extends EntityRepository
|
||||||
foreach($groups as $group) {
|
foreach($groups as $group) {
|
||||||
$qb = $this->createQueryBuilder("blog");
|
$qb = $this->createQueryBuilder("blog");
|
||||||
$qb ->where(":group MEMBER OF blog.groups")
|
$qb ->where(":group MEMBER OF blog.groups")
|
||||||
->andWhere("blog.id=:id")
|
|
||||||
->andWhere("blog.user is null")
|
|
||||||
->andWhere("blog.id=:id")
|
->andWhere("blog.id=:id")
|
||||||
->setParameter("id",$blog->getId())
|
->setParameter("id",$blog->getId())
|
||||||
->setParameter("group",$group->getGroup());
|
->setParameter("group",$group->getGroup());
|
||||||
|
|
|
@ -58,24 +58,23 @@ class CalendarRepository extends EntityRepository
|
||||||
|
|
||||||
// Pages partagées
|
// Pages partagées
|
||||||
$calendarsshared=[];
|
$calendarsshared=[];
|
||||||
|
/*
|
||||||
if($user) {
|
if($user) {
|
||||||
$calendarsshared=$this->createQueryBuilder('calendar')
|
$calendarsshared=$this->createQueryBuilder('calendar')
|
||||||
->from('CadolesCoreBundle:Group','g')
|
->from('CadolesCoreBundle:Group','g')
|
||||||
->from('CadolesCoreBundle:UserGroup','ug')
|
->from('CadolesCoreBundle:UserGroup','ug')
|
||||||
->from('CadolesCoreBundle:UserGroup','proprio')
|
|
||||||
->where('g.fgcanshare=:fgcanshare')
|
->where('g.fgcanshare=:fgcanshare')
|
||||||
->andWhere('g=ug.group')
|
->andWhere('g=ug.group')
|
||||||
->andWhere('ug.user=:user')
|
->andWhere('ug.user=:user')
|
||||||
->andWhere('g MEMBER OF calendar.groups')
|
->andWhere('g MEMBER OF calendar.groups')
|
||||||
->andWhere('calendar.user != :user')
|
->andWhere('calendar.user != :user')
|
||||||
->andWhere('calendar.user is not null')
|
->andWhere('calendar.user is not null')
|
||||||
->andWhere('proprio.user=calendar.user')
|
|
||||||
->andWhere('proprio.group=g')
|
|
||||||
->setParameter('fgcanshare',true)
|
->setParameter('fgcanshare',true)
|
||||||
->setParameter('user',$user)
|
->setParameter('user',$user)
|
||||||
->addOrderBy('calendar.name', 'ASC')
|
->addOrderBy('calendar.name', 'ASC')
|
||||||
->getQuery()->getResult();
|
->getQuery()->getResult();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
// Initialisation du calcul des calendars
|
// Initialisation du calcul des calendars
|
||||||
|
@ -85,7 +84,8 @@ class CalendarRepository extends EntityRepository
|
||||||
foreach($roles as $role) {
|
foreach($roles as $role) {
|
||||||
$qb = $this->createQueryBuilder("calendar");
|
$qb = $this->createQueryBuilder("calendar");
|
||||||
$qb ->where($qb->expr()->like('calendar.roles', $qb->expr()->literal("%$role%")))
|
$qb ->where($qb->expr()->like('calendar.roles', $qb->expr()->literal("%$role%")))
|
||||||
->andWhere("calendar.user is null");
|
->andWhere("calendar.user != :user or calendar.user is null")
|
||||||
|
->setParameter('user',$user);
|
||||||
|
|
||||||
$calendarsroles=$qb->getQuery()->getResult();
|
$calendarsroles=$qb->getQuery()->getResult();
|
||||||
foreach($calendarsroles as $calendarrole) {
|
foreach($calendarsroles as $calendarrole) {
|
||||||
|
@ -97,7 +97,8 @@ class CalendarRepository extends EntityRepository
|
||||||
foreach($groups as $group) {
|
foreach($groups as $group) {
|
||||||
$qb = $this->createQueryBuilder("calendar");
|
$qb = $this->createQueryBuilder("calendar");
|
||||||
$qb ->where(":group MEMBER OF calendar.groups")
|
$qb ->where(":group MEMBER OF calendar.groups")
|
||||||
->andWhere("calendar.user is null")
|
->andWhere("calendar.user != :user or calendar.user is null")
|
||||||
|
->setParameter('user',$user)
|
||||||
->setParameter("group",$group->getGroup());
|
->setParameter("group",$group->getGroup());
|
||||||
|
|
||||||
$calendarsgroups=$qb->getQuery()->getResult();
|
$calendarsgroups=$qb->getQuery()->getResult();
|
||||||
|
@ -142,8 +143,6 @@ class CalendarRepository extends EntityRepository
|
||||||
foreach($groups as $group) {
|
foreach($groups as $group) {
|
||||||
$qb = $this->createQueryBuilder("calendar");
|
$qb = $this->createQueryBuilder("calendar");
|
||||||
$qb ->where(":group MEMBER OF calendar.groups")
|
$qb ->where(":group MEMBER OF calendar.groups")
|
||||||
->andWhere("calendar.id=:id")
|
|
||||||
->andWhere("calendar.user is null")
|
|
||||||
->andWhere("calendar.id=:id")
|
->andWhere("calendar.id=:id")
|
||||||
->setParameter("id",$calendar->getId())
|
->setParameter("id",$calendar->getId())
|
||||||
->setParameter("group",$group->getGroup());
|
->setParameter("group",$group->getGroup());
|
||||||
|
@ -173,7 +172,7 @@ class CalendarRepository extends EntityRepository
|
||||||
|
|
||||||
->from('CadolesCoreBundle:UserGroup','usergroup')
|
->from('CadolesCoreBundle:UserGroup','usergroup')
|
||||||
->andwhere('usergroup.group MEMBER OF calendar.groups')
|
->andwhere('usergroup.group MEMBER OF calendar.groups')
|
||||||
->andwhere('usergroup.user=:user')
|
->andwhere('usergroup.user=user')
|
||||||
->andwhere('usergroup.fgmanager=:flag')
|
->andwhere('usergroup.fgmanager=:flag')
|
||||||
|
|
||||||
->from('CadolesCoreBundle:Group','groupe')
|
->from('CadolesCoreBundle:Group','groupe')
|
||||||
|
@ -186,6 +185,7 @@ class CalendarRepository extends EntityRepository
|
||||||
|
|
||||||
|
|
||||||
$inblogwriters=$qb->getQuery()->getResult();
|
$inblogwriters=$qb->getQuery()->getResult();
|
||||||
|
|
||||||
if($inblogwriters) $canadd=true;
|
if($inblogwriters) $canadd=true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -326,12 +326,12 @@ class PageRepository extends EntityRepository
|
||||||
$qb = $this->createQueryBuilder("page");
|
$qb = $this->createQueryBuilder("page");
|
||||||
$qb ->where(":group MEMBER OF page.groups")
|
$qb ->where(":group MEMBER OF page.groups")
|
||||||
->andWhere("page.id=:id")
|
->andWhere("page.id=:id")
|
||||||
->andWhere("page.user is null")
|
|
||||||
->andWhere("page.id=:id")
|
->andWhere("page.id=:id")
|
||||||
->setParameter("id",$page->getId())
|
->setParameter("id",$page->getId())
|
||||||
->setParameter("group",$group->getGroup());
|
->setParameter("group",$group->getGroup());
|
||||||
|
|
||||||
$inpagegroup=$qb->getQuery()->getResult();
|
$inpagegroup=$qb->getQuery()->getResult();
|
||||||
|
|
||||||
if($inpagegroup) {
|
if($inpagegroup) {
|
||||||
$cansee=true;
|
$cansee=true;
|
||||||
// Est-il manager du groupe
|
// Est-il manager du groupe
|
||||||
|
|
|
@ -113,6 +113,12 @@
|
||||||
<span class="badge"></span>
|
<span class="badge"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<a class="list-group-item" data-role="ROLE_ANIM" style="cursor:pointer">
|
||||||
|
<i class="fa fa-user"></i>
|
||||||
|
Animateur de Groupe
|
||||||
|
<span class="badge"></span>
|
||||||
|
</a>
|
||||||
|
|
||||||
<a class="list-group-item" data-role="ROLE_MODO" style="cursor:pointer">
|
<a class="list-group-item" data-role="ROLE_MODO" style="cursor:pointer">
|
||||||
<i class="fa fa-user"></i>
|
<i class="fa fa-user"></i>
|
||||||
Modérateur
|
Modérateur
|
||||||
|
@ -191,6 +197,7 @@
|
||||||
$( function() {
|
$( function() {
|
||||||
$("a[data-role='ROLE_ANONYME']").children("span").html($('.role-ROLE_ANONYME').length);
|
$("a[data-role='ROLE_ANONYME']").children("span").html($('.role-ROLE_ANONYME').length);
|
||||||
$("a[data-role='ROLE_USER']").children("span").html($('.role-ROLE_USER').length);
|
$("a[data-role='ROLE_USER']").children("span").html($('.role-ROLE_USER').length);
|
||||||
|
$("a[data-role='ROLE_ANIM']").children("span").html($('.role-ROLE_ANIM').length);
|
||||||
$("a[data-role='ROLE_MODO']").children("span").html($('.role-ROLE_MODO').length);
|
$("a[data-role='ROLE_MODO']").children("span").html($('.role-ROLE_MODO').length);
|
||||||
$("a[data-role='ROLE_ADMIN']").children("span").html($('.role-ROLE_ADMIN').length);
|
$("a[data-role='ROLE_ADMIN']").children("span").html($('.role-ROLE_ADMIN').length);
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,12 @@
|
||||||
<span class="badge"></span>
|
<span class="badge"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<a class="list-group-item" data-role="ROLE_ANIM" style="cursor:pointer">
|
||||||
|
<i class="fa fa-user"></i>
|
||||||
|
Animateur de Groupe
|
||||||
|
<span class="badge"></span>
|
||||||
|
</a>
|
||||||
|
|
||||||
<a class="list-group-item" data-role="ROLE_MODO" style="cursor:pointer">
|
<a class="list-group-item" data-role="ROLE_MODO" style="cursor:pointer">
|
||||||
<i class="fa fa-user"></i>
|
<i class="fa fa-user"></i>
|
||||||
Modérateur
|
Modérateur
|
||||||
|
@ -115,6 +121,7 @@
|
||||||
|
|
||||||
$("a[data-role='ROLE_ANONYME']").children("span").html($('.role-ROLE_ANONYME').length);
|
$("a[data-role='ROLE_ANONYME']").children("span").html($('.role-ROLE_ANONYME').length);
|
||||||
$("a[data-role='ROLE_USER']").children("span").html($('.role-ROLE_USER').length);
|
$("a[data-role='ROLE_USER']").children("span").html($('.role-ROLE_USER').length);
|
||||||
|
$("a[data-role='ROLE_ANIM']").children("span").html($('.role-ROLE_ANIM').length);
|
||||||
$("a[data-role='ROLE_MODO']").children("span").html($('.role-ROLE_MODO').length);
|
$("a[data-role='ROLE_MODO']").children("span").html($('.role-ROLE_MODO').length);
|
||||||
$("a[data-role='ROLE_ADMIN']").children("span").html($('.role-ROLE_ADMIN').length);
|
$("a[data-role='ROLE_ADMIN']").children("span").html($('.role-ROLE_ADMIN').length);
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,12 @@
|
||||||
<span class="badge"></span>
|
<span class="badge"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<a class="list-group-item" data-role="ROLE_ANIM" style="cursor:pointer">
|
||||||
|
<i class="fa fa-user"></i>
|
||||||
|
Animateur de Groupe
|
||||||
|
<span class="badge"></span>
|
||||||
|
</a>
|
||||||
|
|
||||||
<a class="list-group-item" data-role="ROLE_MODO" style="cursor:pointer">
|
<a class="list-group-item" data-role="ROLE_MODO" style="cursor:pointer">
|
||||||
<i class="fa fa-user"></i>
|
<i class="fa fa-user"></i>
|
||||||
Modérateur
|
Modérateur
|
||||||
|
@ -138,6 +144,7 @@
|
||||||
|
|
||||||
$("a[data-role='ROLE_ANONYME']").children("span").html($('.group-ROLE_ANONYME').length);
|
$("a[data-role='ROLE_ANONYME']").children("span").html($('.group-ROLE_ANONYME').length);
|
||||||
$("a[data-role='ROLE_USER']").children("span").html($('.group-ROLE_USER').length);
|
$("a[data-role='ROLE_USER']").children("span").html($('.group-ROLE_USER').length);
|
||||||
|
$("a[data-role='ROLE_ANIM']").children("span").html($('.group-ROLE_ANIM').length);
|
||||||
$("a[data-role='ROLE_MODO']").children("span").html($('.group-ROLE_MODO').length);
|
$("a[data-role='ROLE_MODO']").children("span").html($('.group-ROLE_MODO').length);
|
||||||
$("a[data-role='ROLE_ADMIN']").children("span").html($('.group-ROLE_ADMIN').length);
|
$("a[data-role='ROLE_ADMIN']").children("span").html($('.group-ROLE_ADMIN').length);
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,12 @@
|
||||||
<span class="badge"></span>
|
<span class="badge"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<a class="list-group-item" data-role="ROLE_ANIM" style="cursor:pointer">
|
||||||
|
<i class="fa fa-user"></i>
|
||||||
|
Animateur de Groupe
|
||||||
|
<span class="badge"></span>
|
||||||
|
</a>
|
||||||
|
|
||||||
<a class="list-group-item" data-role="ROLE_MODO" style="cursor:pointer">
|
<a class="list-group-item" data-role="ROLE_MODO" style="cursor:pointer">
|
||||||
<i class="fa fa-user"></i>
|
<i class="fa fa-user"></i>
|
||||||
Modérateur
|
Modérateur
|
||||||
|
@ -115,6 +121,7 @@
|
||||||
|
|
||||||
$("a[data-role='ROLE_ANONYME']").children("span").html($('.role-ROLE_ANONYME').length);
|
$("a[data-role='ROLE_ANONYME']").children("span").html($('.role-ROLE_ANONYME').length);
|
||||||
$("a[data-role='ROLE_USER']").children("span").html($('.role-ROLE_USER').length);
|
$("a[data-role='ROLE_USER']").children("span").html($('.role-ROLE_USER').length);
|
||||||
|
$("a[data-role='ROLE_ANIM']").children("span").html($('.role-ROLE_ANIM').length);
|
||||||
$("a[data-role='ROLE_MODO']").children("span").html($('.role-ROLE_MODO').length);
|
$("a[data-role='ROLE_MODO']").children("span").html($('.role-ROLE_MODO').length);
|
||||||
$("a[data-role='ROLE_ADMIN']").children("span").html($('.role-ROLE_ADMIN').length);
|
$("a[data-role='ROLE_ADMIN']").children("span").html($('.role-ROLE_ADMIN').length);
|
||||||
|
|
||||||
|
|
|
@ -270,25 +270,12 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// Init socket de counter
|
// Init socket de counter
|
||||||
|
{% if websocket_activate %}
|
||||||
var _WS_URI = "wss://{{ gos_web_socket_server_host }}:{{ gos_web_socket_server_port }}";
|
var _WS_URI = "wss://{{ gos_web_socket_server_host }}:{{ gos_web_socket_server_port }}";
|
||||||
var _WS_URI = "wss://{{ gos_web_socket_server_host }}:5555";
|
|
||||||
|
|
||||||
var webSocket = WS.connect(_WS_URI);
|
var webSocket = WS.connect(_WS_URI);
|
||||||
var globalsession;
|
|
||||||
|
|
||||||
webSocket.on("socket/connect", function (session) {
|
webSocket.on("socket/connect", function (session) {
|
||||||
globalsession=session;
|
|
||||||
session.call("websocket/rpc/update_connection_data", {"userid": "{{app.user.id}}" }).then(
|
|
||||||
function (result)
|
|
||||||
{
|
|
||||||
//console.log("RPC Valid!", result);
|
|
||||||
},
|
|
||||||
function (error, desc)
|
|
||||||
{
|
|
||||||
//console.log("RPC Error", error, desc);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
// The callback function in "subscribe" is called everytime an event is published in that channel.
|
// The callback function in "subscribe" is called everytime an event is published in that channel.
|
||||||
session.subscribe("websocket/counter", function (uri, payload) {
|
session.subscribe("websocket/counter", function (uri, payload) {
|
||||||
if(payload.log) {
|
if(payload.log) {
|
||||||
|
@ -313,9 +300,11 @@
|
||||||
|
|
||||||
$(document).on('click', '#refreshcounter', function(){
|
$(document).on('click', '#refreshcounter', function(){
|
||||||
event=$(this).data("event");
|
event=$(this).data("event");
|
||||||
|
event.userid={{app.user.id}}
|
||||||
session.publish("websocket/counter", event);
|
session.publish("websocket/counter", event);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
{% endif %}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).resize(function() {
|
$(window).resize(function() {
|
||||||
|
|
|
@ -47,13 +47,18 @@
|
||||||
<div class="grid clearfix">
|
<div class="grid clearfix">
|
||||||
<div class="grid-sizer grid-small"></div>
|
<div class="grid-sizer grid-small"></div>
|
||||||
<div class="grid-gutter-sizer"></div>
|
<div class="grid-gutter-sizer"></div>
|
||||||
{% for user in members %}
|
{% for member in members %}
|
||||||
<div class="grid-item grid-small">
|
<div class="grid-item grid-small">
|
||||||
|
|
||||||
|
|
||||||
<div class="grid-item-content">
|
<div class="grid-item-content">
|
||||||
<img src="/{{ alias }}/uploads/avatar/{{ user.avatar}}" class="avatar">
|
<img src="/{{ alias }}/uploads/avatar/{{ member.user.avatar}}" class="avatar">
|
||||||
</div>
|
|
||||||
<div class="grid-item-title">
|
<div class="grid-item-title">
|
||||||
{{ user.lastname }} {{ user.firstname }}
|
{%if member.fgmanager%}<i style="color: #FFF" class="fa fa-star" title="Manager"></i>{%endif%}<br>
|
||||||
|
{{ member.user.lastname }} {{ member.user.firstname }}
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
services:
|
services:
|
||||||
|
cadoles.websocket.pushmessage:
|
||||||
|
public: true
|
||||||
|
class: Cadoles\WebsocketBundle\Service\messageService
|
||||||
|
arguments: ['@service_container','@doctrine.orm.entity_manager','%websocket_activate%']
|
||||||
|
|
||||||
cadoles.websocket.topic:
|
cadoles.websocket.topic:
|
||||||
class: Cadoles\WebsocketBundle\Topic\WebsocketTopic
|
class: Cadoles\WebsocketBundle\Topic\WebsocketTopic
|
||||||
arguments: ['@gos_web_socket.websocket.client_manipulator','@doctrine.orm.entity_manager','@service_container']
|
arguments: ['@gos_web_socket.websocket.client_manipulator','@doctrine.orm.entity_manager','@service_container']
|
||||||
|
|
|
@ -79,25 +79,12 @@
|
||||||
var dateoptions = {weekday: "long", year: "numeric", month: "long", day: "numeric", hour: "2-digit", minute: "2-digit" };
|
var dateoptions = {weekday: "long", year: "numeric", month: "long", day: "numeric", hour: "2-digit", minute: "2-digit" };
|
||||||
|
|
||||||
|
|
||||||
{% if app.user %}
|
{% if websocket_activate and app.user %}
|
||||||
var _WS_URI = "wss://{{ gos_web_socket_server_host }}:{{ gos_web_socket_server_port }}";
|
var _WS_URI = "wss://{{ gos_web_socket_server_host }}:{{ gos_web_socket_server_port }}";
|
||||||
var _WS_URI = "wss://{{ gos_web_socket_server_host }}:5555";
|
|
||||||
|
|
||||||
var webSocket = WS.connect(_WS_URI);
|
var webSocket = WS.connect(_WS_URI);
|
||||||
|
|
||||||
webSocket.on("socket/connect", function (session) {
|
webSocket.on("socket/connect", function (session) {
|
||||||
|
|
||||||
session.call("websocket/rpc/update_connection_data", {"userkey": "{{userkey}}" }).then(
|
|
||||||
function (result)
|
|
||||||
{
|
|
||||||
//console.log("RPC Valid!", result);
|
|
||||||
},
|
|
||||||
function (error, desc)
|
|
||||||
{
|
|
||||||
//console.log("RPC Error", error, desc);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
//the callback function in "subscribe" is called everytime an event is published in that channel.
|
//the callback function in "subscribe" is called everytime an event is published in that channel.
|
||||||
session.subscribe("websocket/channel/{{groupid}}", function (uri, payload) {
|
session.subscribe("websocket/channel/{{groupid}}", function (uri, payload) {
|
||||||
if(payload.msg) {
|
if(payload.msg) {
|
||||||
|
@ -134,7 +121,7 @@
|
||||||
$( "#sendbtn" ).click(function() {
|
$( "#sendbtn" ).click(function() {
|
||||||
var data = CKEDITOR.instances["chat_message"].getData();
|
var data = CKEDITOR.instances["chat_message"].getData();
|
||||||
if(data) {
|
if(data) {
|
||||||
event={type: "add", message: data};
|
event={mykey: "{{userkey}}", type: "add", message: data};
|
||||||
session.publish("websocket/channel/{{groupid}}", event);
|
session.publish("websocket/channel/{{groupid}}", event);
|
||||||
CKEDITOR.instances["chat_message"].setData('');
|
CKEDITOR.instances["chat_message"].setData('');
|
||||||
|
|
||||||
|
@ -145,7 +132,7 @@
|
||||||
|
|
||||||
$(document).on('click', '.delmessage', function(){
|
$(document).on('click', '.delmessage', function(){
|
||||||
id=$(this).data("id");
|
id=$(this).data("id");
|
||||||
event={type: "del", id: id};
|
event={mykey: "{{userkey}}", type: "del", id: id};
|
||||||
session.publish("websocket/channel/{{groupid}}", event);
|
session.publish("websocket/channel/{{groupid}}", event);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Cadoles\WebsocketBundle\Service;
|
||||||
|
|
||||||
|
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||||
|
use Symfony\Component\HttpFoundation\Session\Session;
|
||||||
|
use Doctrine\ORM\EntityManager;
|
||||||
|
|
||||||
|
class messageService
|
||||||
|
{
|
||||||
|
protected $container;
|
||||||
|
protected $em;
|
||||||
|
protected $activate_websocket;
|
||||||
|
|
||||||
|
public function __construct($container, EntityManager $em, $activate_websocket)
|
||||||
|
{
|
||||||
|
$this->container = $container;
|
||||||
|
$this->em = $em;
|
||||||
|
$this->activate_websocket = $activate_websocket;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function send($key,$userid,$groupid,$message) {
|
||||||
|
$pusher = $this->container->get('gos_web_socket.wamp.pusher');
|
||||||
|
$pusher->push(['mykey' => $key, 'type' => 'add', 'message' => $message], 'websocket_topic', ['group' => $groupid]);
|
||||||
|
$pusher->push(['userid' => $userid, 'type' => 'add', 'group' => $groupid], 'websocket_counter');
|
||||||
|
}
|
||||||
|
}
|
|
@ -70,7 +70,8 @@ class WebsocketCounter implements TopicInterface
|
||||||
*/
|
*/
|
||||||
public function onPublish(ConnectionInterface $connection, Topic $topic, WampRequest $request, $event, array $exclude, array $eligible)
|
public function onPublish(ConnectionInterface $connection, Topic $topic, WampRequest $request, $event, array $exclude, array $eligible)
|
||||||
{
|
{
|
||||||
$userid=$connection->userid;
|
if(!is_array($event)) $event=json_decode($event, true);
|
||||||
|
$userid=$event["userid"];
|
||||||
|
|
||||||
$user=$this->em->getRepository("CadolesCoreBundle:User")->find($userid);
|
$user=$this->em->getRepository("CadolesCoreBundle:User")->find($userid);
|
||||||
if(!$user)
|
if(!$user)
|
||||||
|
@ -80,13 +81,13 @@ class WebsocketCounter implements TopicInterface
|
||||||
if(!$group)
|
if(!$group)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/*
|
||||||
$usergroup=$this->em->getRepository("CadolesCoreBundle:UserGroup")->findOneBy(["user"=>$user,"group"=>$group]);
|
$usergroup=$this->em->getRepository("CadolesCoreBundle:UserGroup")->findOneBy(["user"=>$user,"group"=>$group]);
|
||||||
if(!$usergroup)
|
if(!$usergroup)
|
||||||
return;
|
return;
|
||||||
|
*/
|
||||||
|
|
||||||
$topic->broadcast([$event["type"] => 1, "group" => $event["group"] , "from" =>$userid]);
|
$topic->broadcast([$event["type"] => 1, "group" => $event["group"] , "from" =>$userid]);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -69,17 +69,18 @@ class WebsocketTopic implements TopicInterface
|
||||||
*/
|
*/
|
||||||
public function onPublish(ConnectionInterface $connection, Topic $topic, WampRequest $request, $event, array $exclude, array $eligible)
|
public function onPublish(ConnectionInterface $connection, Topic $topic, WampRequest $request, $event, array $exclude, array $eligible)
|
||||||
{
|
{
|
||||||
$userkey=$connection->userkey;
|
|
||||||
$groupid=$request->getAttributes()->get('group');
|
$groupid=$request->getAttributes()->get('group');
|
||||||
|
if(!is_array($event)) $event=json_decode($event, true);
|
||||||
|
|
||||||
$group=$this->em->getRepository("CadolesCoreBundle:Group")->find($groupid);
|
$group=$this->em->getRepository("CadolesCoreBundle:Group")->find($groupid);
|
||||||
if(!$group) {
|
if(!$group) {
|
||||||
$topic->broadcast(['log' => 'group NOT FIND']);
|
$topic->broadcast(['log' => 'group NOT FIND']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$usergroup=$this->em->getRepository("CadolesCoreBundle:UserGroup")->findOneBy(['keyvalue'=> $userkey]);
|
$usergroup=$this->em->getRepository("CadolesCoreBundle:UserGroup")->findOneBy(['keyvalue'=>$event["mykey"]]);
|
||||||
if(!$usergroup) {
|
if(!$usergroup) {
|
||||||
$topic->broadcast(['log' => 'user NOT IN GROUP']);
|
$topic->broadcast(['log' => $event]);
|
||||||
|
$topic->broadcast(['log' => 'user '.$event["mykey"].' NOT IN GROUP '.$groupid]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$user=$usergroup->getUser();
|
$user=$usergroup->getUser();
|
||||||
|
|
|
@ -38,10 +38,14 @@ parameters:
|
||||||
%end if
|
%end if
|
||||||
%if %%getVar("ninegate_activate_websocket", 'non') == "oui"
|
%if %%getVar("ninegate_activate_websocket", 'non') == "oui"
|
||||||
websocket_activate: true
|
websocket_activate: true
|
||||||
websocket_port: 5555
|
websocket_host: %%ninegate_websocket_url
|
||||||
|
websocket_port: %%ninegate_websocket_portexterne
|
||||||
|
websocket_portinterne: %%ninegate_websocket_portinterne
|
||||||
%else
|
%else
|
||||||
websocket_activate: false
|
websocket_activate: false
|
||||||
websocket_port: 5555
|
websocket_host:
|
||||||
|
websocket_port:
|
||||||
|
websocket_portinterne:
|
||||||
%end if
|
%end if
|
||||||
%if %%getVar("ninegate_activate_portal", 'non') == "oui"
|
%if %%getVar("ninegate_activate_portal", 'non') == "oui"
|
||||||
portal_activate: true
|
portal_activate: true
|
||||||
|
|
Loading…
Reference in New Issue