This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This class has been auto-generated by the Doctrine ORM Framework | |
*/ | |
class Version73 extends Doctrine_Migration_Base | |
{ | |
public function up() | |
{ | |
$manager = Doctrine_Manager::getInstance(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* This file is part of the Sonata package. | |
* | |
* (c) Thomas Rabaix <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Luxodo\Bundle\ProductionBundle\Admin; | |
use Sonata\AdminBundle\Admin\Admin; | |
use Sonata\AdminBundle\Datagrid\ListMapper; | |
use Sonata\AdminBundle\Datagrid\DatagridMapper; | |
use Sonata\AdminBundle\Form\FormMapper; | |
use Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQuery; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping" | |
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> | |
<entity name="Luxodo\Bundle\ProductionBundle\Entity\Category" table="category" repository-class="Gedmo\Tree\Entity\Repository\NestedTreeRepository"> | |
<id name="id" type="integer" column="id"> | |
<generator strategy="IDENTITY"/> | |
</id> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tworzenieweb\Bundle\ApiBundle\Manager; | |
use Symfony\Bridge\Monolog\Logger, | |
Symfony\Component\HttpKernel\Kernel, | |
Guzzle\Http\Client, | |
Guzzle\Plugin\CurlAuth\CurlAuthPlugin; | |
class ApiManager { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Luxodo\Bundle\ProductionBundle\Tests; | |
use Luxodo\Bundle\ProductionBundle\Entity\Product; | |
use Luxodo\Bundle\ProductionBundle\Manager\StatusManager; | |
class ProductTest extends \PHPUnit_Framework_TestCase | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Phpme\Bundle\ExampleBundle\Twig\Extension; | |
use Symfony\Bundle\FrameworkBundle\HttpKernel; | |
class ComponentExtension extends \Twig_Extension | |
{ | |
private $httpKernel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$installer = new Mage_Eav_Model_Entity_Setup('eav_setup'); | |
$installer->startSetup(); | |
$inheritBase = 9; // default for product | |
$attributeSetName = 'Custom Attribute Set'; | |
$installer->addAttributeSet('catalog_product', $attributeSetName); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew | |
chmod +x phpbrew | |
sudo mv phpbrew /usr/bin/phpbrew | |
phpbrew | |
phpbrew init | |
nano ~/.zshrc | |
soure ~/.zshrc | |
phpbrew install 5.4.45 | |
sudo apt-get install libxml2-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -u root -se "SELECT CONCAT('DROP DATABASE ', SCHEMA_NAME, ';') FROM information_schema.SCHEMATA WHERE SCHEMA_NAME LIKE '%_test_%'" |
OlderNewer