Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MessageDataCollector.php

class MessageDataCollector

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • class \Symfony\Component\HttpKernel\DataCollector\DataCollector implements \Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface
    • class \Symfony\Component\Mailer\DataCollector\MessageDataCollector extends \Symfony\Component\HttpKernel\DataCollector\DataCollector

Expanded class hierarchy of MessageDataCollector

File

vendor/symfony/mailer/DataCollector/MessageDataCollector.php, line 23

Namespace

Symfony\Component\Mailer\DataCollector
View source
final class MessageDataCollector extends DataCollector {
    private MessageEvents $events;
    public function __construct(MessageLoggerListener $logger) {
        $this->events = $logger->getEvents();
    }
    public function collect(Request $request, Response $response, ?\Throwable $exception = null) : void {
        $this->data['events'] = $this->events;
    }
    public function getEvents() : MessageEvents {
        return $this->data['events'];
    }
    
    /**
     * @internal
     */
    public function base64Encode(string $data) : string {
        return base64_encode($data);
    }
    public function reset() : void {
        $this->data = [];
    }
    public function getName() : string {
        return 'mailer';
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
DataCollector::$cloner private property
DataCollector::$data protected property
DataCollector::cloneVar protected function Converts the variable into a serializable Data instance.
DataCollector::getCasters protected function 1
DataCollector::serialize final protected function @internal to prevent implementing \Serializable
DataCollector::unserialize final protected function @internal to prevent implementing \Serializable
DataCollector::__sleep public function 1
DataCollector::__wakeup public function 1
MessageDataCollector::$events private property
MessageDataCollector::base64Encode public function @internal
MessageDataCollector::collect public function Collects data for the given Request and Response. Overrides DataCollectorInterface::collect
MessageDataCollector::getEvents public function
MessageDataCollector::getName public function Returns the name of the collector. Overrides DataCollectorInterface::getName
MessageDataCollector::reset public function Overrides DataCollector::reset
MessageDataCollector::__construct public function
RSS feed
Powered by Drupal