Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: mikehumbeeck
  5. * Date: 19/03/2018
  6. * Time: 10:21
  7. */
  8.  
  9. namespace App\Controller;
  10.  
  11.  
  12. use App\Model\Services\FileService;
  13.  
  14. class FileController
  15. {
  16. /** @var FileService */
  17. private $fileService;
  18.  
  19. public function __construct()
  20. {
  21. $this->fileService = new FileService();
  22. }
  23.  
  24. public function getAllUsers()
  25. {
  26. $files = $this->fileService->getAllUsers();
  27. foreach ($files as $file) {
  28. $args = [
  29. 'id' => $file->getFileid(),
  30. 'fname' => $file->getFname(),
  31. 'name' => $file->getName()
  32. ];
  33. }
  34. return $args;
  35. }
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement