https://www.udemy.com/introduction-to-web-development-with-symfony2/#/lecture/934594
In lecture 79 they create service for Author:
myproject\src\Blog\CoreBundle\Controller\AuthorCon troller.php
Expand|Select|Wrap|Line Numbers
- class AuthorController extends Controller
- {
- public function showAction($slug)
- {
- $author = $this->getAuthorManager()->findBySlug($slug);
- $posts = $this->getAuthorManager()->findPosts($author);
- return array(
- 'author'=>$author,
- 'posts'=>$posts
- );
- }
- private function getAuthorManager()
- {
- return $this->get('authorManager');
- }
- }
->findBySlug($slug) and ->findPosts($author).
How to find this place in code?