apt-get update
apt-get upgrade
apt-get install build-essential
<?php | |
/*------------------------------------------------- | |
----------------Class : Membre -------------------- | |
--------------------------------------------------*/ | |
abstract class Membre { | |
private $id; | |
private $login; | |
private $firstName; | |
private $lastName; | |
private $dateOfBirth; |
<?php | |
namespace Plt\Bundle\UserBundle\Security\Core\User; | |
use HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface; | |
use HWI\Bundle\OAuthBundle\Security\Core\User\FOSUBUserProvider as BaseClass; | |
use Plt\Bundle\UserBundle\Entity\User; | |
use Symfony\Component\Filesystem\Filesystem; | |
use Symfony\Component\Security\Core\User\UserInterface; | |
class FOSUBUserProvider extends BaseClass |
; Include Drupal Core and any core patches. | |
api = 2 | |
core = 7.x | |
; Drupal Core | |
projects[drupal][type] = core | |
projects[drupal][version] = 7.50 | |
<?php | |
$list = array(1,2,2,2,2,3,3,1,1,1,1,1,2,2,1,2,3,1,2,1,1,3); | |
$line = 1; | |
$ordered = array(); | |
foreach ($list as $item) { | |
if (isset($ordered[$line]) && (array_sum($ordered[$line]) + $item) > 3) { | |
$line++; | |
} |