Permalink
Browse files

Removed vendor/swift, replace with a proper submodule

  • Loading branch information...
1 parent fffda8e commit 48b2e3a24f7fe07733cec3c8f6b4a8dd6d7e1d86 @shadowhand shadowhand committed Mar 4, 2011
Showing with 0 additions and 17,112 deletions.
  1. +0 −77 vendor/swift/classes/Swift.php
  2. +0 −85 vendor/swift/classes/Swift/Attachment.php
  3. +0 −188 vendor/swift/classes/Swift/ByteStream/AbstractFilterableInputStream.php
  4. +0 −197 vendor/swift/classes/Swift/ByteStream/ArrayByteStream.php
  5. +0 −187 vendor/swift/classes/Swift/ByteStream/FileByteStream.php
  6. +0 −49 vendor/swift/classes/Swift/CharacterReader.php
  7. +0 −76 vendor/swift/classes/Swift/CharacterReader/GenericFixedWidthReader.php
  8. +0 −64 vendor/swift/classes/Swift/CharacterReader/UsAsciiReader.php
  9. +0 −84 vendor/swift/classes/Swift/CharacterReader/Utf8Reader.php
  10. +0 −39 vendor/swift/classes/Swift/CharacterReaderFactory.php
  11. +0 −129 vendor/swift/classes/Swift/CharacterReaderFactory/SimpleCharacterReaderFactory.php
  12. +0 −96 vendor/swift/classes/Swift/CharacterStream.php
  13. +0 −329 vendor/swift/classes/Swift/CharacterStream/ArrayCharacterStream.php
  14. +0 −359 vendor/swift/classes/Swift/DependencyContainer.php
  15. +0 −40 vendor/swift/classes/Swift/DependencyException.php
  16. +0 −83 vendor/swift/classes/Swift/EmbeddedFile.php
  17. +0 −42 vendor/swift/classes/Swift/Encoder.php
  18. +0 −73 vendor/swift/classes/Swift/Encoder/Base64Encoder.php
  19. +0 −273 vendor/swift/classes/Swift/Encoder/QpEncoder.php
  20. +0 −100 vendor/swift/classes/Swift/Encoder/Rfc2231Encoder.php
  21. +0 −80 vendor/swift/classes/Swift/Encoding.php
  22. +0 −77 vendor/swift/classes/Swift/Events/CommandEvent.php
  23. +0 −39 vendor/swift/classes/Swift/Events/CommandListener.php
  24. +0 −50 vendor/swift/classes/Swift/Events/Event.php
  25. +0 −91 vendor/swift/classes/Swift/Events/EventDispatcher.php
  26. +0 −30 vendor/swift/classes/Swift/Events/EventListener.php
  27. +0 −76 vendor/swift/classes/Swift/Events/EventObject.php
  28. +0 −75 vendor/swift/classes/Swift/Events/ResponseEvent.php
  29. +0 −39 vendor/swift/classes/Swift/Events/ResponseListener.php
  30. +0 −137 vendor/swift/classes/Swift/Events/SendEvent.php
  31. +0 −45 vendor/swift/classes/Swift/Events/SendListener.php
  32. +0 −185 vendor/swift/classes/Swift/Events/SimpleEventDispatcher.php
  33. +0 −41 vendor/swift/classes/Swift/Events/TransportChangeEvent.php
  34. +0 −63 vendor/swift/classes/Swift/Events/TransportChangeListener.php
  35. +0 −60 vendor/swift/classes/Swift/Events/TransportExceptionEvent.php
  36. +0 −40 vendor/swift/classes/Swift/Events/TransportExceptionListener.php
  37. +0 −58 vendor/swift/classes/Swift/FailoverTransport.php
  38. +0 −38 vendor/swift/classes/Swift/FileStream.php
  39. +0 −44 vendor/swift/classes/Swift/Filterable.php
  40. +0 −72 vendor/swift/classes/Swift/Image.php
  41. +0 −82 vendor/swift/classes/Swift/InputByteStream.php
  42. +0 −40 vendor/swift/classes/Swift/IoException.php
  43. +0 −109 vendor/swift/classes/Swift/KeyCache.php
  44. +0 −219 vendor/swift/classes/Swift/KeyCache/ArrayKeyCache.php
  45. +0 −326 vendor/swift/classes/Swift/KeyCache/DiskKeyCache.php
  46. +0 −63 vendor/swift/classes/Swift/KeyCache/KeyCacheInputStream.php
  47. +0 −120 vendor/swift/classes/Swift/KeyCache/NullKeyCache.php
  48. +0 −141 vendor/swift/classes/Swift/KeyCache/SimpleKeyCacheInputStream.php
  49. +0 −58 vendor/swift/classes/Swift/LoadBalancedTransport.php
  50. +0 −58 vendor/swift/classes/Swift/MailTransport.php
  51. +0 −183 vendor/swift/classes/Swift/Mailer.php
  52. +0 −69 vendor/swift/classes/Swift/Mailer/ArrayRecipientIterator.php
  53. +0 −45 vendor/swift/classes/Swift/Mailer/RecipientIterator.php
  54. +0 −92 vendor/swift/classes/Swift/Message.php
  55. +0 −153 vendor/swift/classes/Swift/Mime/Attachment.php
  56. +0 −36 vendor/swift/classes/Swift/Mime/CharsetObserver.php
  57. +0 −51 vendor/swift/classes/Swift/Mime/ContentEncoder.php
  58. +0 −91 vendor/swift/classes/Swift/Mime/ContentEncoder/Base64ContentEncoder.php
  59. +0 −185 vendor/swift/classes/Swift/Mime/ContentEncoder/PlainContentEncoder.php
  60. +0 −127 vendor/swift/classes/Swift/Mime/ContentEncoder/QpContentEncoder.php
  61. +0 −61 vendor/swift/classes/Swift/Mime/EmbeddedFile.php
  62. +0 −38 vendor/swift/classes/Swift/Mime/EncodingObserver.php
  63. +0 −96 vendor/swift/classes/Swift/Mime/Header.php
  64. +0 −38 vendor/swift/classes/Swift/Mime/HeaderEncoder.php
  65. +0 −46 vendor/swift/classes/Swift/Mime/HeaderEncoder/Base64HeaderEncoder.php
  66. +0 −109 vendor/swift/classes/Swift/Mime/HeaderEncoder/QpHeaderEncoder.php
  67. +0 −82 vendor/swift/classes/Swift/Mime/HeaderFactory.php
  68. +0 −180 vendor/swift/classes/Swift/Mime/HeaderSet.php
  69. +0 −594 vendor/swift/classes/Swift/Mime/Headers/AbstractHeader.php
  70. +0 −128 vendor/swift/classes/Swift/Mime/Headers/DateHeader.php
  71. +0 −171 vendor/swift/classes/Swift/Mime/Headers/IdentificationHeader.php
  72. +0 −326 vendor/swift/classes/Swift/Mime/Headers/MailboxHeader.php
  73. +0 −284 vendor/swift/classes/Swift/Mime/Headers/ParameterizedHeader.php
  74. +0 −136 vendor/swift/classes/Swift/Mime/Headers/PathHeader.php
  75. +0 −118 vendor/swift/classes/Swift/Mime/Headers/UnstructuredHeader.php
  76. +0 −240 vendor/swift/classes/Swift/Mime/Message.php
  77. +0 −118 vendor/swift/classes/Swift/Mime/MimeEntity.php
  78. +0 −206 vendor/swift/classes/Swift/Mime/MimePart.php
  79. +0 −45 vendor/swift/classes/Swift/Mime/ParameterizedHeader.php
  80. +0 −197 vendor/swift/classes/Swift/Mime/SimpleHeaderFactory.php
  81. +0 −394 vendor/swift/classes/Swift/Mime/SimpleHeaderSet.php
  82. +0 −607 vendor/swift/classes/Swift/Mime/SimpleMessage.php
  83. +0 −791 vendor/swift/classes/Swift/Mime/SimpleMimeEntity.php
  84. +0 −75 vendor/swift/classes/Swift/MimePart.php
  85. +0 −52 vendor/swift/classes/Swift/OutputByteStream.php
  86. +0 −157 vendor/swift/classes/Swift/Plugins/AntiFloodPlugin.php
  87. +0 −183 vendor/swift/classes/Swift/Plugins/BandwidthMonitorPlugin.php
  88. +0 −46 vendor/swift/classes/Swift/Plugins/Decorator/Replacements.php
  89. +0 −211 vendor/swift/classes/Swift/Plugins/DecoratorPlugin.php
  90. +0 −47 vendor/swift/classes/Swift/Plugins/Logger.php
  91. +0 −170 vendor/swift/classes/Swift/Plugins/LoggerPlugin.php
  92. +0 −83 vendor/swift/classes/Swift/Plugins/Loggers/ArrayLogger.php
  93. +0 −74 vendor/swift/classes/Swift/Plugins/Loggers/EchoLogger.php
  94. +0 −47 vendor/swift/classes/Swift/Plugins/Pop/Pop3Connection.php
  95. +0 −44 vendor/swift/classes/Swift/Plugins/Pop/Pop3Exception.php
  96. +0 −298 vendor/swift/classes/Swift/Plugins/PopBeforeSmtpPlugin.php
  97. +0 −46 vendor/swift/classes/Swift/Plugins/Reporter.php
  98. +0 −92 vendor/swift/classes/Swift/Plugins/ReporterPlugin.php
  99. +0 −73 vendor/swift/classes/Swift/Plugins/Reporters/HitReporter.php
  100. +0 −57 vendor/swift/classes/Swift/Plugins/Reporters/HtmlReporter.php
  101. +0 −37 vendor/swift/classes/Swift/Plugins/Sleeper.php
  102. +0 −198 vendor/swift/classes/Swift/Plugins/ThrottlerPlugin.php
  103. +0 −37 vendor/swift/classes/Swift/Plugins/Timer.php
  104. +0 −86 vendor/swift/classes/Swift/Preferences.php
  105. +0 −38 vendor/swift/classes/Swift/ReplacementFilterFactory.php
  106. +0 −40 vendor/swift/classes/Swift/RfcComplianceException.php
  107. +0 −58 vendor/swift/classes/Swift/SendmailTransport.php
  108. +0 −66 vendor/swift/classes/Swift/SmtpTransport.php
  109. +0 −44 vendor/swift/classes/Swift/StreamFilter.php
  110. +0 −198 vendor/swift/classes/Swift/StreamFilters/ByteArrayReplacementFilter.php
  111. +0 −76 vendor/swift/classes/Swift/StreamFilters/StringReplacementFilter.php
  112. +0 −63 vendor/swift/classes/Swift/StreamFilters/StringReplacementFilterFactory.php
  113. +0 −39 vendor/swift/classes/Swift/SwiftException.php
  114. +0 −70 vendor/swift/classes/Swift/Transport.php
  115. +0 −553 vendor/swift/classes/Swift/Transport/AbstractSmtpTransport.php
  116. +0 −98 vendor/swift/classes/Swift/Transport/Esmtp/Auth/CramMd5Authenticator.php
  117. +0 −68 vendor/swift/classes/Swift/Transport/Esmtp/Auth/LoginAuthenticator.php
  118. +0 −67 vendor/swift/classes/Swift/Transport/Esmtp/Auth/PlainAuthenticator.php
  119. +0 −222 vendor/swift/classes/Swift/Transport/Esmtp/AuthHandler.php
  120. +0 −48 vendor/swift/classes/Swift/Transport/Esmtp/Authenticator.php
  121. +0 −92 vendor/swift/classes/Swift/Transport/EsmtpHandler.php
  122. +0 −349 vendor/swift/classes/Swift/Transport/EsmtpTransport.php
  123. +0 −107 vendor/swift/classes/Swift/Transport/FailoverTransport.php
  124. +0 −75 vendor/swift/classes/Swift/Transport/IoBuffer.php
  125. +0 −198 vendor/swift/classes/Swift/Transport/LoadBalancedTransport.php
  126. +0 −46 vendor/swift/classes/Swift/Transport/MailInvoker.php
  127. +0 −252 vendor/swift/classes/Swift/Transport/MailTransport.php
  128. +0 −183 vendor/swift/classes/Swift/Transport/SendmailTransport.php
  129. +0 −58 vendor/swift/classes/Swift/Transport/SimpleMailInvoker.php
  130. +0 −46 vendor/swift/classes/Swift/Transport/SmtpAgent.php
  131. +0 −286 vendor/swift/classes/Swift/Transport/StreamBuffer.php
  132. +0 −41 vendor/swift/classes/Swift/TransportException.php
  133. +0 −25 vendor/swift/dependency_maps/cache_deps.php
  134. +0 −97 vendor/swift/dependency_maps/mime_deps.php
  135. +0 −62 vendor/swift/dependency_maps/transport_deps.php
  136. +0 −82 vendor/swift/mime_types.php
  137. +0 −20 vendor/swift/preferences.php
  138. +0 −34 vendor/swift/swift_init.php
  139. +0 −35 vendor/swift/swift_required.php
