This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// obligatoire | |
session_start(); | |
require('config/config.inc.php'); | |
require('vendor/autoload.php'); // load des fichiers Facebook | |
use Facebook\FacebookSession; | |
use Facebook\FacebookRedirectLoginHelper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
[exception] 500 | Internal Server Error | ErrorException | |
[message] Warning: file_put_contents(): Filename cannot be empty in /Users/rkueny/Website/perso/symfogames/vendor/kriswallsmith/assetic/src/Assetic/Filter/LessFilter.php line 113 | |
[1] ErrorException: Warning: file_put_contents(): Filename cannot be empty in /Users/rkueny/Website/perso/symfogames/vendor/kriswallsmith/assetic/src/Assetic/Filter/LessFilter.php line 113 | |
at n/a | |
in /Users/rkueny/Website/perso/symfogames/vendor/kriswallsmith/assetic/src/Assetic/Filter/LessFilter.php line 113 | |
at Symfony\Component\HttpKernel\Debug\ErrorHandler->handle('2', 'file_put_contents(): Filename cannot be empty', '/Users/rkueny/Website/perso/symfogames/vendor/kriswallsmith/assetic/src/Assetic/Filter/LessFilter.php', '113', array('asset' => object(FileAsset), 'format' => 'var less = require(&#039;less&#039;); | |
var sys = require(process.b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const BootBot = require('bootbot'); | |
const bot = new BootBot({ | |
accessToken: 'FACEBOOK_ACCESS_TOKEN', | |
verifyToken: 'FACEBOOK_VERIFY_TOKEN', | |
appSecret: 'FACEBOOK_APP_SECRET' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": [ | |
"eslint:recommended", | |
"plugin:import/errors", | |
"plugin:import/warnings" | |
], | |
"plugins": [ | |
"react" | |
], | |
"parserOptions": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
render() { | |
return ( | |
<KeyboardAwareScrollView> | |
<View style={styles.container}> | |
<Text style={styles.welcome}> | |
Welcome to React Native! | |
</Text> | |
<Text style={styles.instructions}> | |
To get started, edit index.ios.js | |
</Text> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require('vendor/autoload.php'); | |
use Mpociot\BotMan\BotManFactory; | |
use Mpociot\BotMan\BotMan; | |
use Mpociot\BotMan\Facebook\Element as Element; | |
use Mpociot\BotMan\Facebook\ElementButton as ElementButton; | |
use Mpociot\BotMan\Facebook\ButtonTemplate as ButtonTemplate; | |
use Mpociot\BotMan\Facebook\GenericTemplate as GenericTemplate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"config": { | |
"sort-packages": true, | |
"bin-dir": "bin", | |
"vendor-dir": "/app-vendor" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ... | |
public function getCacheDir() | |
{ | |
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { | |
return '/app-cache'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Twig; | |
use Twig\Extension\AbstractExtension; | |
use Twig\TwigFunction; | |
class AppExtension extends AbstractExtension | |
{ | |
public function getFunctions() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Twig; | |
use App\Twig\AppRuntime; | |
use Twig\Extension\AbstractExtension; | |
use Twig\TwigFilter; | |
class AppExtension extends AbstractExtension | |
{ |
OlderNewer