Skip to content

Instantly share code, notes, and snippets.

@arnaud-lb
Created April 17, 2018 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnaud-lb/067f7c2bfeed23f479d7de0999a83cb9 to your computer and use it in GitHub Desktop.
Save arnaud-lb/067f7c2bfeed23f479d7de0999a83cb9 to your computer and use it in GitHub Desktop.
<?php
namespace ${1:`substitute(substitute(expand("%:h"), '\v^\w+\/(\u)', '\1', ''), '\/', '\\\', 'g')`};
class ${2:`Filename('', 'myClass')`}
{
${3}
}
<?php
namespace ${1:`substitute(substitute(expand("%:h"), '\v^\w+\/(\u)', '\1', ''), '\/', '\\\', 'g')`};
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class ${2:`Filename('', 'myClass')`} extends ContainerAwareCommand
{
public function configure()
{
$this->setName('');
}
public function execute(InputInterface $input, OutputInterface $output)
{
$container = $this->getContainer();
}
}
<?php
namespace ${1:`substitute(substitute(expand("%:h"), '\v^\w+\/(\u)', '\1', ''), '\/', '\\\', 'g')`};
use Mention\CoreBundle\Tests\TestCase;
class ${2:`Filename('', 'myClass')`} extends TestCase
{
public function _setUp()
{
parent::_setUp();
}
public function test${3}()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment