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 | |
// facebook API usage example from | |
// http://www.joeyrivera.com/2010/facebook-graph-api-app-easy-w-php-sdk/ | |
require_once ‘library/facebook.php’; | |
$app_id = "yourappid"; | |
$app_secret = "yourappsecret"; |
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 Foomo\Facebook\Apps; | |
use Foomo\Config\AbstractConfig; | |
use Facebook; | |
/** | |
* facebook app domain specific configuration | |
*/ |
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 | |
$facebook = Foomo\Config::getConf( | |
My\App\Module::NAME, | |
Foomo\Facebook\Apps\DomainConfig::NAME | |
)->getFacebook(); |
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
# the important part here is the mapping of the anonymous user to the foomo user, | |
# so that there are no nasty rights conflicts, when mounting over nfs | |
# | |
# obviously you need to have the right uid and gid for the foomo user | |
# disclaimer: this is for development purposes only !!! | |
/var/www *(rw,nohide,insecure,no_subtree_check,async,all_squash,anonuid=1000,anongid=1000) |
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
# this is an excerpt of the file, do not replace the whole file | |
# and again - this is developemnt only | |
export APACHE_RUN_USER=foomo | |
export APACHE_RUN_GROUP=foomo |
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
[xdebug] | |
; this is obviously very specific for the install | |
; be aware, that zend_extensions have to be loaded | |
; with their full path, even if they are in | |
; extension_dir | |
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so | |
; this is specific to your machine i.e. the machine | |
; your IDE / debugger is running on | |
xdebug.remote_host=192.168.56.1 |
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
// Huckleberry less usage example | |
\Foomo\Huckleberry\Less::create( | |
// in which module is your less file | |
\Foomo\Huckleberry\Module::NAME, | |
// name of the less file | |
'demo', | |
// give it a version <- makes deployments easier, because caches | |
// will not "work" | |
'alpha-01' |
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 | |
// create a bundle | |
// putting it for example on your Module class is a good idea | |
$bundle = Foomo\RequireJS\Bundle::create( | |
// module name | |
My\Module::NAME, | |
// name of the bindle | |
'example', | |
// use versions - they make deployments of new app versions |
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 My\Module; | |
/** | |
* a sample Foomo Job | |
*/ | |
class AJob extends \Foomo\Jobs\AbstractJob | |
{ |
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 My\Module; | |
/** | |
* a sample job list | |
*/ | |
class JobList implements \Foomo\Jobs\JobListInterface | |
{ | |
public static function getJobs() |
OlderNewer