Changeset 2822815
- Timestamp:
- 11/23/2022 11:33:56 AM (3 years ago)
- Location:
- easycontent/trunk
- Files:
-
- 4 added
- 1 deleted
- 15 edited
-
app/Attachment.php (modified) (3 diffs)
-
app/Implementation/Entity/DbPostStorage.php (modified) (1 diff)
-
app/MediaList.php (modified) (1 diff)
-
app/Plugin.php (modified) (1 diff)
-
app/ValueObjects/AttachmentPost.php (added)
-
app/helpers/PostContentProcessor.php (modified) (3 diffs)
-
assets/js/admin.min.js (modified) (1 diff)
-
assets/js/gutenberg/build/index.js (modified) (1 diff)
-
assets/js/gutenberg/build/index.js.map (deleted)
-
easycontent-wp.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/ClassLoader.php (modified) (18 diffs)
-
vendor/composer/InstalledVersions.php (added)
-
vendor/composer/autoload_classmap.php (modified) (3 diffs)
-
vendor/composer/autoload_real.php (modified) (2 diffs)
-
vendor/composer/autoload_static.php (modified) (5 diffs)
-
vendor/composer/installed.json (modified) (1 diff)
-
vendor/composer/installed.php (added)
-
vendor/composer/platform_check.php (added)
Legend:
- Unmodified
- Added
- Removed
-
easycontent/trunk/app/Attachment.php
r2779639 r2822815 3 3 namespace EasyContent\WordPress; 4 4 5 class Attachment 5 use EasyContent\WordPress\ValueObjects\AttachmentPost; 6 7 final class Attachment 6 8 { 7 /** @var \WP_Post $attachmentObject */ 8 protected $attachmentObject; 9 10 /** @var false|string $filePath */ 11 protected $filePath; 9 /** @var AttachmentPost $attachmentPost */ 10 private $attachmentPost; 12 11 13 12 /** @var false|string $extension */ 14 pr otected$extension;13 private $extension; 15 14 16 15 /** @var false|string $mimeType */ 17 protected $mimeType; 18 19 20 public function __construct($attachment) 21 { 22 $attachmentObject = $attachment instanceof \WP_Post ? $attachment : null; 23 24 if ( is_int( $attachment ) ) { 25 if ( $attachment <= 0 ) { 26 throw new \Exception( __( 'Invalid ID', EASYCONTENT_TXTDOMAIN ) ); 27 } 28 29 $attachmentObject = get_post( $attachment ); 30 } 31 32 if ( null === $attachmentObject ) { 33 throw new \Exception( __( 'Error during fetching', EASYCONTENT_TXTDOMAIN ) ); 34 } 35 36 if ( 'attachment' !== $attachmentObject->post_type ) { 37 throw new \Exception( __( 'Invalid post type', EASYCONTENT_TXTDOMAIN ) ); 38 } 39 40 $this->attachmentObject = $attachmentObject; 41 42 $data = wp_check_filetype( $this->getFilePath() ); 16 private $mimeType; 17 18 private function __construct() { } 19 20 /** 21 * @param \WP_Post $post 22 * @return Attachment 23 * @throws \Exception 24 */ 25 public static function fromWordPressPost(\WP_Post $post) 26 { 27 if ('attachment' !== $post->post_type) { 28 throw new \Exception(__('Invalid post type', EASYCONTENT_TXTDOMAIN)); 29 } 30 31 $filePath = get_attached_file($post->ID); 32 33 return (new self)->create(new AttachmentPost($post->ID, $filePath)); 34 } 35 36 /** 37 * @param AttachmentPost $post 38 * @return Attachment 39 */ 40 public static function fromAttachmentPost(AttachmentPost $post) 41 { 42 return (new self)->create($post); 43 } 44 45 /** 46 * @param AttachmentPost $post 47 * @return $this 48 */ 49 private function create(AttachmentPost $post) 50 { 51 $this->attachmentPost = $post; 52 53 $data = wp_check_filetype($this->getFilePath()); 43 54 44 55 $this->extension = $data['ext']; 45 56 $this->mimeType = $data['type']; 46 } 47 48 49 public function getPostObject() 50 { 51 return $this->attachmentObject; 52 } 53 57 58 return $this; 59 } 60 61 /** 62 * @return AttachmentPost 63 */ 64 public function getAttachmentPost() 65 { 66 return $this->attachmentPost; 67 } 54 68 55 69 public function getFilePath() 56 70 { 57 if ( null === $this->filePath ) { 58 $this->filePath = get_attached_file( $this->getPostObject()->ID, true ); 59 } 60 61 return $this->filePath; 71 return $this->attachmentPost->getLocalUrl(); 62 72 } 63 73 … … 127 137 128 138 try { 129 $attachmentObject = new self( get_post( $attachmentId ));139 $attachmentObject = self::fromWordPressPost(get_post($attachmentId)); 130 140 } catch ( \Exception $e ) { 131 141 return null; … … 186 196 187 197 self::resize( $attachmentFilePath ); 188 self::updateMetaData( $this->attachment Object->ID, $attachmentFilePath );198 self::updateMetaData( $this->attachmentPost->getId(), $attachmentFilePath ); 189 199 190 200 return true; -
easycontent/trunk/app/Implementation/Entity/DbPostStorage.php
r2779639 r2822815 101 101 if ($post->getFeaturedImage()) { 102 102 if ($attachment = Attachment::createFromUrl($post->getFeaturedImage()->getUrl(), $post->getId())) { 103 set_post_thumbnail($post->getId(), $attachment->get PostObject()->ID);103 set_post_thumbnail($post->getId(), $attachment->getAttachmentPost()->getId()); 104 104 105 105 if ($post->getFeaturedImage()->getAlt() !== '') { 106 106 update_post_meta( 107 $attachment->get PostObject()->ID,107 $attachment->getAttachmentPost()->getId(), 108 108 '_wp_attachment_image_alt', 109 109 $post->getFeaturedImage()->getAlt() -
easycontent/trunk/app/MediaList.php
r2547693 r2822815 3 3 namespace EasyContent\WordPress; 4 4 5 class MediaList 5 use EasyContent\WordPress\ValueObjects\AttachmentPost; 6 7 final class MediaList 6 8 { 7 /** @var array| \WP_Post[] $mediaFiles */8 pr otected$mediaFiles;9 /** @var array|AttachmentPost[] $mediaFiles */ 10 private $mediaFiles; 9 11 10 12 /** @var array|int[] $sourceUrls */ 11 pr otected$sourceUrls;13 private $sourceUrls; 12 14 13 15 /** 16 * @return array|AttachmentPost[] 17 */ 14 18 public function getMediaFiles() 15 19 { 16 if ( null === $this->mediaFiles ) { 17 $mediaQuery = new \WP_Query( [ 18 'post_type' => 'attachment', 19 'post_status' => 'inherit', // or 'any' 20 'nopaging' => true, 21 'posts_per_page' => -1 22 ] ); 20 if (null !== $this->mediaFiles) { 21 return $this->mediaFiles; 22 } 23 23 24 if ( $mediaQuery->have_posts() ) { 25 $posts = $mediaQuery->get_posts(); 26 $ids = array_column( $posts, 'ID' ); 24 global $wpdb; 27 25 28 $this->mediaFiles = array_combine( $ids, $posts ); 29 } else { 30 $this->mediaFiles = []; 26 $query = "SELECT `ID`, `meta_value` 27 FROM `{$wpdb->posts}` 28 LEFT JOIN `{$wpdb->postmeta}` ON `{$wpdb->postmeta}`.`post_id` = `ID` AND `{$wpdb->postmeta}`.`meta_key` = '_wp_attached_file' 29 WHERE `post_type` = 'attachment';"; 30 31 $this->mediaFiles = []; 32 $rows = $wpdb->get_results($query, ARRAY_A); 33 34 if (null === $rows) { 35 return $this->mediaFiles; 36 } 37 38 foreach ($rows as $row) { 39 if (!$post = AttachmentPost::fromArray($row)) { 40 continue; 31 41 } 42 43 $this->mediaFiles[$row['ID']] = $post; 32 44 } 33 45 34 46 return $this->mediaFiles; 35 47 } 36 37 48 38 49 public function getSourceUrls() -
easycontent/trunk/app/Plugin.php
r2779639 r2822815 104 104 'ec-gutenberg', 105 105 EASYCONTENT_URL . 'assets/js/gutenberg/build/index.js', 106 ['wp-plugins', 'wp-edit-post', 'wp-element' ]106 ['wp-plugins', 'wp-edit-post', 'wp-element', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-i18n'] 107 107 ); 108 108 } ); -
easycontent/trunk/app/helpers/PostContentProcessor.php
r2547693 r2822815 120 120 121 121 if ( $downloadedAttachment ) { 122 $wpUrl = $downloadedAttachment->get PostObject()->guid;122 $wpUrl = $downloadedAttachment->getAttachmentPost()->getLocalUrl(); 123 123 $this->setParsedFileListItemWordPressUrl( $url, $wpUrl ); 124 124 } … … 147 147 $newUrl = ! isset( $mediaFiles[$mediaId] ) 148 148 ? null 149 : $mediaFiles[$mediaId]->g uid;149 : $mediaFiles[$mediaId]->getLocalUrl(); 150 150 } else { 151 151 $newUrl = $parsedFileList[$url]->getWPUrl(); … … 190 190 191 191 try { 192 $attachmentObj = new Attachment( $mediaFiles[$attachmentId]);192 $attachmentObj = Attachment::fromAttachmentPost($mediaFiles[$attachmentId]); 193 193 } catch ( \Exception $e ) { 194 194 continue; -
easycontent/trunk/assets/js/admin.min.js
r2547693 r2822815 1 !function( d){d(document).ready(function(){var t=d("#ec-post-category-settings-wrapper");function e(e){var t={autoOpen:!1,buttons:[{text:"Cancel",click:function(){d(this).dialog("close")}}],show:!0,hide:!0,minHeight:!1,draggable:!1,modal:!0,resizable:!1},a="push"===e?{text:"Push",click:function(){n.append(o),n.submit(),d(this).dialog("close")}}:{text:"Pull",click:function(){n.append(c),n.submit(),d(this).dialog("close")}};return t.buttons.push(a),t}d("#ec-post-type").change(function(e){"page"===e.target.value?t.hide():t.show()});var o=document.createElement("input");o.type="hidden",o.name="ec_push_post",o.value="1";var c=document.createElement("input");c.type="hidden",c.name="ec_pull_post",c.value="1";var n=d("#post"),a=d("#ec-push-confirmation-modal").dialog(e("push")),l=d("#ec-pull-confirmation-modal").dialog(e("pull"));d("#ec-push-article-button").click(function(e){a.dialog("open")}),d("#ec-pull-article-button").click(function(e){l.dialog("open")});var i=d("#ec-workflow-stage-metabox-input-wrapper"),s=d("#ec-workflow-stage-metabox-data-wrapper"),u=d("#ec-workflow-stage-metabox-input"),r=u.val();d("#ec-edit-workflow-stage-button").click(function(e){s.addClass("ec-workflow-stage-metabox-data_hidden"),i.removeClass("ec-workflow-stage-metabox-wrapper_hidden"),r=u.val()}),d("#ec-cancel-edit-workflow-stage").click(function(e){i.addClass("ec-workflow-stage-metabox-wrapper_hidden"),s.removeClass("ec-workflow-stage-metabox-data_hidden"),u.val(r)})})}(jQuery);1 !function(p){p(document).ready(function(){var t=p("#ec-post-category-settings-wrapper");function e(e){var t={autoOpen:!1,buttons:[{text:"Cancel",click:function(){p(this).dialog("close")}}],show:!0,hide:!0,minHeight:!1,draggable:!1,modal:!0,resizable:!1};return t.buttons.push("push"===e?{text:"Push",click:function(){c.append(o),c.submit(),p(this).dialog("close")}}:{text:"Pull",click:function(){c.append(a),c.submit(),p(this).dialog("close")}}),t}p("#ec-post-type").change(function(e){"page"===e.target.value?t.hide():t.show()});var o=document.createElement("input"),a=(o.type="hidden",o.name="ec_push_post",o.value="1",document.createElement("input")),c=(a.type="hidden",a.name="ec_pull_post",a.value="1",p("#post")),n=p("#ec-push-confirmation-modal").dialog(e("push")),l=p("#ec-pull-confirmation-modal").dialog(e("pull")),i=(p("#ec-push-article-button").click(function(e){n.dialog("open")}),p("#ec-pull-article-button").click(function(e){l.dialog("open")}),p("#ec-workflow-stage-metabox-input-wrapper")),s=p("#ec-workflow-stage-metabox-data-wrapper"),u=p("#ec-workflow-stage-metabox-input"),d=u.val();p("#ec-edit-workflow-stage-button").click(function(e){s.addClass("ec-workflow-stage-metabox-data_hidden"),i.removeClass("ec-workflow-stage-metabox-wrapper_hidden"),d=u.val()}),p("#ec-cancel-edit-workflow-stage").click(function(e){i.addClass("ec-workflow-stage-metabox-wrapper_hidden"),s.removeClass("ec-workflow-stage-metabox-data_hidden"),u.val(d)})})}(jQuery); -
easycontent/trunk/assets/js/gutenberg/build/index.js
r2547693 r2822815 1 !function(e){var t={};function n(c){if(t[c])return t[c].exports;var s=t[c]={i:c,l:!1,exports:{}};return e[c].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,c){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:c})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t,n){var c=n(5);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},s=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),s.forEach(function(t){c(e,t,n[t])})}return e}},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=regeneratorRuntime},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){!function(){e.exports=this.wp.editPost}()},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t,n){"use strict";n.r(t);var c=n(11),s=n(0),a=n(2),o=n(10),r=n(4),i=n(8),l=n(1),u="OPEN_MODAL",p="CLOSE_MODAL",d="TOGGLE_MODAL",h={PULL:"PULL",PUSH:"PUSH"};var f=Object(i.compose)(Object(l.withSelect)(function(e,t){var n=e("easycontent-wp-store"),c=n.getArticle,s=n.getModals,a=e("core/editor"),o=a.isSavingPost,r=a.isEditedPostSaveable,i=a.isAutosavingPost,l=a.isPostSavingLocked,u=a.isCurrentPostPublished,p=a.getCurrentPost,d=s(),f=!o()&&!i()&&r()&&!l()&&(u()||"draft"===p().status);return{article:c(),isOpened:d[h.PUSH].isOpened,postCanBePushed:f}}),Object(l.withDispatch)(function(e,t,n){var c=n.select,s=e("easycontent-wp-store"),a=s.closeModal,o=s.pushArticle,r=c("easycontent-wp-store").isDoingAjax;return{close:function(){a(h.PUSH)},push:function(e,t){t&&!r()&&(o(e),a(h.PUSH))}}}))(function(e){var t=e.article,n=e.isOpened,c=e.postCanBePushed,o=e.close,i=e.push;return Object(s.createElement)(s.Fragment,null,n&&c&&Object(s.createElement)(r.Modal,{className:"ec-push-post-modal",onRequestClose:o,title:Object(a.__)("Push post to EasyContent.io?"),closeButtonLabel:Object(a.__)("Close")},Object(s.createElement)("p",null,t.isSynced?Object(a.__)("Are you sure you want to push this post to EasyContent? Any changes in EasyContent will be overwritten."):Object(a.__)("Push this post to EasyContent?")),Object(s.createElement)(r.Button,{isDefault:!0,onClick:o},Object(a.__)("Cancel")),Object(s.createElement)(r.Button,{isPrimary:!0,onClick:function(){return i(t.id,c)}},Object(a.__)("Push"))))}),b=Object(i.compose)(Object(l.withSelect)(function(e,t,n){return{isOpened:(0,e("easycontent-wp-store").getModals)()[h.PULL].isOpened}}),Object(l.withDispatch)(function(e,t,n){var c=n.select,s=e("easycontent-wp-store"),a=s.closeModal,o=s.pullArticle,r=c("easycontent-wp-store"),i=r.isDoingAjax,l=(0,r.getArticle)();return{close:function(){a(h.PULL)},pull:function(){!i()&&l.isSynced&&(o(),a(h.PULL))}}}))(function(e){var t=e.isOpened,n=e.close,c=e.pull;return Object(s.createElement)(s.Fragment,null,t&&Object(s.createElement)(r.Modal,{className:"ec-push-post-modal",onRequestClose:n,title:Object(a.__)("Pull post from EasyContent.io?"),closeButtonLabel:Object(a.__)("Close")},Object(s.createElement)("p",null,Object(a.__)("Are you sure you want to pull this Post from EasyContent? Any local changes will be overwritten.")),Object(s.createElement)(r.Button,{isDefault:!0,onClick:n},Object(a.__)("Cancel")),Object(s.createElement)(r.Button,{isPrimary:!0,onClick:c},Object(a.__)("Pull"))))}),O=Object(i.compose)(Object(l.withSelect)(function(e,t){var n=e("easycontent-wp-store"),c=n.getArticle,s=(n.getModals,n.getStages),a=n.isDoingAjax,o=n.isStagesSelectVisible,r=e("core/editor"),i=r.isSavingPost,l=r.isEditedPostSaveable,u=r.isPostSavingLocked,p=r.isCurrentPostPublished,d=r.isAutosavingPost,h=r.getCurrentPost,f=!i()&&!d()&&l()&&!u()&&(p()||"draft"===h().status);return{article:c(),stages:s(),doingAjax:a(),isStagesSelectVisible:o(),postCanBePushed:f}}),Object(l.withDispatch)(function(e,t,n){var c=n.select,s=e("easycontent-wp-store"),a=s.openModal,o=s.showSelect,r=s.hideSelect,i=s.setNewArticleStage,l=c("easycontent-wp-store"),u=l.isDoingAjax,p=(0,l.getArticle)();return{openPullModal:function(){a(h.PULL)},openPushModal:function(){a(h.PUSH)},setArticleStage:function(e,t){if(!u()&&p.isSynced){var n=t.find(function(t){return t.id==e.target.value});i(n)}},showSelect:o,hideSelect:r}}))(function(e){var t=e.article,c=e.stages,i=e.doingAjax,l=e.postCanBePushed,u=e.openPushModal,p=e.setArticleStage,d=e.showSelect,h=e.hideSelect,O=e.isStagesSelectVisible,m=e.openPullModal,g=n(13)({active:i,"ec-widget-spinner-wrapper":!0});return Object(s.createElement)(o.PluginPostStatusInfo,null,Object(s.createElement)("div",{className:"ec-post-status-inner-wrapper"},Object(s.createElement)("div",{className:"ec-post-status-header"},"EasyContent"),Object(s.createElement)("div",{className:"ec-post-status-row"},Object(s.createElement)(r.Dashicon,{icon:"format-aside"}),Object(s.createElement)("span",{className:"status-item-name"},Object(a.__)("Item"),": "),t.isSynced?Object(s.createElement)("a",{href:t.url,target:"_blank"},t.topicName):Object(s.createElement)("span",null,Object(a.__)("N/A"))),!O&&Object(s.createElement)("div",{className:"ec-post-status-row"},Object(s.createElement)(r.Dashicon,{icon:"admin-network"}),Object(s.createElement)("span",{className:"status-item-name"},Object(a.__)("Status"),": "),t.isSynced&&t.stage?Object(s.createElement)(s.Fragment,null,Object(s.createElement)("span",{className:"ec-post-stage-color",style:{backgroundColor:"#"+t.stage.color}}),Object(s.createElement)(r.Button,{isLink:!0,onClick:d},t.stage.name)):Object(s.createElement)("span",null,Object(a.__)("N/A"))),c&&c.length>0&&O&&Object(s.createElement)("div",{className:"ec-post-status-row"},Object(s.createElement)("select",{onChange:function(e){return p(e,c)},value:t.stage.id},c.map(function(e,t){return Object(s.createElement)("option",{value:e.id},e.name)})),Object(s.createElement)(r.IconButton,{onClick:h,icon:"no",label:Object(a.__)("Cancel")})),Object(s.createElement)("div",{className:"ec-post-status-row"},Object(s.createElement)(r.Dashicon,{icon:"calendar"}),Object(s.createElement)("span",{className:"status-item-name"},Object(a.__)("Last Updated")+": "),t.lastUpdatedString?Object(s.createElement)(s.Fragment,null,t.lastUpdatedString):Object(s.createElement)(s.Fragment,null,"—")),Object(s.createElement)("div",{className:"ec-post-status-buttons"},Object(s.createElement)(r.Button,{isDefault:!0,disabled:!t.isSynced,onClick:m},Object(a.__)("Pull"))," ",Object(s.createElement)(r.Button,{isPrimary:!0,disabled:!l,onClick:u},Object(a.__)("Push"))),Object(s.createElement)("div",{className:g},Object(s.createElement)(r.Spinner,null))),Object(s.createElement)(f,null),Object(s.createElement)(b,null))}),m=n(5),g=n.n(m),j=n(3),y=n.n(j),E=n(7),S=n.n(E),P="START_AJAX_CALL",_="END_AJAX_CALL";function v(){return{type:P}}function w(){return{type:_}}function A(e,t){switch(this.state=e,this.then=function(e){return new e(this.state,t)},t.type){case P:return void(this.state=y()({},this.state,{doingAjax:!0}));case _:return void(this.state=y()({},this.state,{doingAjax:!1}))}this.reduce&&this.reduce()}var C=n(6),x=n.n(C),L=x.a.mark(D),k=x.a.mark(M),N="PUSH_ARTICLE",T="PULL_ARTICLE",U="UPDATE_ARTICLE_DATA";function D(e){var t,n;return x.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,v();case 2:return t=e?{type:N,id:e}:{type:N},c.next=5,t;case 5:if(!(n=c.sent).success){c.next=9;break}return c.next=9,{type:U,payload:n.payload};case 9:return c.next=11,w();case 11:case"end":return c.stop()}},L)}function M(){var e;return x.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v();case 2:return t.next=4,{type:T};case 4:if(!(e=t.sent).success){t.next=8;break}return t.next=8,{type:U,payload:e.payload};case 8:return t.next=10,w();case 10:case"end":return t.stop()}},k)}function B(e){return{type:U,payload:e}}function I(e,t){this.reduce=function(){switch(t.type){case U:this.state=y()({},e),this.state.article=t.payload}},A.apply(this,arguments)}var H,R=x.a.mark(X),G="SHOW_STAGES_SELECT",V="HIDE_STAGES_SELECT",F="SET_STAGES_ARRAY",q="SET_NEW_ARTICLE_STAGE",J="UPDATE_ARTICLE_STAGE_STATE";function W(){return{type:V}}function X(e){return x.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v();case 2:return t.next=4,{type:q,stage:e};case 4:if(!t.sent.success){t.next=8;break}return t.next=8,{type:J,stage:e};case 8:return t.next=10,W();case 10:return t.next=12,w();case 12:case"end":return t.stop()}},R)}function Y(e,t){this.reduce=function(){switch(t.type){case G:this.state=y()({},this.state,{stagesSelectVisible:!0});break;case V:this.state=y()({},this.state,{stagesSelectVisible:!1});break;case F:this.state=y()({},this.state,{stages:t.stages});break;case J:this.state=y()({},e),this.state.article.stage=t.stage}},A.apply(this,arguments)}var z={modals:(H={},g()(H,h.PULL,{isOpened:!1}),g()(H,h.PUSH,{isOpened:!1}),H),article:{id:0,isSynced:!1,title:"",topicName:Object(a.__)("N/A"),url:"#",content:"",stage:{id:0,name:Object(a.__)("N/A"),color:"fff"},lastUpdatedString:""},stages:[],stagesSelectVisible:!1,doingAjax:!1};var K,Q=n(9),Z=Object(l.registerStore)("easycontent-wp-store",{reducer:function(){return new function(e,t){this.reduce=function(){var e=t.modal===h.PULL?h.PUSH:h.PULL;switch(t.type){case u:this.state.modals[t.modal].isOpened||this.state.modals[e].isOpened||(this.state=y()({},this.state),this.state.modals[t.modal].isOpened=!0);break;case p:this.state.modals[t.modal].isOpened&&(this.state=y()({},this.state),this.state.modals[t.modal].isOpened=!1);break;case d:var n=!this.state.modals[t.modal].isOpened;(!this.state.modals[e].isOpened&&n||this.state.modals[t.modal].isOpened&&!n)&&(this.state=y()({},this.state),this.state.modals[t.modal].isOpened=n)}},A.apply(this,arguments)}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:z,arguments.length>1?arguments[1]:void 0).then(Y).then(I).state},actions:{openModal:function(e){return{type:u,modal:e}},closeModal:function(e){return{type:p,modal:e}},toggleModal:function(e){return{type:d,modal:e}},pushArticle:D,pullArticle:M,showSelect:function(){return{type:G}},hideSelect:W,setNewArticleStage:X},selectors:{getArticle:function(e){return e.article},getModals:function(e){return e.modals},getStages:function(e){return e.stages},isStagesSelectVisible:function(e){return e.stagesSelectVisible},isDoingAjax:function(e){return e.doingAjax}},controls:(K={},g()(K,N,function(e){var t=Object(l.select)("core/editor").getCurrentPostId();return t=t||0,S()({method:"POST",path:"/easycontent/v1/posts/".concat(t,"/push"),cache:"no-cache"}).then(function(e){return Object(l.dispatch)("core/notices").createSuccessNotice(Object(a.__)("Post was pushed to EasyContent.io successfully")),{payload:e,success:!0}},function(e){return 404==e.code?Object(l.dispatch)("core/notices").createErrorNotice(e.message,{actions:[{onClick:function(e){S()({method:"POST",path:"/easycontent/v1/posts/".concat(t,"/unlink"),cache:"no-cache"}).then(function(e){Object(l.dispatch)("core/notices").createSuccessNotice(Object(a.__)("Post was unlinked successfully")),Z.dispatch(B(z))},function(e){Object(l.dispatch)("core/notices").createErrorNotice(e.message)})},label:"Unlink"}]}):Object(l.dispatch)("core/notices").createErrorNotice(e.message),y()({},e,{success:!1})})}),g()(K,T,function(e){var t=(0,Object(l.select)("easycontent-wp-store").getArticle)().id;return S()({method:"POST",path:"/easycontent/v1/articles/".concat(t,"/pull"),cache:"no-cache"}).then(function(e){Object(l.dispatch)("core/notices").createNotice("success",Object(a.__)("Post was pulled from EasyContent.io successfully")),Object(l.dispatch)("core/editor").editPost({title:e.title});var t=Object(l.select)("core/editor").getEditorBlocks().map(function(e){return e.clientId});return Object(l.dispatch)("core/block-editor").replaceBlocks(t,Object(Q.parse)(e.content),0),{payload:e,success:!0}},function(e){return 404==e.code?Object(l.dispatch)("core/notices").createErrorNotice(e.message,{actions:[{onClick:function(e){var t=Object(l.select)("core/editor").getCurrentPostId();t=t||0,S()({method:"POST",path:"/easycontent/v1/posts/".concat(t,"/unlink"),cache:"no-cache"}).then(function(e){Object(l.dispatch)("core/notices").createSuccessNotice(Object(a.__)("Post was unlinked successfully")),Z.dispatch(B(z))},function(e){Object(l.dispatch)("core/notices").createErrorNotice(e.message)})},label:"Unlink"}]}):Object(l.dispatch)("core/notices").createErrorNotice(e.message),y()({},e,{success:!1})})}),g()(K,q,function(e){var t=Object(l.select)("core/editor").getCurrentPostId();return t=t||0,S()({method:"PATCH",path:"/easycontent/v1/posts/".concat(t),data:{workflow_stage_id:e.stage.id},cache:"no-cache"}).then(function(e){return{payload:e,success:!0}},function(e){return Object(l.dispatch)("core/notices").createNotice("error",e.message),y()({},e,{success:!1})})}),K),resolvers:{getArticle:function(){var e=Object(l.select)("core/editor").getCurrentPostId();e&&S()({path:"/easycontent/v1/posts/".concat(e,"/article"),method:"GET",cache:"no-cache"}).then(function(e){null!==e&&Z.dispatch(B(e))}).catch(function(e){})},getStages:function(){S()({path:"/easycontent/v1/stages",method:"GET",cache:"no-cache"}).then(function(e){Z.dispatch(function(e){return{type:F,stages:e}}(e))})}},initialState:z});Object(c.registerPlugin)("easycontent-gutenberg-sidebar",{render:O})},function(e,t,n){var c; 2 /*! 3 Copyright (c) 2017 Jed Watson. 4 Licensed under the MIT License (MIT), see 5 http://jedwatson.github.io/classnames 6 */ 7 /*! 8 Copyright (c) 2017 Jed Watson. 9 Licensed under the MIT License (MIT), see 10 http://jedwatson.github.io/classnames 11 */ 12 !function(){"use strict";var n={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var c=arguments[t];if(c){var a=typeof c;if("string"===a||"number"===a)e.push(c);else if(Array.isArray(c)&&c.length){var o=s.apply(null,c);o&&e.push(o)}else if("object"===a)for(var r in c)n.call(c,r)&&c[r]&&e.push(r)}}return e.join(" ")}void 0!==e&&e.exports?(s.default=s,e.exports=s):void 0===(c=function(){return s}.apply(t,[]))||(e.exports=c)}()}]); 1 !function(){var e={184:function(e,t){var s;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var o=typeof s;if("string"===o||"number"===o)e.push(s);else if(Array.isArray(s)){if(s.length){var c=a.apply(null,s);c&&e.push(c)}}else if("object"===o){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var i in s)n.call(s,i)&&s[i]&&e.push(i)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(s=function(){return a}.apply(t,[]))||(e.exports=s)}()}},t={};function s(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,s),o.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.plugins,t=window.wp.element,n=window.wp.i18n,a=window.wp.editPost,o=window.wp.components,c=window.wp.compose,i=window.wp.data;const l="OPEN_MODAL",r="CLOSE_MODAL",d="TOGGLE_MODAL",u="PULL",p="PUSH";var h=(0,c.compose)((0,i.withSelect)(((e,t)=>{const{getArticle:s,getModals:n}=e("easycontent-wp-store"),{isSavingPost:a,isEditedPostSaveable:o,isAutosavingPost:c,isPostSavingLocked:i,isCurrentPostPublished:l,getCurrentPost:r}=e("core/editor"),d=n(),u=!a()&&!c()&&o()&&!i()&&(l()||"draft"===r().status);return{article:s(),isOpened:d.PUSH.isOpened,postCanBePushed:u}})),(0,i.withDispatch)(((e,t,s)=>{let{select:n}=s;const{closeModal:a,pushArticle:o}=e("easycontent-wp-store"),{isDoingAjax:c}=n("easycontent-wp-store");return{close(){a(p)},push:function(e,t){t&&!c()&&(o(e),a(p))}}})))((e=>{let{article:s,isOpened:a,postCanBePushed:c,close:i,push:l}=e;return(0,t.createElement)(t.Fragment,null,a&&c&&(0,t.createElement)(o.Modal,{className:"ec-push-post-modal",onRequestClose:i,title:(0,n.__)("Push post to EasyContent.io?"),closeButtonLabel:(0,n.__)("Close")},(0,t.createElement)("p",null,s.isSynced?(0,n.__)("Are you sure you want to push this post to EasyContent? Any changes in EasyContent will be overwritten."):(0,n.__)("Push this post to EasyContent?")),(0,t.createElement)(o.Button,{isDefault:!0,onClick:i},(0,n.__)("Cancel")),(0,t.createElement)(o.Button,{isPrimary:!0,onClick:()=>l(s.id,c)},(0,n.__)("Push"))))}));var m=(0,c.compose)((0,i.withSelect)(((e,t,s)=>{const{getModals:n}=e("easycontent-wp-store");return{isOpened:n().PULL.isOpened}})),(0,i.withDispatch)(((e,t,s)=>{let{select:n}=s;const{closeModal:a,pullArticle:o}=e("easycontent-wp-store"),{isDoingAjax:c,getArticle:i}=n("easycontent-wp-store"),l=i();return{close(){a(u)},pull(){!c()&&l.isSynced&&(o(),a(u))}}})))((e=>{let{isOpened:s,close:a,pull:c}=e;return(0,t.createElement)(t.Fragment,null,s&&(0,t.createElement)(o.Modal,{className:"ec-push-post-modal",onRequestClose:a,title:(0,n.__)("Pull post from EasyContent.io?"),closeButtonLabel:(0,n.__)("Close")},(0,t.createElement)("p",null,(0,n.__)("Are you sure you want to pull this Post from EasyContent? Any local changes will be overwritten.")),(0,t.createElement)(o.Button,{isDefault:!0,onClick:a},(0,n.__)("Cancel")),(0,t.createElement)(o.Button,{isPrimary:!0,onClick:c},(0,n.__)("Pull"))))}));const g=(0,c.compose)((0,i.withSelect)(((e,t)=>{const{getArticle:s,getModals:n,getStages:a,isDoingAjax:o,isStagesSelectVisible:c}=e("easycontent-wp-store"),{isSavingPost:i,isEditedPostSaveable:l,isPostSavingLocked:r,isCurrentPostPublished:d,isAutosavingPost:u,getCurrentPost:p}=e("core/editor"),h=!i()&&!u()&&l()&&!r()&&(d()||"draft"===p().status);return{article:s(),stages:a(),doingAjax:o(),isStagesSelectVisible:c(),postCanBePushed:h}})),(0,i.withDispatch)(((e,t,s)=>{let{select:n}=s;const{openModal:a,showSelect:o,hideSelect:c,setNewArticleStage:i}=e("easycontent-wp-store"),{isDoingAjax:l,getArticle:r}=n("easycontent-wp-store"),d=r();return{openPullModal(){a(u)},openPushModal(){a(p)},setArticleStage:function(e,t){if(l()||!d.isSynced)return;let s=t.find((t=>t.id==e.target.value));i(s)},showSelect:o,hideSelect:c}})))((e=>{let{article:c,stages:i,doingAjax:l,postCanBePushed:r,openPushModal:d,setArticleStage:u,showSelect:p,hideSelect:g,isStagesSelectVisible:y,openPullModal:E}=e,S=s(184)({active:l,"ec-widget-spinner-wrapper":!0});return(0,t.createElement)(a.PluginPostStatusInfo,null,(0,t.createElement)("div",{className:"ec-post-status-inner-wrapper"},(0,t.createElement)("div",{className:"ec-post-status-header"},"EasyContent"),(0,t.createElement)("div",{className:"ec-post-status-row"},(0,t.createElement)(o.Dashicon,{icon:"format-aside"}),(0,t.createElement)("span",{className:"status-item-name"},(0,n.__)("Item"),": "),c.isSynced?(0,t.createElement)("a",{href:c.url,target:"_blank"},c.topicName):(0,t.createElement)("span",null,(0,n.__)("N/A"))),!y&&(0,t.createElement)("div",{className:"ec-post-status-row"},(0,t.createElement)(o.Dashicon,{icon:"admin-network"}),(0,t.createElement)("span",{className:"status-item-name"},(0,n.__)("Status"),": "),c.isSynced&&c.stage?(0,t.createElement)(t.Fragment,null,(0,t.createElement)("span",{className:"ec-post-stage-color",style:{backgroundColor:"#"+c.stage.color}}),(0,t.createElement)(o.Button,{isLink:!0,onClick:p},c.stage.name)):(0,t.createElement)("span",null,(0,n.__)("N/A"))),i&&i.length>0&&y&&(0,t.createElement)("div",{className:"ec-post-status-row"},(0,t.createElement)("select",{onChange:e=>u(e,i),value:c.stage.id},i.map(((e,s)=>(0,t.createElement)("option",{value:e.id},e.name)))),(0,t.createElement)(o.IconButton,{onClick:g,icon:"no",label:(0,n.__)("Cancel")})),(0,t.createElement)("div",{className:"ec-post-status-row"},(0,t.createElement)(o.Dashicon,{icon:"calendar"}),(0,t.createElement)("span",{className:"status-item-name"},(0,n.__)("Last Updated")+": "),c.lastUpdatedString?(0,t.createElement)(t.Fragment,null,c.lastUpdatedString):(0,t.createElement)(t.Fragment,null,"—")),(0,t.createElement)("div",{className:"ec-post-status-buttons"},(0,t.createElement)(o.Button,{isDefault:!0,disabled:!c.isSynced,onClick:E},(0,n.__)("Pull"))," ",(0,t.createElement)(o.Button,{isPrimary:!0,disabled:!r,onClick:d},(0,n.__)("Push"))),(0,t.createElement)("div",{className:S},(0,t.createElement)(o.Spinner,null))),(0,t.createElement)(h,null),(0,t.createElement)(m,null))}));var y=g,E=window.wp.apiFetch,S=s.n(E);const _="START_AJAX_CALL",w="END_AJAX_CALL";function f(){return{type:_}}function A(){return{type:w}}function P(e,t){switch(this.state=e,this.then=function(e){return new e(this.state,t)},t.type){case _:return void(this.state={...this.state,doingAjax:!0});case w:return void(this.state={...this.state,doingAjax:!1})}this.reduce&&this.reduce()}function v(e,t){this.reduce=function(){let e=t.modal===u?p:u;switch(t.type){case l:this.state.modals[t.modal].isOpened||this.state.modals[e].isOpened||(this.state={...this.state},this.state.modals[t.modal].isOpened=!0);break;case r:this.state.modals[t.modal].isOpened&&(this.state={...this.state},this.state.modals[t.modal].isOpened=!1);break;case d:let s=!this.state.modals[t.modal].isOpened;(!this.state.modals[e].isOpened&&s||this.state.modals[t.modal].isOpened&&!s)&&(this.state={...this.state},this.state.modals[t.modal].isOpened=s)}},P.apply(this,arguments)}const C="PUSH_ARTICLE",b="PULL_ARTICLE",N="UPDATE_ARTICLE_DATA";function O(e){return{type:N,payload:e}}function k(e,t){this.reduce=function(){t.type===N&&(this.state={...e},this.state.article=t.payload)},P.apply(this,arguments)}const T="SHOW_STAGES_SELECT",L="HIDE_STAGES_SELECT",D="SET_STAGES_ARRAY",M="SET_NEW_ARTICLE_STAGE",x="UPDATE_ARTICLE_STAGE_STATE";function j(){return{type:L}}function B(e,t){this.reduce=function(){switch(t.type){case T:this.state={...this.state,stagesSelectVisible:!0};break;case L:this.state={...this.state,stagesSelectVisible:!1};break;case D:this.state={...this.state,stages:t.stages};break;case x:this.state={...e},this.state.article.stage=t.stage}},P.apply(this,arguments)}const I={modals:{[u]:{isOpened:!1},[p]:{isOpened:!1}},article:{id:0,isSynced:!1,title:"",topicName:(0,n.__)("N/A"),url:"#",content:"",stage:{id:0,name:(0,n.__)("N/A"),color:"fff"},lastUpdatedString:""},stages:[],stagesSelectVisible:!1,doingAjax:!1};var U=window.wp.blocks;const R=(0,i.registerStore)("easycontent-wp-store",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,t=arguments.length>1?arguments[1]:void 0;return new v(e,t).then(B).then(k).state},actions:{openModal:function(e){return{type:l,modal:e}},closeModal:function(e){return{type:r,modal:e}},toggleModal:function(e){return{type:d,modal:e}},pushArticle:function*(e){yield f();let t=e?{type:C,id:e}:{type:C};const s=yield t;s.success&&(yield{type:N,payload:s.payload}),yield A()},pullArticle:function*(){yield f();const e=yield{type:b};e.success&&(yield{type:N,payload:e.payload}),yield A()},showSelect:function(){return{type:T}},hideSelect:j,setNewArticleStage:function*(e){yield f(),(yield{type:M,stage:e}).success&&(yield{type:x,stage:e}),yield j(),yield A()}},selectors:{getArticle(e){return e.article},getModals(e){return e.modals},getStages(e){return e.stages},isStagesSelectVisible(e){return e.stagesSelectVisible},isDoingAjax(e){return e.doingAjax}},controls:{[C](e){let t=(0,i.select)("core/editor").getCurrentPostId();return t=t||0,S()({method:"POST",path:`/easycontent/v1/posts/${t}/push`,cache:"no-cache"}).then((e=>((0,i.dispatch)("core/notices").createSuccessNotice((0,n.__)("Post was pushed to EasyContent.io successfully")),{payload:e,success:!0})),(e=>(404==e.code?(0,i.dispatch)("core/notices").createErrorNotice(e.message,{actions:[{onClick(e){S()({method:"POST",path:`/easycontent/v1/posts/${t}/unlink`,cache:"no-cache"}).then((e=>{(0,i.dispatch)("core/notices").createSuccessNotice((0,n.__)("Post was unlinked successfully")),R.dispatch(O(I))}),(e=>{(0,i.dispatch)("core/notices").createErrorNotice(e.message)}))},label:"Unlink"}]}):(0,i.dispatch)("core/notices").createErrorNotice(e.message),{...e,success:!1})))},[b](e){const{getArticle:t}=(0,i.select)("easycontent-wp-store"),s=t().id;return S()({method:"POST",path:`/easycontent/v1/articles/${s}/pull`,cache:"no-cache"}).then((e=>{(0,i.dispatch)("core/notices").createNotice("success",(0,n.__)("Post was pulled from EasyContent.io successfully")),(0,i.dispatch)("core/editor").editPost({title:e.title});let t=(0,i.select)("core/editor").getEditorBlocks().map((function(e){return e.clientId}));return(0,i.dispatch)("core/block-editor").replaceBlocks(t,(0,U.parse)(e.content),0),{payload:e,success:!0}}),(e=>(404==e.code?(0,i.dispatch)("core/notices").createErrorNotice(e.message,{actions:[{onClick(e){let t=(0,i.select)("core/editor").getCurrentPostId();t=t||0,S()({method:"POST",path:`/easycontent/v1/posts/${t}/unlink`,cache:"no-cache"}).then((e=>{(0,i.dispatch)("core/notices").createSuccessNotice((0,n.__)("Post was unlinked successfully")),R.dispatch(O(I))}),(e=>{(0,i.dispatch)("core/notices").createErrorNotice(e.message)}))},label:"Unlink"}]}):(0,i.dispatch)("core/notices").createErrorNotice(e.message),{...e,success:!1})))},[M](e){let t=(0,i.select)("core/editor").getCurrentPostId();return t=t||0,S()({method:"PATCH",path:`/easycontent/v1/posts/${t}`,data:{workflow_stage_id:e.stage.id},cache:"no-cache"}).then((e=>({payload:e,success:!0})),(e=>((0,i.dispatch)("core/notices").createNotice("error",e.message),{...e,success:!1})))}},resolvers:{getArticle(){const e=(0,i.select)("core/editor").getCurrentPostId();e&&S()({path:`/easycontent/v1/posts/${e}/article`,method:"GET",cache:"no-cache"}).then((e=>{null!==e&&R.dispatch(O(e))})).catch((e=>{}))},getStages(){S()({path:"/easycontent/v1/stages",method:"GET",cache:"no-cache"}).then((e=>{R.dispatch({type:D,stages:e})}))}},initialState:I});(0,e.registerPlugin)("easycontent-gutenberg-sidebar",{render:y})}()}(); -
easycontent/trunk/easycontent-wp.php
r2779639 r2822815 4 4 * Plugin URI: https://easycontent.io 5 5 * Description: Imports articles from EasyContent to your wordpress site and exports articles from your wordpress site to EasyContent 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Requires at least: 5.0.7 8 8 * Requires PHP: 5.6 … … 21 21 22 22 if ( ! defined( 'EASYCONTENT_PLUGIN_VERSION' ) ) { 23 define( 'EASYCONTENT_PLUGIN_VERSION', '1.1. 0' );23 define( 'EASYCONTENT_PLUGIN_VERSION', '1.1.1' ); 24 24 } 25 25 -
easycontent/trunk/readme.txt
r2779639 r2822815 4 4 Tags: easycontent, easy content, workflow, approval, collaboration, import, export, manage writers, publishing, content flow, editorial, approval process, content tool 5 5 Requires at least: 5.0.7 6 Tested up to: 5.86 Tested up to: 6.1.1 7 7 Requires PHP: 5.6 8 Stable tag: 1.1. 08 Stable tag: 1.1.1 9 9 License: GPL-2.0+ 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 61 61 == Changelog == 62 62 63 = 1.1.1 = 64 * Increased performance 65 63 66 = 1.1.0 = 64 67 * Removed side dependencies -
easycontent/trunk/vendor/autoload.php
r2779639 r2822815 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 4127b70eedb5938869a6c74dd854991c::getLoader();7 return ComposerAutoloaderInit7dae9bd853b553b605d2fc0df575b898::getLoader(); -
easycontent/trunk/vendor/composer/ClassLoader.php
r2547693 r2822815 38 38 * @author Fabien Potencier <fabien@symfony.com> 39 39 * @author Jordi Boggiano <j.boggiano@seld.be> 40 * @see http ://www.php-fig.org/psr/psr-0/41 * @see http ://www.php-fig.org/psr/psr-4/40 * @see https://www.php-fig.org/psr/psr-0/ 41 * @see https://www.php-fig.org/psr/psr-4/ 42 42 */ 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 46 private $vendorDir; 47 45 48 // PSR-4 49 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 52 */ 46 53 private $prefixLengthsPsr4 = array(); 54 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 */ 47 58 private $prefixDirsPsr4 = array(); 59 /** 60 * @var array[] 61 * @psalm-var array<string, string> 62 */ 48 63 private $fallbackDirsPsr4 = array(); 49 64 50 65 // PSR-0 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 69 */ 51 70 private $prefixesPsr0 = array(); 71 /** 72 * @var array[] 73 * @psalm-var array<string, string> 74 */ 52 75 private $fallbackDirsPsr0 = array(); 53 76 77 /** @var bool */ 54 78 private $useIncludePath = false; 79 80 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 */ 55 84 private $classMap = array(); 85 86 /** @var bool */ 56 87 private $classMapAuthoritative = false; 88 89 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 92 */ 57 93 private $missingClasses = array(); 94 95 /** @var ?string */ 58 96 private $apcuPrefix; 59 97 98 /** 99 * @var self[] 100 */ 101 private static $registeredLoaders = array(); 102 103 /** 104 * @param ?string $vendorDir 105 */ 106 public function __construct($vendorDir = null) 107 { 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 113 */ 60 114 public function getPrefixes() 61 115 { 62 116 if (!empty($this->prefixesPsr0)) { 63 return call_user_func_array('array_merge', $this->prefixesPsr0);117 return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); 64 118 } 65 119 … … 67 121 } 68 122 123 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 126 */ 69 127 public function getPrefixesPsr4() 70 128 { … … 72 130 } 73 131 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 135 */ 74 136 public function getFallbackDirs() 75 137 { … … 77 139 } 78 140 141 /** 142 * @return array[] 143 * @psalm-return array<string, string> 144 */ 79 145 public function getFallbackDirsPsr4() 80 146 { … … 82 148 } 83 149 150 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 153 */ 84 154 public function getClassMap() 85 155 { … … 88 158 89 159 /** 90 * @param array $classMap Class to filename map 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 162 * 163 * @return void 91 164 */ 92 165 public function addClassMap(array $classMap) … … 103 176 * appending or prepending to the ones previously set for this prefix. 104 177 * 105 * @param string $prefix The prefix 106 * @param array|string $paths The PSR-0 root directories 107 * @param bool $prepend Whether to prepend the directories 178 * @param string $prefix The prefix 179 * @param string[]|string $paths The PSR-0 root directories 180 * @param bool $prepend Whether to prepend the directories 181 * 182 * @return void 108 183 */ 109 184 public function add($prefix, $paths, $prepend = false) … … 148 223 * appending or prepending to the ones previously set for this namespace. 149 224 * 150 * @param string $prefix The prefix/namespace, with trailing '\\'151 * @param array|string $paths The PSR-4 base directories152 * @param bool $prepend Whether to prepend the directories225 * @param string $prefix The prefix/namespace, with trailing '\\' 226 * @param string[]|string $paths The PSR-4 base directories 227 * @param bool $prepend Whether to prepend the directories 153 228 * 154 229 * @throws \InvalidArgumentException 230 * 231 * @return void 155 232 */ 156 233 public function addPsr4($prefix, $paths, $prepend = false) … … 196 273 * replacing any others previously set for this prefix. 197 274 * 198 * @param string $prefix The prefix 199 * @param array|string $paths The PSR-0 base directories 275 * @param string $prefix The prefix 276 * @param string[]|string $paths The PSR-0 base directories 277 * 278 * @return void 200 279 */ 201 280 public function set($prefix, $paths) … … 212 291 * replacing any others previously set for this namespace. 213 292 * 214 * @param string $prefix The prefix/namespace, with trailing '\\'215 * @param array|string $paths The PSR-4 base directories293 * @param string $prefix The prefix/namespace, with trailing '\\' 294 * @param string[]|string $paths The PSR-4 base directories 216 295 * 217 296 * @throws \InvalidArgumentException 297 * 298 * @return void 218 299 */ 219 300 public function setPsr4($prefix, $paths) … … 235 316 * 236 317 * @param bool $useIncludePath 318 * 319 * @return void 237 320 */ 238 321 public function setUseIncludePath($useIncludePath) … … 257 340 * 258 341 * @param bool $classMapAuthoritative 342 * 343 * @return void 259 344 */ 260 345 public function setClassMapAuthoritative($classMapAuthoritative) … … 277 362 * 278 363 * @param string|null $apcuPrefix 364 * 365 * @return void 279 366 */ 280 367 public function setApcuPrefix($apcuPrefix) … … 297 384 * 298 385 * @param bool $prepend Whether to prepend the autoloader or not 386 * 387 * @return void 299 388 */ 300 389 public function register($prepend = false) 301 390 { 302 391 spl_autoload_register(array($this, 'loadClass'), true, $prepend); 392 393 if (null === $this->vendorDir) { 394 return; 395 } 396 397 if ($prepend) { 398 self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; 399 } else { 400 unset(self::$registeredLoaders[$this->vendorDir]); 401 self::$registeredLoaders[$this->vendorDir] = $this; 402 } 303 403 } 304 404 305 405 /** 306 406 * Unregisters this instance as an autoloader. 407 * 408 * @return void 307 409 */ 308 410 public function unregister() 309 411 { 310 412 spl_autoload_unregister(array($this, 'loadClass')); 413 414 if (null !== $this->vendorDir) { 415 unset(self::$registeredLoaders[$this->vendorDir]); 416 } 311 417 } 312 418 … … 315 421 * 316 422 * @param string $class The name of the class 317 * @return bool|null True if loaded, null otherwise423 * @return true|null True if loaded, null otherwise 318 424 */ 319 425 public function loadClass($class) … … 324 430 return true; 325 431 } 432 433 return null; 326 434 } 327 435 … … 368 476 } 369 477 478 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories. 480 * 481 * @return self[] 482 */ 483 public static function getRegisteredLoaders() 484 { 485 return self::$registeredLoaders; 486 } 487 488 /** 489 * @param string $class 490 * @param string $ext 491 * @return string|false 492 */ 370 493 private function findFileWithExtension($class, $ext) 371 494 { … … 439 562 * 440 563 * Prevents access to $this/self from included files. 564 * 565 * @param string $file 566 * @return void 567 * @private 441 568 */ 442 569 function includeFile($file) -
easycontent/trunk/vendor/composer/autoload_classmap.php
r2779639 r2822815 7 7 8 8 return array( 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 9 10 'EasyContent\\WordPress\\Attachment' => $baseDir . '/app/Attachment.php', 10 'EasyContent\\WordPress\\Controllers\\Actions\\BaseAction' => $baseDir . '/app/controllers/actions/BaseAction.php',11 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Connection' => $baseDir . '/app/controllers/actions/main/Connection.php',12 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\ImageProcessing' => $baseDir . '/app/controllers/actions/main/ImageProcessing.php',13 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Import' => $baseDir . '/app/controllers/actions/main/Import.php',14 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\PublishingOptions' => $baseDir . '/app/controllers/actions/main/PublishingOptions.php',15 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Seo' => $baseDir . '/app/controllers/actions/main/Seo.php',16 'EasyContent\\WordPress\\Controllers\\Main' => $baseDir . '/app/controllers/Main.php',17 'EasyContent\\WordPress\\Db\\BaseModel' => $baseDir . '/app/db/BaseModel.php',18 'EasyContent\\WordPress\\Db\\DbController' => $baseDir . '/app/db/DbController.php',19 'EasyContent\\WordPress\\Db\\Models\\Article' => $baseDir . '/app/db/models/Article.php',20 'EasyContent\\WordPress\\Db\\Models\\ArticlePost' => $baseDir . '/app/db/models/ArticlePost.php',21 'EasyContent\\WordPress\\Db\\Models\\Category' => $baseDir . '/app/db/models/Category.php',22 'EasyContent\\WordPress\\Db\\Models\\WorkflowStage' => $baseDir . '/app/db/models/WorkflowStage.php',23 'EasyContent\\WordPress\\Domain\\Seo\\SeoPack' => $baseDir . '/app/domain/seo/SeoPack.php',24 'EasyContent\\WordPress\\Domain\\Seo\\SeoPackPost' => $baseDir . '/app/domain/seo/SeoPackPost.php',25 'EasyContent\\WordPress\\Domain\\Seo\\SeoPackPostRepository' => $baseDir . '/app/domain/seo/SeoPackPostRepository.php',26 'EasyContent\\WordPress\\Domain\\Seo\\SeoPlugin' => $baseDir . '/app/domain/seo/SeoPlugin.php',27 'EasyContent\\WordPress\\Domain\\Seo\\Yoast' => $baseDir . '/app/domain/seo/Yoast.php',28 'EasyContent\\WordPress\\Helpers\\ArrayHelper' => $baseDir . '/app/helpers/ArrayHelper.php',29 'EasyContent\\WordPress\\Helpers\\CategoriesMapper' => $baseDir . '/app/helpers/CategoriesMapper.php',30 'EasyContent\\WordPress\\Helpers\\PostContentProcessor' => $baseDir . '/app/helpers/PostContentProcessor.php',31 'EasyContent\\WordPress\\Helpers\\PublishingOptionsPageHelper' => $baseDir . '/app/helpers/PublishingOptionsPageHelper.php',32 'EasyContent\\WordPress\\Helpers\\TimeHelper' => $baseDir . '/app/helpers/TimeHelper.php',33 11 'EasyContent\\WordPress\\Implementation\\Container' => $baseDir . '/app/Implementation/Container.php', 34 12 'EasyContent\\WordPress\\Implementation\\Db\\Migration' => $baseDir . '/app/Implementation/Db/Migration.php', … … 68 46 'EasyContent\\WordPress\\Implementation\\Http\\Exception\\NotFoundException' => $baseDir . '/app/Implementation/Http/Exception/NotFoundException.php', 69 47 'EasyContent\\WordPress\\Implementation\\Http\\Method' => $baseDir . '/app/Implementation/Http/Method.php', 70 'EasyContent\\WordPress\\Infrastructure\\SeoPackPostRepository' => $baseDir . '/app/infrastructure/SeoPackPostRepository.php',71 48 'EasyContent\\WordPress\\ListTableManager' => $baseDir . '/app/ListTableManager.php', 72 49 'EasyContent\\WordPress\\MediaList' => $baseDir . '/app/MediaList.php', 73 'EasyContent\\WordPress\\Metaboxes\\MetaBoxesManager' => $baseDir . '/app/metaboxes/MetaBoxesManager.php',74 'EasyContent\\WordPress\\Metaboxes\\PostSyncMetaBox' => $baseDir . '/app/metaboxes/PostSyncMetaBox.php',75 50 'EasyContent\\WordPress\\NoticesManager' => $baseDir . '/app/NoticesManager.php', 76 'EasyContent\\WordPress\\Notices\\AdminNotice' => $baseDir . '/app/notices/AdminNotice.php',77 'EasyContent\\WordPress\\Notices\\AdminNoticeInterface' => $baseDir . '/app/notices/AdminNoticeInterface.php',78 'EasyContent\\WordPress\\Notices\\AdminNoticesService' => $baseDir . '/app/notices/AdminNoticesService.php',79 'EasyContent\\WordPress\\Pages\\Import\\ArticlesListTable' => $baseDir . '/app/pages/import/ArticlesListTable.php',80 'EasyContent\\WordPress\\Pages\\PagesManager' => $baseDir . '/app/pages/PagesManager.php',81 51 'EasyContent\\WordPress\\Plugin' => $baseDir . '/app/Plugin.php', 82 52 'EasyContent\\WordPress\\Post' => $baseDir . '/app/Post.php', 83 53 'EasyContent\\WordPress\\PostExtraDto' => $baseDir . '/app/PostExtraDto.php', 84 'EasyContent\\WordPress\\Rest\\Actions\\BaseAction' => $baseDir . '/app/rest/actions/BaseAction.php',85 'EasyContent\\WordPress\\Rest\\Actions\\GetArticleDetails' => $baseDir . '/app/rest/actions/GetArticleDetails.php',86 'EasyContent\\WordPress\\Rest\\Actions\\GetCategories' => $baseDir . '/app/rest/actions/GetCategories.php',87 'EasyContent\\WordPress\\Rest\\Actions\\GetTags' => $baseDir . '/app/rest/actions/GetTags.php',88 'EasyContent\\WordPress\\Rest\\Actions\\GetWorkflowStages' => $baseDir . '/app/rest/actions/GetWorkflowStages.php',89 'EasyContent\\WordPress\\Rest\\Actions\\PublishArticle' => $baseDir . '/app/rest/actions/PublishArticle.php',90 'EasyContent\\WordPress\\Rest\\Actions\\PullArticle' => $baseDir . '/app/rest/actions/PullArticle.php',91 'EasyContent\\WordPress\\Rest\\Actions\\PushPost' => $baseDir . '/app/rest/actions/PushPost.php',92 'EasyContent\\WordPress\\Rest\\Actions\\SetArticleWorkflowStage' => $baseDir . '/app/rest/actions/SetArticleWorkflowStage.php',93 'EasyContent\\WordPress\\Rest\\Actions\\UnlinkPost' => $baseDir . '/app/rest/actions/UnlinkPost.php',94 'EasyContent\\WordPress\\Rest\\RestManager' => $baseDir . '/app/rest/RestManager.php',95 54 'EasyContent\\WordPress\\Singleton' => $baseDir . '/app/Singleton.php', 96 55 'EasyContent\\WordPress\\Source\\Api\\Entity\\Article' => $baseDir . '/app/Source/Api/Entity/Article.php', … … 144 103 'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Command' => $baseDir . '/app/Source/UseCase/SetNewStatus/Command.php', 145 104 'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Handler' => $baseDir . '/app/Source/UseCase/SetNewStatus/Handler.php', 146 'EasyContent\\WordPress\\Storages\\BaseOptionsStorage' => $baseDir . '/app/storages/BaseOptionsStorage.php', 147 'EasyContent\\WordPress\\Storages\\ImageProcessingSettings' => $baseDir . '/app/storages/ImageProcessingSettings.php', 148 'EasyContent\\WordPress\\Storages\\PluginMisc' => $baseDir . '/app/storages/PluginMisc.php', 149 'EasyContent\\WordPress\\Storages\\PluginSettings' => $baseDir . '/app/storages/PluginSettings.php', 150 'EasyContent\\WordPress\\Storages\\StorageManager' => $baseDir . '/app/storages/StorageManager.php', 105 'EasyContent\\WordPress\\ValueObjects\\AttachmentPost' => $baseDir . '/app/ValueObjects/AttachmentPost.php', 151 106 'EasyContent\\WordPress\\ValueObjects\\PostStatus' => $baseDir . '/app/ValueObjects/PostStatus.php', 152 107 'EasyContent\\WordPress\\ValueObjects\\PostType' => $baseDir . '/app/ValueObjects/PostType.php', -
easycontent/trunk/vendor/composer/autoload_real.php
r2779639 r2822815 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 4127b70eedb5938869a6c74dd854991c5 class ComposerAutoloaderInit7dae9bd853b553b605d2fc0df575b898 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit4127b70eedb5938869a6c74dd854991c', 'loadClassLoader'), true, true); 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit4127b70eedb5938869a6c74dd854991c', 'loadClassLoader')); 25 require __DIR__ . '/platform_check.php'; 26 27 spl_autoload_register(array('ComposerAutoloaderInit7dae9bd853b553b605d2fc0df575b898', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit7dae9bd853b553b605d2fc0df575b898', 'loadClassLoader')); 28 30 29 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 30 32 if ($useStaticLoader) { 31 require _once__DIR__ . '/autoload_static.php';33 require __DIR__ . '/autoload_static.php'; 32 34 33 call_user_func(\Composer\Autoload\ComposerStaticInit 4127b70eedb5938869a6c74dd854991c::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInit7dae9bd853b553b605d2fc0df575b898::getInitializer($loader)); 34 36 } else { 35 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
easycontent/trunk/vendor/composer/autoload_static.php
r2779639 r2822815 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 4127b70eedb5938869a6c74dd854991c7 class ComposerStaticInit7dae9bd853b553b605d2fc0df575b898 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 30 30 31 31 public static $classMap = array ( 32 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 32 33 'EasyContent\\WordPress\\Attachment' => __DIR__ . '/../..' . '/app/Attachment.php', 33 'EasyContent\\WordPress\\Controllers\\Actions\\BaseAction' => __DIR__ . '/../..' . '/app/controllers/actions/BaseAction.php',34 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Connection' => __DIR__ . '/../..' . '/app/controllers/actions/main/Connection.php',35 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\ImageProcessing' => __DIR__ . '/../..' . '/app/controllers/actions/main/ImageProcessing.php',36 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Import' => __DIR__ . '/../..' . '/app/controllers/actions/main/Import.php',37 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\PublishingOptions' => __DIR__ . '/../..' . '/app/controllers/actions/main/PublishingOptions.php',38 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Seo' => __DIR__ . '/../..' . '/app/controllers/actions/main/Seo.php',39 'EasyContent\\WordPress\\Controllers\\Main' => __DIR__ . '/../..' . '/app/controllers/Main.php',40 'EasyContent\\WordPress\\Db\\BaseModel' => __DIR__ . '/../..' . '/app/db/BaseModel.php',41 'EasyContent\\WordPress\\Db\\DbController' => __DIR__ . '/../..' . '/app/db/DbController.php',42 'EasyContent\\WordPress\\Db\\Models\\Article' => __DIR__ . '/../..' . '/app/db/models/Article.php',43 'EasyContent\\WordPress\\Db\\Models\\ArticlePost' => __DIR__ . '/../..' . '/app/db/models/ArticlePost.php',44 'EasyContent\\WordPress\\Db\\Models\\Category' => __DIR__ . '/../..' . '/app/db/models/Category.php',45 'EasyContent\\WordPress\\Db\\Models\\WorkflowStage' => __DIR__ . '/../..' . '/app/db/models/WorkflowStage.php',46 'EasyContent\\WordPress\\Domain\\Seo\\SeoPack' => __DIR__ . '/../..' . '/app/domain/seo/SeoPack.php',47 'EasyContent\\WordPress\\Domain\\Seo\\SeoPackPost' => __DIR__ . '/../..' . '/app/domain/seo/SeoPackPost.php',48 'EasyContent\\WordPress\\Domain\\Seo\\SeoPackPostRepository' => __DIR__ . '/../..' . '/app/domain/seo/SeoPackPostRepository.php',49 'EasyContent\\WordPress\\Domain\\Seo\\SeoPlugin' => __DIR__ . '/../..' . '/app/domain/seo/SeoPlugin.php',50 'EasyContent\\WordPress\\Domain\\Seo\\Yoast' => __DIR__ . '/../..' . '/app/domain/seo/Yoast.php',51 'EasyContent\\WordPress\\Helpers\\ArrayHelper' => __DIR__ . '/../..' . '/app/helpers/ArrayHelper.php',52 'EasyContent\\WordPress\\Helpers\\CategoriesMapper' => __DIR__ . '/../..' . '/app/helpers/CategoriesMapper.php',53 'EasyContent\\WordPress\\Helpers\\PostContentProcessor' => __DIR__ . '/../..' . '/app/helpers/PostContentProcessor.php',54 'EasyContent\\WordPress\\Helpers\\PublishingOptionsPageHelper' => __DIR__ . '/../..' . '/app/helpers/PublishingOptionsPageHelper.php',55 'EasyContent\\WordPress\\Helpers\\TimeHelper' => __DIR__ . '/../..' . '/app/helpers/TimeHelper.php',56 34 'EasyContent\\WordPress\\Implementation\\Container' => __DIR__ . '/../..' . '/app/Implementation/Container.php', 57 35 'EasyContent\\WordPress\\Implementation\\Db\\Migration' => __DIR__ . '/../..' . '/app/Implementation/Db/Migration.php', … … 91 69 'EasyContent\\WordPress\\Implementation\\Http\\Exception\\NotFoundException' => __DIR__ . '/../..' . '/app/Implementation/Http/Exception/NotFoundException.php', 92 70 'EasyContent\\WordPress\\Implementation\\Http\\Method' => __DIR__ . '/../..' . '/app/Implementation/Http/Method.php', 93 'EasyContent\\WordPress\\Infrastructure\\SeoPackPostRepository' => __DIR__ . '/../..' . '/app/infrastructure/SeoPackPostRepository.php',94 71 'EasyContent\\WordPress\\ListTableManager' => __DIR__ . '/../..' . '/app/ListTableManager.php', 95 72 'EasyContent\\WordPress\\MediaList' => __DIR__ . '/../..' . '/app/MediaList.php', 96 'EasyContent\\WordPress\\Metaboxes\\MetaBoxesManager' => __DIR__ . '/../..' . '/app/metaboxes/MetaBoxesManager.php',97 'EasyContent\\WordPress\\Metaboxes\\PostSyncMetaBox' => __DIR__ . '/../..' . '/app/metaboxes/PostSyncMetaBox.php',98 73 'EasyContent\\WordPress\\NoticesManager' => __DIR__ . '/../..' . '/app/NoticesManager.php', 99 'EasyContent\\WordPress\\Notices\\AdminNotice' => __DIR__ . '/../..' . '/app/notices/AdminNotice.php',100 'EasyContent\\WordPress\\Notices\\AdminNoticeInterface' => __DIR__ . '/../..' . '/app/notices/AdminNoticeInterface.php',101 'EasyContent\\WordPress\\Notices\\AdminNoticesService' => __DIR__ . '/../..' . '/app/notices/AdminNoticesService.php',102 'EasyContent\\WordPress\\Pages\\Import\\ArticlesListTable' => __DIR__ . '/../..' . '/app/pages/import/ArticlesListTable.php',103 'EasyContent\\WordPress\\Pages\\PagesManager' => __DIR__ . '/../..' . '/app/pages/PagesManager.php',104 74 'EasyContent\\WordPress\\Plugin' => __DIR__ . '/../..' . '/app/Plugin.php', 105 75 'EasyContent\\WordPress\\Post' => __DIR__ . '/../..' . '/app/Post.php', 106 76 'EasyContent\\WordPress\\PostExtraDto' => __DIR__ . '/../..' . '/app/PostExtraDto.php', 107 'EasyContent\\WordPress\\Rest\\Actions\\BaseAction' => __DIR__ . '/../..' . '/app/rest/actions/BaseAction.php',108 'EasyContent\\WordPress\\Rest\\Actions\\GetArticleDetails' => __DIR__ . '/../..' . '/app/rest/actions/GetArticleDetails.php',109 'EasyContent\\WordPress\\Rest\\Actions\\GetCategories' => __DIR__ . '/../..' . '/app/rest/actions/GetCategories.php',110 'EasyContent\\WordPress\\Rest\\Actions\\GetTags' => __DIR__ . '/../..' . '/app/rest/actions/GetTags.php',111 'EasyContent\\WordPress\\Rest\\Actions\\GetWorkflowStages' => __DIR__ . '/../..' . '/app/rest/actions/GetWorkflowStages.php',112 'EasyContent\\WordPress\\Rest\\Actions\\PublishArticle' => __DIR__ . '/../..' . '/app/rest/actions/PublishArticle.php',113 'EasyContent\\WordPress\\Rest\\Actions\\PullArticle' => __DIR__ . '/../..' . '/app/rest/actions/PullArticle.php',114 'EasyContent\\WordPress\\Rest\\Actions\\PushPost' => __DIR__ . '/../..' . '/app/rest/actions/PushPost.php',115 'EasyContent\\WordPress\\Rest\\Actions\\SetArticleWorkflowStage' => __DIR__ . '/../..' . '/app/rest/actions/SetArticleWorkflowStage.php',116 'EasyContent\\WordPress\\Rest\\Actions\\UnlinkPost' => __DIR__ . '/../..' . '/app/rest/actions/UnlinkPost.php',117 'EasyContent\\WordPress\\Rest\\RestManager' => __DIR__ . '/../..' . '/app/rest/RestManager.php',118 77 'EasyContent\\WordPress\\Singleton' => __DIR__ . '/../..' . '/app/Singleton.php', 119 78 'EasyContent\\WordPress\\Source\\Api\\Entity\\Article' => __DIR__ . '/../..' . '/app/Source/Api/Entity/Article.php', … … 167 126 'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Command' => __DIR__ . '/../..' . '/app/Source/UseCase/SetNewStatus/Command.php', 168 127 'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Handler' => __DIR__ . '/../..' . '/app/Source/UseCase/SetNewStatus/Handler.php', 169 'EasyContent\\WordPress\\Storages\\BaseOptionsStorage' => __DIR__ . '/../..' . '/app/storages/BaseOptionsStorage.php', 170 'EasyContent\\WordPress\\Storages\\ImageProcessingSettings' => __DIR__ . '/../..' . '/app/storages/ImageProcessingSettings.php', 171 'EasyContent\\WordPress\\Storages\\PluginMisc' => __DIR__ . '/../..' . '/app/storages/PluginMisc.php', 172 'EasyContent\\WordPress\\Storages\\PluginSettings' => __DIR__ . '/../..' . '/app/storages/PluginSettings.php', 173 'EasyContent\\WordPress\\Storages\\StorageManager' => __DIR__ . '/../..' . '/app/storages/StorageManager.php', 128 'EasyContent\\WordPress\\ValueObjects\\AttachmentPost' => __DIR__ . '/../..' . '/app/ValueObjects/AttachmentPost.php', 174 129 'EasyContent\\WordPress\\ValueObjects\\PostStatus' => __DIR__ . '/../..' . '/app/ValueObjects/PostStatus.php', 175 130 'EasyContent\\WordPress\\ValueObjects\\PostType' => __DIR__ . '/../..' . '/app/ValueObjects/PostType.php', … … 192 147 { 193 148 return \Closure::bind(function () use ($loader) { 194 $loader->prefixLengthsPsr4 = ComposerStaticInit 4127b70eedb5938869a6c74dd854991c::$prefixLengthsPsr4;195 $loader->prefixDirsPsr4 = ComposerStaticInit 4127b70eedb5938869a6c74dd854991c::$prefixDirsPsr4;196 $loader->classMap = ComposerStaticInit 4127b70eedb5938869a6c74dd854991c::$classMap;149 $loader->prefixLengthsPsr4 = ComposerStaticInit7dae9bd853b553b605d2fc0df575b898::$prefixLengthsPsr4; 150 $loader->prefixDirsPsr4 = ComposerStaticInit7dae9bd853b553b605d2fc0df575b898::$prefixDirsPsr4; 151 $loader->classMap = ComposerStaticInit7dae9bd853b553b605d2fc0df575b898::$classMap; 197 152 198 153 }, null, ClassLoader::class); -
easycontent/trunk/vendor/composer/installed.json
r2779639 r2822815 1 [ 2 { 3 "name": "mihaoo/easycontent-html-handler", 4 "version": "dev-master", 5 "version_normalized": "9999999-dev", 6 "source": { 7 "type": "git", 8 "url": "https://bitbucket.org/MihaOo/easycontent.io-html-handler.git", 9 "reference": "8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6" 10 }, 11 "dist": { 12 "type": "zip", 13 "url": "https://bitbucket.org/MihaOo/easycontent.io-html-handler/get/8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6.zip", 14 "reference": "8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6", 15 "shasum": "" 16 }, 17 "require": { 18 "ext-dom": "*", 19 "ext-libxml": "*", 20 "ext-mbstring": "*" 21 }, 22 "require-dev": { 23 "phpunit/phpunit": "7.5.13" 24 }, 25 "time": "2021-05-13T13:15:58+00:00", 26 "type": "library", 27 "installation-source": "dist", 28 "autoload": { 29 "psr-4": { 30 "PhpGangsters\\EasyContent\\HtmlHandler\\": "src/" 31 } 32 }, 33 "notification-url": "https://packagist.org/downloads/", 34 "license": [ 35 "MIT" 36 ], 37 "authors": [ 38 { 39 "name": "Sukovitsyn Mikhail", 40 "email": "ms2705335@gmail.com" 41 } 42 ], 43 "description": "Tool to perform DOM manipulations with articles that was written with easyContent.io", 44 "homepage": "https://bitbucket.org/MihaOo/easycontent.io-html-handler" 45 } 46 ] 1 { 2 "packages": [ 3 { 4 "name": "mihaoo/easycontent-html-handler", 5 "version": "dev-master", 6 "version_normalized": "dev-master", 7 "source": { 8 "type": "git", 9 "url": "https://bitbucket.org/MihaOo/easycontent.io-html-handler.git", 10 "reference": "8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6" 11 }, 12 "dist": { 13 "type": "zip", 14 "url": "https://bitbucket.org/MihaOo/easycontent.io-html-handler/get/8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6.zip", 15 "reference": "8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6", 16 "shasum": "" 17 }, 18 "require": { 19 "ext-dom": "*", 20 "ext-libxml": "*", 21 "ext-mbstring": "*" 22 }, 23 "require-dev": { 24 "phpunit/phpunit": "7.5.13" 25 }, 26 "time": "2021-05-13T13:15:58+00:00", 27 "type": "library", 28 "installation-source": "dist", 29 "autoload": { 30 "psr-4": { 31 "PhpGangsters\\EasyContent\\HtmlHandler\\": "src/" 32 } 33 }, 34 "notification-url": "https://packagist.org/downloads/", 35 "license": [ 36 "MIT" 37 ], 38 "authors": [ 39 { 40 "name": "Sukovitsyn Mikhail", 41 "email": "ms2705335@gmail.com" 42 } 43 ], 44 "description": "Tool to perform DOM manipulations with articles that was written with easyContent.io", 45 "homepage": "https://bitbucket.org/MihaOo/easycontent.io-html-handler", 46 "install-path": "../mihaoo/easycontent-html-handler" 47 } 48 ], 49 "dev": false, 50 "dev-package-names": [] 51 }
Note: See TracChangeset
for help on using the changeset viewer.