Application.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
  4. *
  5. * @license GNU AGPL version 3 or any later version
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  9. * License as published by the Free Software Foundation; either
  10. * version 3 of the License, or any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  16. *
  17. * You should have received a copy of the GNU Affero General Public
  18. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. namespace OCA\Comments\AppInfo;
  21. use OCA\Comments\Controller\Notifications;
  22. use OCP\AppFramework\App;
  23. class Application extends App {
  24. public function __construct (array $urlParams = array()) {
  25. parent::__construct('comments', $urlParams);
  26. $container = $this->getContainer();
  27. $container->registerAlias('NotificationsController', Notifications::class);
  28. }
  29. }