AuditManagerInterface.php 869 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 $serviceId
  18. * @param array $classes
  19. */
  20. function setReader($serviceId, array $classes);
  21. /**
  22. * @param $class
  23. * @return bool
  24. */
  25. function hasReader($class);
  26. /**
  27. * @param $class
  28. * @return \Sonata\AdminBundle\Model\AuditReaderInterface
  29. * @throws \RuntimeException
  30. */
  31. function getReader($class);
  32. }