@@ -1,77 +0,0 @@
-<?php
-
-/*
- General utility class from Swift Mailer.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
- */
-
-/**
- * General utility class in Swift Mailer, not to be instantiated.
- *
- * @package Swift
- *
- * @author Chris Corbyn
- */
-abstract class Swift
-{
-
- /** Swift Mailer Version number generated during dist release process */
- const VERSION = '4.0.4';
-
- /**
- * Internal autoloader for spl_autoload_register().
- *
- * @param string $class
- */
- public static function autoload($class)
- {
- //Don't interfere with other autoloaders
- if (substr($class, 0, strlen(__CLASS__)) != __CLASS__)
- {
- return;
- }
-
- $path = SWIFT_CLASS_DIRECTORY . '/' . str_replace('_', '/', $class) . '.php';
-
- if (file_exists($path))
- {
- require_once $path;
- }
- }
-
- /**
- * Configure autoloading using Swift Mailer.
- *
- * This is designed to play nicely with other autoloaders.
- */
- public static function registerAutoload()
- {
- if (!$callbacks = spl_autoload_functions())
- {
- $callbacks = array();
- }
- foreach ($callbacks as $callback)
- {
- spl_autoload_unregister($callback);
- }
- spl_autoload_register(array('Swift', 'autoload'));
- foreach ($callbacks as $callback)
- {
- spl_autoload_register($callback);
- }
- }
-
-}
@@ -1,85 +0,0 @@
-<?php
-
-/*
- Attachment wrapper class in Swift Mailer.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
- */
-
-//@require 'Swift/Mime/Attachment.php';
-//@require 'Swift/ByteStream/FileByteStream.php';
-//@require 'Swift/DependencyContainer.php';
-
-/**
- * Attachment class for attaching files to a {@link Swift_Mime_Message}.
- * @package Swift
- * @subpackage Mime
- * @author Chris Corbyn
- */
-class Swift_Attachment extends Swift_Mime_Attachment
-{
-
- /**
- * Create a new Attachment.
- * Details may be optionally provided to the constructor.
- * @param string|Swift_OutputByteStream $data
- * @param string $filename
- * @param string $contentType
- */
- public function __construct($data = null, $filename = null,
- $contentType = null)
- {
- call_user_func_array(
- array($this, 'Swift_Mime_Attachment::__construct'),
- Swift_DependencyContainer::getInstance()
- ->createDependenciesFor('mime.attachment')
- );
-
- $this->setBody($data);
- $this->setFilename($filename);
- if ($contentType)
- {
- $this->setContentType($contentType);
- }
- }
-
- /**
- * Create a new Attachment.
- * @param string|Swift_OutputByteStream $data
- * @param string $filename
- * @param string $contentType
- * @return Swift_Mime_Attachment
- */
- public static function newInstance($data = null, $filename = null,
- $contentType = null)
- {
- return new self($data, $filename, $contentType);
- }
-
- /**
- * Create a new Attachment from a filesystem path.
- * @param string $path
- * @param string $contentType optional
- * @return Swift_Mime_Attachment
- */
- public static function fromPath($path, $contentType = null)
- {
- return self::newInstance()->setFile(
- new Swift_ByteStream_FileByteStream($path),
- $contentType
- );
- }
-
-}
@@ -1,188 +0,0 @@
-<?php
-
-/*
- Bi-Directional FileStream in Swift Mailer.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
- */
-
-//@require 'Swift/InputByteStream.php';
-//@require 'Swift/Filterable.php';
-//@require 'Swift/StreamFilter.php';
-
-/**
- * Provides the base functionality for an InputStream supporting filters.
- * @package Swift
- * @subpackage ByteStream
- * @author Chris Corbyn
- */
-abstract class Swift_ByteStream_AbstractFilterableInputStream
- implements Swift_InputByteStream, Swift_Filterable
-{
-
- /** Write sequence */
- private $_sequence = 0;
-
- /** StreamFilters */
- private $_filters = array();
-
- /** A buffer for writing */
- private $_writeBuffer = '';
-
- /** Bound streams */
- private $_mirrors = array();
-
- /**
- * Commit the given bytes to the storage medium immediately.
- * @param string $bytes
- * @access protected
- */
- abstract protected function _commit($bytes);
-
- /**
- * Flush any buffers/content with immediate effect.
- * @access protected
- */
- abstract protected function _flush();
-
- /**
- * Add a StreamFilter to this InputByteStream.
- * @param Swift_StreamFilter $filter
- * @param string $key
- */
- public function addFilter(Swift_StreamFilter $filter, $key)
- {
- $this->_filters[$key] = $filter;
- }
-
- /**
- * Remove an already present StreamFilter based on its $key.
- * @param string $key
- */
- public function removeFilter($key)
- {
- unset($this->_filters[$key]);
- }
-
- /**
- * Writes $bytes to the end of the stream.
- * @param string $bytes
- * @throws Swift_IoException
- */
- public function write($bytes)
- {
- $this->_writeBuffer .= $bytes;
- foreach ($this->_filters as $filter)
- {
- if ($filter->shouldBuffer($this->_writeBuffer))
- {
- return;
- }
- }
- $this->_doWrite($this->_writeBuffer);
- return ++$this->_sequence;
- }
-
- /**
- * For any bytes that are currently buffered inside the stream, force them
- * off the buffer.
- *
- * @throws Swift_IoException
- */
- public function commit()
- {
- $this->_doWrite($this->_writeBuffer);
- }
-
- /**
- * Attach $is to this stream.
- * The stream acts as an observer, receiving all data that is written.
- * All {@link write()} and {@link flushBuffers()} operations will be mirrored.
- *
- * @param Swift_InputByteStream $is
- */
- public function bind(Swift_InputByteStream $is)
- {
- $this->_mirrors[] = $is;
- }
-
- /**
- * Remove an already bound stream.
- * If $is is not bound, no errors will be raised.
- * If the stream currently has any buffered data it will be written to $is
- * before unbinding occurs.
- *
- * @param Swift_InputByteStream $is
- */
- public function unbind(Swift_InputByteStream $is)
- {
- foreach ($this->_mirrors as $k => $stream)
- {
- if ($is === $stream)
- {
- if ($this->_writeBuffer !== '')
- {
- $stream->write($this->_filter($this->_writeBuffer));
- }
- unset($this->_mirrors[$k]);
- }
- }
- }
-
- /**
- * Flush the contents of the stream (empty it) and set the internal pointer
- * to the beginning.
- * @throws Swift_IoException
- */
- public function flushBuffers()
- {
- if ($this->_writeBuffer !== '')
- {
- $this->_doWrite($this->_writeBuffer);
- }
- $this->_flush();
-
- foreach ($this->_mirrors as $stream)
- {
- $stream->flushBuffers();
- }
- }
-
- // -- Private methods
-
- /** Run $bytes through all filters */
- private function _filter($bytes)
- {
- foreach ($this->_filters as $filter)
- {
- $bytes = $filter->filter($bytes);
- }
- return $bytes;
- }
-
- /** Just write the bytes to the stream */
- private function _doWrite($bytes)
- {
- $this->_commit($this->_filter($bytes));
-
- foreach ($this->_mirrors as $stream)
- {
- $stream->write($bytes);
- }
-
- $this->_writeBuffer = '';
- }
-
-}
Oops, something went wrong.

0 comments on commit 48b2e3a

Please sign in to comment.