git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| <?php | |
| class ClassController extends Controller | |
| { | |
| public function list_professions(Request $request) | |
| { | |
| $em = $this->container->get('doctrine')->getManager(); | |
| $type = $request->request->get('type'); | |
| $profession_libelle = $request->request->get('profession_libelle'); |
| # Deny access to filenames starting with dot(.) | |
| <FilesMatch "^\."> | |
| Order allow,deny | |
| Deny from all | |
| </FilesMatch> |
| <?php | |
| declare(strict_types=1); | |
| namespace App\Command\Migration; | |
| use Doctrine\Common\Persistence\ManagerRegistry; | |
| use Doctrine\Migrations\Configuration\EntityManager\ExistingEntityManager; | |
| use Doctrine\Migrations\Configuration\Migration\YamlFile; | |
| use Doctrine\Migrations\DependencyFactory; |
| <?php | |
| // Ce fichier se trouve au chemin src/NativeAutoload.php | |
| namespace App; | |
| class NativeAutoload { | |
| } |
| <?php | |
| namespace Src\App; | |
| class ObjectConverterClass | |
| { | |
| /** | |
| * Convert Array to Object class | |
| * | |
| * @param array $array |
| <?php | |
| namespace Src\App; | |
| class ReplaceArrayKeyWhitoutChangingOrder | |
| { | |
| /** | |
| * Function that replace an array key without changing the order of all keys | |
| * | |
| * @param array $array |
| { | |
| "meta": { | |
| "theme": "kendall" | |
| }, | |
| "basics": { | |
| "name": "Loïc Thiaw-Wing-Kaï", | |
| "label": "Symfony Backend developer", | |
| "picture": "https://media.licdn.com/dms/image/C4E03AQGf04QjKzIBVg/profile-displayphoto-shrink_200_200/0/1516887922413?e=1678924800&v=beta&t=0wfK98iP3h9xwWFryTUkTMxNpt5rcoivulbUq0KuAtE", | |
| "email": "twkloic@gmail.com", | |
| "website": "https://github.com/MushuLeDragon", |
| # Commands to set a subfolder on Github Pages instead ROOT | |
| # Inspired from | |
| # - https://gist.github.com/cobyism/4730490 | |
| # And | |
| # - https://stackoverflow.com/a/36782614/7998119 | |
| # Command to publish on Remote | |
| git subtree push --prefix build_folder origin gh-pages | |
| # Command to update the branch after a commit | |
| git push origin `git subtree split --prefix build_folder master`:gh-pages --force |
| <?php | |
| namespace libs\mysql; | |
| class PDODbImporter{ | |
| private static $keywords = array( | |
| 'ALTER', 'CREATE', 'DELETE', 'DROP', 'INSERT', | |
| 'REPLACE', 'SELECT', 'SET', 'TRUNCATE', 'UPDATE', 'USE', | |
| 'DELIMITER', 'END' | |
| ); |