This file contains 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
require "yaml" | |
parameter_file = "./parameters.yml" | |
parameters = Array.new(0) | |
if File.exists?(parameter_file) | |
parameters = YAML::load_file(parameter_file) | |
end | |
# Apply configuration values if available |
This file contains 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 Drupal\acme\Controller; | |
use Drupal\Core\Controller\ControllerBase; | |
class DefaultController extends ControllerBase | |
{ | |
/** |
This file contains 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
public function indexAction(){ | |
$entityManager = $this->getDoctrine()->getManager(); | |
$articles = $entityManager->getRepository('ORMDemoBundle:Article')->findAll(); | |
return $this->render( | |
'ORMDemoBundle:Article:index.html.twig', | |
['articles' => $articles] | |
); |
This file contains 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
$ bin/console container:debug |
This file contains 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 Drupal\AppConsole\Command; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |
use Drupal\Core\Extension\ExtensionDiscovery; |
This file contains 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 | |
/** | |
* @file | |
* Contains \Drupal\AppConsole\Command\CacheRebuildCommand. | |
*/ | |
namespace Drupal\AppConsole\Command; | |
use Symfony\Component\Console\Input\InputOption; |
- http://www.lakshminp.com/speeding-up-drupal-8-module-creation-using-drupal-console/
- http://fourword.fourkitchens.com/article/four-kitchens-badcamp-2014
- http://www.sitepoint.com/drupalcon-amsterdam-2014-report
- http://www.ctidigital.com/blog/drupalcon-amsterdam-2014-day-three
- http://www.jpstacey.info/blog/2014-10-05/my-drupalcon-amsterdam-notes
- http://www.annertech.com/blog/drupalcon-amsterdam-day2-review
- https://www.acquia.com/resources/podcasts/acquia-podcast-156-j-m-olivas-introducing-drupal-8-console-scaffolding-module-generator
- https://www.acquia.com/resources/podcasts/acquia-podcast-157-drupal-8-developer-experience-wins-php-renaissance-angie-byron
- https://www.acquia.com/blog/ultimate-guide-drupal-8-episode-7-code-changes-drupal-8