5 * Contains \Drupal\woot\WootManager.
10 use Drupal\Component\Graph\Graph;
11 use Drupal\Component\Utility\SafeMarkup;
12 use Drupal\Core\Config\Entity\ConfigEntityInterface;
13 use Drupal\Core\Entity\ContentEntityInterface;
14 use Drupal\Core\Entity\EntityManager;
15 use Drupal\Core\Session\AccountInterface;
16 use Drupal\rest\LinkManager\LinkManagerInterface;
17 use Drupal\rest\Plugin\Type\ResourcePluginManager;
18 use Symfony\Component\Serializer\Serializer;
21 * A simulated service for wooting.
22 * @todo throw useful exceptions
29 * @var \Drupal\Core\Session\AccountInterface
31 protected $currentUser;
34 * Constructs the default content manager.
36 * @param \Drupal\Core\Session|AccountInterface $current_user
39 public function __construct(AccountInterface $current_user) {
40 $this->currentUser = $current_user;
44 * Woof mightily. Note that we can include commands directly
45 * inside a service class.
50 public function woof()