Real unit test (isolation, no children render)
Calls:
- constructor
- render
| # For example, run "npm install" | |
| docker run -v "$PWD":/usr/src/app -w /usr/src/app node:4 npm install | |
| # This command creates a container (downloading one first if you don't have it locally), runs the command in a current directory and quits the container | |
| # Great Success! |
Clone the base repository into oro-platform directory:
git clone [email protected]:lolautruche/platform.git oro-platform
git remote add upstream [email protected]:orocrm/platform.git
git config branch.master.remote upstreamRun the 2 shell scripts, split_oro_config_component.sh and split_oro_distribution_bundle.sh
| <?php | |
| $app | |
| ->get('/crowdin/pull', function (Request $request) use ($app) { | |
| $responses = array(); | |
| $config = $app['config']['crowdin']['download']; | |
| $app['crowdin']->api('export')->execute(); | |
| if (!is_dir($config['base_dir'])) { |
| <?php | |
| namespace Zalas\Bundle\PackagistBundle\Command; | |
| use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
| use Symfony\Component\Console\Input\InputInterface; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Output\OutputInterface; | |
| class FindPackageListsCommand extends ContainerAwareCommand |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.
| <?php | |
| namespace Acme\DBAL\Platforms; | |
| use Doctrine\DBAL\Platforms\PostgreSqlPlatform as DoctrinePostgreSqlPlatform; | |
| class PostgreSqlPlatform extends DoctrinePostgreSqlPlatform | |
| { | |
| public function getTruncateTableSQL($tableName, $cascade = false) | |
| { |
| # Inspired from http://blog.hio.fr/2011/09/17/doctrine2-yaml-mapping-example.html | |
| MyEntity: | |
| type: entity | |
| repositoryClass: MyRepositoryClass | |
| table: my_entity | |
| namedQueries: | |
| all: "SELECT u FROM __CLASS__ u" | |
| # Class-Table-Inheritance |