Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Desymfony 2011 - Habemus Bundles

10,914 views

Published on

Published in: Technology
  • Follow the link, new dating source: ♥♥♥ http://bit.ly/39pMlLF ♥♥♥
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Sex in your area is here: ❶❶❶ http://bit.ly/39pMlLF ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL BOOKS, INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL BOOKS, INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Desymfony 2011 - Habemus Bundles

  1. 1.  cd vendor/bundles/ git clone https://github.com/Acme/DemoBundle.git
  2. 2.  cd vendor/bundles git submodule add https://github.com/Acme/DemoBundle.git vendor/bundles/Acme/AcmeDemoBundle
  3. 3. [AcmeDemoBundle] git=https://github.com/acme/AcmeDemoBundle.git target=/bundles/Acme/AcmeDemoBundle php bin/vendors install
  4. 4. [AcmeDemoBundle] git=https://github.com/acme/AcmeDemoBundle.git target=/bundles/Acme/AcmeDemoBundle php bin/vendors install
  5. 5. // app/autoload.phpuse SymfonyComponentClassLoaderUniversalClassLoader;$loader = new UniversalClassLoader();$loader->registerNamespaces(array( ‘Acme => __DIR__./../vendor/bundles,));
  6. 6. // app/AppKernel.phppublic function registerBundles(){ $bundles = array( new AcmeDemoBundleAcmeDemoBundle(),);
  7. 7. // app/config/config.ymlacme_demo: foo: bar
  8. 8. /** * @Route("/blog") * @Cache(expires="tomorrow") */class AnnotController extends Controller{ /** * @Route("/") * @Template */ public function indexAction() { $posts = ...; return array(posts => $posts); }
  9. 9. class MyService{ /** * @Secure(roles="ROLE_USER, ROLE_FOO, ROLE_ADMIN") */ public function secureMethod() { // ... }
  10. 10.  php app/console doctrine:migrations:diff php app/console doctrine:migrations:execute php app/console doctrine:migrations:generate php app/console doctrine:migrations:migrate php app/console doctrine:migrations:status php app/console doctrine:migrations:version
  11. 11. # app/config/routing.ymlusers: type: rest resource: AcmeHelloBundleControllerUsersController
  12. 12. # app/config/config.ymlavalanche_imagine: filters: my_thumb: type: thumbnail options: { size: [100, 100], mode: outbound }
  13. 13. {# twig #}<img src="{{ /relative/path/to/image.jpg | apply_filter(my_thumb) }}" /><!– php --><img src="<?php $this[imagine]->filter(/relative/path/to/image.jpg, my_thumb) ?>" />
  14. 14. public function testUserFooIndex(){ $this-> loadFixtures(array(LiipFooBundleTestsFixturesLoadUserData)); $client = $this->createClient(); $crawler = $client->request(GET, /users/foo); $this->assertTrue( $crawler->filter(html:contains("Email: foo@bar.com"))->count() > 0 );}
  15. 15. public function testBasicAuthentication(){ $this-> loadFixtures(array(LiipFooBundleTestsFixturesLoadUserData)); $content = $this->fetchContent(/users/foo, GET, true); $this->assertEquals(Hello foo!, $content);}
  16. 16. Feature: Addition In order to avoid silly mistakes As a math idiot I want to be told the sum of two numbers Scenario: Add two numbers Given I have entered 50 into the calculator And I have entered 70 into the calculator When I press add Then The result should be 120 on the screen

×