AuditManagerInterface.php 894 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /*
  3. * This file is part of the Sonata package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\AdminBundle\Model;
  11. use Sonata\AdminBundle\Admin\FieldDescriptionInterface;
  12. use Sonata\AdminBundle\Datagrid\DatagridInterface;
  13. use Sonata\AdminBundle\Datagrid\ProxyQueryInterface;
  14. interface AuditManagerInterface
  15. {
  16. /**
  17. * @param string $serviceId
  18. * @param array $classes
  19. */
  20. function setReader($serviceId, array $classes);
  21. /**
  22. * @param string $class
  23. *
  24. * @return bool
  25. */
  26. function hasReader($class);
  27. /**
  28. * @param string $class
  29. *
  30. * @return \Sonata\AdminBundle\Model\AuditReaderInterface
  31. * @throws \RuntimeException
  32. */
  33. function getReader($class);
  34. }