Skip to content

Instantly share code, notes, and snippets.

@langhard
Last active April 2, 2017 18:10
Show Gist options
  • Select an option

  • Save langhard/6006843 to your computer and use it in GitHub Desktop.

Select an option

Save langhard/6006843 to your computer and use it in GitHub Desktop.

Revisions

  1. langhard revised this gist Jul 17, 2013. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions Controller-Incection
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    /**
    * @var \TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface
    * @inject
    */
    protected $persistenceManager;
  2. langhard revised this gist Jul 16, 2013. 2 changed files with 3 additions and 3 deletions.
    3 changes: 3 additions & 0 deletions PersistenceManager
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    $objectManager = new \TYPO3\CMS\Extbase\Object\ObjectManager();
    $persistenceManager = $objectManager->get('TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager');
    $persistenceManager->persistAll();
    3 changes: 0 additions & 3 deletions PostController.php
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    $objectManager = new \TYPO3\CMS\Extbase\Object\ObjectManager();
    $persistenceManager = $objectManager->get('TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager');
    $persistenceManager->persistAll();
  3. langhard created this gist Jul 16, 2013.
    3 changes: 3 additions & 0 deletions PostController.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    $objectManager = new \TYPO3\CMS\Extbase\Object\ObjectManager();
    $persistenceManager = $objectManager->get('TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager');
    $persistenceManager->persistAll();