Skip to content

Instantly share code, notes, and snippets.

Mauricio Lopez diaspar

Block or report user

Report or block diaspar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SendMessageDeveloper.php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use BotMan\BotMan\BotManFactory;
use BotMan\BotMan\Drivers\DriverManager;
use App\Contracts\Developers\DevelopersServiceContract;
use Symfony\Component\HttpFoundation\Response;
use BotMan\Drivers\Slack\SlackDriver;
diaspar / gist:4b6caff8f684f3ee8671
Last active Aug 29, 2015
Symfony2 - Multi tenant application
View gist:4b6caff8f684f3ee8671

I have this complex problem to solve.

We have a symfony2 project with a typical src/name/bundleName with all the code. We have controllers, entities, domain, forms and resources as views and css/js code. We are using Doctrine to access the storage. This project works only for the USA branch of the company. (A)

Our client now is asking to use the same project, for its business in Europe (B). After some analysis, These are the requirements we have discovered:

  • One codebase and One repo.
  • The data, even users, is not shared between the A and B. There is no middle instance that can see both sets of data.
  • We are using mysql and ONE database for now. No postgre schemas or multiple independent databases.
  • To avoid code duplication, we have to use the same codebase.

intellij javascript live templates

Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.

How to

  • Go to settings.
  • Search for live templates.
  • Under the javascript section you should be able to manage your templates.
You can’t perform that action at this time.