Plugin Directory

Changeset 2822815


Ignore:
Timestamp:
11/23/2022 11:33:56 AM (3 years ago)
Author:
easycontent
Message:

Version 1.1.1 update

Location:
easycontent/trunk
Files:
4 added
1 deleted
15 edited

Legend:

Unmodified
Added
Removed
  • easycontent/trunk/app/Attachment.php

    r2779639 r2822815  
    33namespace EasyContent\WordPress;
    44
    5 class Attachment
     5use EasyContent\WordPress\ValueObjects\AttachmentPost;
     6
     7final class Attachment
    68{
    7     /** @var \WP_Post $attachmentObject */
    8     protected $attachmentObject;
    9 
    10     /** @var false|string $filePath */
    11     protected $filePath;
     9    /** @var AttachmentPost $attachmentPost */
     10    private $attachmentPost;
    1211
    1312    /** @var false|string $extension */
    14     protected $extension;
     13    private $extension;
    1514
    1615    /** @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());
    4354
    4455        $this->extension = $data['ext'];
    4556        $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    }
    5468
    5569    public function getFilePath()
    5670    {
    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();
    6272    }
    6373
     
    127137
    128138        try {
    129             $attachmentObject = new self( get_post( $attachmentId ) );
     139            $attachmentObject = self::fromWordPressPost(get_post($attachmentId));
    130140        } catch ( \Exception $e ) {
    131141            return null;
     
    186196
    187197        self::resize( $attachmentFilePath );
    188         self::updateMetaData( $this->attachmentObject->ID, $attachmentFilePath );
     198        self::updateMetaData( $this->attachmentPost->getId(), $attachmentFilePath );
    189199
    190200        return true;
  • easycontent/trunk/app/Implementation/Entity/DbPostStorage.php

    r2779639 r2822815  
    101101        if ($post->getFeaturedImage()) {
    102102            if ($attachment = Attachment::createFromUrl($post->getFeaturedImage()->getUrl(), $post->getId())) {
    103                 set_post_thumbnail($post->getId(), $attachment->getPostObject()->ID);
     103                set_post_thumbnail($post->getId(), $attachment->getAttachmentPost()->getId());
    104104
    105105                if ($post->getFeaturedImage()->getAlt() !== '') {
    106106                    update_post_meta(
    107                         $attachment->getPostObject()->ID,
     107                        $attachment->getAttachmentPost()->getId(),
    108108                        '_wp_attachment_image_alt',
    109109                        $post->getFeaturedImage()->getAlt()
  • easycontent/trunk/app/MediaList.php

    r2547693 r2822815  
    33namespace EasyContent\WordPress;
    44
    5 class MediaList
     5use EasyContent\WordPress\ValueObjects\AttachmentPost;
     6
     7final class MediaList
    68{
    7     /** @var array|\WP_Post[] $mediaFiles */
    8     protected $mediaFiles;
     9    /** @var array|AttachmentPost[] $mediaFiles */
     10    private $mediaFiles;
    911
    1012    /** @var array|int[] $sourceUrls */
    11     protected $sourceUrls;
     13    private $sourceUrls;
    1214
    13 
     15    /**
     16     * @return array|AttachmentPost[]
     17     */
    1418    public function getMediaFiles()
    1519    {
    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        }
    2323
    24             if ( $mediaQuery->have_posts() ) {
    25                 $posts = $mediaQuery->get_posts();
    26                 $ids = array_column( $posts, 'ID' );
     24        global $wpdb;
    2725
    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;
    3141            }
     42
     43            $this->mediaFiles[$row['ID']] = $post;
    3244        }
    3345
    3446        return $this->mediaFiles;
    3547    }
    36 
    3748
    3849    public function getSourceUrls()
  • easycontent/trunk/app/Plugin.php

    r2779639 r2822815  
    104104                'ec-gutenberg',
    105105                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']
    107107            );
    108108        } );
  • easycontent/trunk/app/helpers/PostContentProcessor.php

    r2547693 r2822815  
    120120
    121121            if ( $downloadedAttachment ) {
    122                 $wpUrl = $downloadedAttachment->getPostObject()->guid;
     122                $wpUrl = $downloadedAttachment->getAttachmentPost()->getLocalUrl();
    123123                $this->setParsedFileListItemWordPressUrl( $url, $wpUrl );
    124124            }
     
    147147                        $newUrl = ! isset( $mediaFiles[$mediaId] )
    148148                            ? null
    149                             : $mediaFiles[$mediaId]->guid;
     149                            : $mediaFiles[$mediaId]->getLocalUrl();
    150150                    } else {
    151151                        $newUrl = $parsedFileList[$url]->getWPUrl();
     
    190190
    191191            try {
    192                 $attachmentObj = new Attachment( $mediaFiles[$attachmentId] );
     192                $attachmentObj = Attachment::fromAttachmentPost($mediaFiles[$attachmentId]);
    193193            } catch ( \Exception $e ) {
    194194                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  
    44 * Plugin URI:  https://easycontent.io
    55 * Description: Imports articles from EasyContent to your wordpress site and exports articles from your wordpress site to EasyContent
    6  * Version: 1.1.0
     6 * Version: 1.1.1
    77 * Requires at least: 5.0.7
    88 * Requires PHP: 5.6
     
    2121
    2222if ( ! defined( 'EASYCONTENT_PLUGIN_VERSION' ) ) {
    23     define( 'EASYCONTENT_PLUGIN_VERSION', '1.1.0' );
     23    define( 'EASYCONTENT_PLUGIN_VERSION', '1.1.1' );
    2424}
    2525
  • easycontent/trunk/readme.txt

    r2779639 r2822815  
    44Tags:               easycontent, easy content, workflow, approval, collaboration, import, export, manage writers, publishing, content flow, editorial, approval process, content tool
    55Requires at least:  5.0.7
    6 Tested up to:       5.8
     6Tested up to:       6.1.1
    77Requires PHP:       5.6
    8 Stable tag:         1.1.0
     8Stable tag:         1.1.1
    99License:            GPL-2.0+
    1010License URI:        http://www.gnu.org/licenses/gpl-2.0.html
     
    6161== Changelog ==
    6262
     63= 1.1.1 =
     64* Increased performance
     65
    6366= 1.1.0 =
    6467* Removed side dependencies
  • easycontent/trunk/vendor/autoload.php

    r2779639 r2822815  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit4127b70eedb5938869a6c74dd854991c::getLoader();
     7return ComposerAutoloaderInit7dae9bd853b553b605d2fc0df575b898::getLoader();
  • easycontent/trunk/vendor/composer/ClassLoader.php

    r2547693 r2822815  
    3838 * @author Fabien Potencier <fabien@symfony.com>
    3939 * @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/
    4242 */
    4343class ClassLoader
    4444{
     45    /** @var ?string */
     46    private $vendorDir;
     47
    4548    // PSR-4
     49    /**
     50     * @var array[]
     51     * @psalm-var array<string, array<string, int>>
     52     */
    4653    private $prefixLengthsPsr4 = array();
     54    /**
     55     * @var array[]
     56     * @psalm-var array<string, array<int, string>>
     57     */
    4758    private $prefixDirsPsr4 = array();
     59    /**
     60     * @var array[]
     61     * @psalm-var array<string, string>
     62     */
    4863    private $fallbackDirsPsr4 = array();
    4964
    5065    // PSR-0
     66    /**
     67     * @var array[]
     68     * @psalm-var array<string, array<string, string[]>>
     69     */
    5170    private $prefixesPsr0 = array();
     71    /**
     72     * @var array[]
     73     * @psalm-var array<string, string>
     74     */
    5275    private $fallbackDirsPsr0 = array();
    5376
     77    /** @var bool */
    5478    private $useIncludePath = false;
     79
     80    /**
     81     * @var string[]
     82     * @psalm-var array<string, string>
     83     */
    5584    private $classMap = array();
     85
     86    /** @var bool */
    5687    private $classMapAuthoritative = false;
     88
     89    /**
     90     * @var bool[]
     91     * @psalm-var array<string, bool>
     92     */
    5793    private $missingClasses = array();
     94
     95    /** @var ?string */
    5896    private $apcuPrefix;
    5997
     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     */
    60114    public function getPrefixes()
    61115    {
    62116        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));
    64118        }
    65119
     
    67121    }
    68122
     123    /**
     124     * @return array[]
     125     * @psalm-return array<string, array<int, string>>
     126     */
    69127    public function getPrefixesPsr4()
    70128    {
     
    72130    }
    73131
     132    /**
     133     * @return array[]
     134     * @psalm-return array<string, string>
     135     */
    74136    public function getFallbackDirs()
    75137    {
     
    77139    }
    78140
     141    /**
     142     * @return array[]
     143     * @psalm-return array<string, string>
     144     */
    79145    public function getFallbackDirsPsr4()
    80146    {
     
    82148    }
    83149
     150    /**
     151     * @return string[] Array of classname => path
     152     * @psalm-return array<string, string>
     153     */
    84154    public function getClassMap()
    85155    {
     
    88158
    89159    /**
    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
    91164     */
    92165    public function addClassMap(array $classMap)
     
    103176     * appending or prepending to the ones previously set for this prefix.
    104177     *
    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
    108183     */
    109184    public function add($prefix, $paths, $prepend = false)
     
    148223     * appending or prepending to the ones previously set for this namespace.
    149224     *
    150      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    151      * @param array|string $paths   The PSR-4 base directories
    152      * @param bool         $prepend Whether to prepend the directories
     225     * @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
    153228     *
    154229     * @throws \InvalidArgumentException
     230     *
     231     * @return void
    155232     */
    156233    public function addPsr4($prefix, $paths, $prepend = false)
     
    196273     * replacing any others previously set for this prefix.
    197274     *
    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
    200279     */
    201280    public function set($prefix, $paths)
     
    212291     * replacing any others previously set for this namespace.
    213292     *
    214      * @param string       $prefix The prefix/namespace, with trailing '\\'
    215      * @param array|string $paths  The PSR-4 base directories
     293     * @param string          $prefix The prefix/namespace, with trailing '\\'
     294     * @param string[]|string $paths  The PSR-4 base directories
    216295     *
    217296     * @throws \InvalidArgumentException
     297     *
     298     * @return void
    218299     */
    219300    public function setPsr4($prefix, $paths)
     
    235316     *
    236317     * @param bool $useIncludePath
     318     *
     319     * @return void
    237320     */
    238321    public function setUseIncludePath($useIncludePath)
     
    257340     *
    258341     * @param bool $classMapAuthoritative
     342     *
     343     * @return void
    259344     */
    260345    public function setClassMapAuthoritative($classMapAuthoritative)
     
    277362     *
    278363     * @param string|null $apcuPrefix
     364     *
     365     * @return void
    279366     */
    280367    public function setApcuPrefix($apcuPrefix)
     
    297384     *
    298385     * @param bool $prepend Whether to prepend the autoloader or not
     386     *
     387     * @return void
    299388     */
    300389    public function register($prepend = false)
    301390    {
    302391        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        }
    303403    }
    304404
    305405    /**
    306406     * Unregisters this instance as an autoloader.
     407     *
     408     * @return void
    307409     */
    308410    public function unregister()
    309411    {
    310412        spl_autoload_unregister(array($this, 'loadClass'));
     413
     414        if (null !== $this->vendorDir) {
     415            unset(self::$registeredLoaders[$this->vendorDir]);
     416        }
    311417    }
    312418
     
    315421     *
    316422     * @param  string    $class The name of the class
    317      * @return bool|null True if loaded, null otherwise
     423     * @return true|null True if loaded, null otherwise
    318424     */
    319425    public function loadClass($class)
     
    324430            return true;
    325431        }
     432
     433        return null;
    326434    }
    327435
     
    368476    }
    369477
     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     */
    370493    private function findFileWithExtension($class, $ext)
    371494    {
     
    439562 *
    440563 * Prevents access to $this/self from included files.
     564 *
     565 * @param  string $file
     566 * @return void
     567 * @private
    441568 */
    442569function includeFile($file)
  • easycontent/trunk/vendor/composer/autoload_classmap.php

    r2779639 r2822815  
    77
    88return array(
     9    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    910    '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',
    3311    'EasyContent\\WordPress\\Implementation\\Container' => $baseDir . '/app/Implementation/Container.php',
    3412    'EasyContent\\WordPress\\Implementation\\Db\\Migration' => $baseDir . '/app/Implementation/Db/Migration.php',
     
    6846    'EasyContent\\WordPress\\Implementation\\Http\\Exception\\NotFoundException' => $baseDir . '/app/Implementation/Http/Exception/NotFoundException.php',
    6947    'EasyContent\\WordPress\\Implementation\\Http\\Method' => $baseDir . '/app/Implementation/Http/Method.php',
    70     'EasyContent\\WordPress\\Infrastructure\\SeoPackPostRepository' => $baseDir . '/app/infrastructure/SeoPackPostRepository.php',
    7148    'EasyContent\\WordPress\\ListTableManager' => $baseDir . '/app/ListTableManager.php',
    7249    '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',
    7550    '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',
    8151    'EasyContent\\WordPress\\Plugin' => $baseDir . '/app/Plugin.php',
    8252    'EasyContent\\WordPress\\Post' => $baseDir . '/app/Post.php',
    8353    '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',
    9554    'EasyContent\\WordPress\\Singleton' => $baseDir . '/app/Singleton.php',
    9655    'EasyContent\\WordPress\\Source\\Api\\Entity\\Article' => $baseDir . '/app/Source/Api/Entity/Article.php',
     
    144103    'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Command' => $baseDir . '/app/Source/UseCase/SetNewStatus/Command.php',
    145104    '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',
    151106    'EasyContent\\WordPress\\ValueObjects\\PostStatus' => $baseDir . '/app/ValueObjects/PostStatus.php',
    152107    'EasyContent\\WordPress\\ValueObjects\\PostType' => $baseDir . '/app/ValueObjects/PostType.php',
  • easycontent/trunk/vendor/composer/autoload_real.php

    r2779639 r2822815  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit4127b70eedb5938869a6c74dd854991c
     5class ComposerAutoloaderInit7dae9bd853b553b605d2fc0df575b898
    66{
    77    private static $loader;
     
    2323        }
    2424
    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'));
    2830
    2931        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    3032        if ($useStaticLoader) {
    31             require_once __DIR__ . '/autoload_static.php';
     33            require __DIR__ . '/autoload_static.php';
    3234
    33             call_user_func(\Composer\Autoload\ComposerStaticInit4127b70eedb5938869a6c74dd854991c::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit7dae9bd853b553b605d2fc0df575b898::getInitializer($loader));
    3436        } else {
    3537            $map = require __DIR__ . '/autoload_namespaces.php';
  • easycontent/trunk/vendor/composer/autoload_static.php

    r2779639 r2822815  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit4127b70eedb5938869a6c74dd854991c
     7class ComposerStaticInit7dae9bd853b553b605d2fc0df575b898
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    3030
    3131    public static $classMap = array (
     32        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
    3233        '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',
    5634        'EasyContent\\WordPress\\Implementation\\Container' => __DIR__ . '/../..' . '/app/Implementation/Container.php',
    5735        'EasyContent\\WordPress\\Implementation\\Db\\Migration' => __DIR__ . '/../..' . '/app/Implementation/Db/Migration.php',
     
    9169        'EasyContent\\WordPress\\Implementation\\Http\\Exception\\NotFoundException' => __DIR__ . '/../..' . '/app/Implementation/Http/Exception/NotFoundException.php',
    9270        'EasyContent\\WordPress\\Implementation\\Http\\Method' => __DIR__ . '/../..' . '/app/Implementation/Http/Method.php',
    93         'EasyContent\\WordPress\\Infrastructure\\SeoPackPostRepository' => __DIR__ . '/../..' . '/app/infrastructure/SeoPackPostRepository.php',
    9471        'EasyContent\\WordPress\\ListTableManager' => __DIR__ . '/../..' . '/app/ListTableManager.php',
    9572        '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',
    9873        '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',
    10474        'EasyContent\\WordPress\\Plugin' => __DIR__ . '/../..' . '/app/Plugin.php',
    10575        'EasyContent\\WordPress\\Post' => __DIR__ . '/../..' . '/app/Post.php',
    10676        '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',
    11877        'EasyContent\\WordPress\\Singleton' => __DIR__ . '/../..' . '/app/Singleton.php',
    11978        'EasyContent\\WordPress\\Source\\Api\\Entity\\Article' => __DIR__ . '/../..' . '/app/Source/Api/Entity/Article.php',
     
    167126        'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Command' => __DIR__ . '/../..' . '/app/Source/UseCase/SetNewStatus/Command.php',
    168127        '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',
    174129        'EasyContent\\WordPress\\ValueObjects\\PostStatus' => __DIR__ . '/../..' . '/app/ValueObjects/PostStatus.php',
    175130        'EasyContent\\WordPress\\ValueObjects\\PostType' => __DIR__ . '/../..' . '/app/ValueObjects/PostType.php',
     
    192147    {
    193148        return \Closure::bind(function () use ($loader) {
    194             $loader->prefixLengthsPsr4 = ComposerStaticInit4127b70eedb5938869a6c74dd854991c::$prefixLengthsPsr4;
    195             $loader->prefixDirsPsr4 = ComposerStaticInit4127b70eedb5938869a6c74dd854991c::$prefixDirsPsr4;
    196             $loader->classMap = ComposerStaticInit4127b70eedb5938869a6c74dd854991c::$classMap;
     149            $loader->prefixLengthsPsr4 = ComposerStaticInit7dae9bd853b553b605d2fc0df575b898::$prefixLengthsPsr4;
     150            $loader->prefixDirsPsr4 = ComposerStaticInit7dae9bd853b553b605d2fc0df575b898::$prefixDirsPsr4;
     151            $loader->classMap = ComposerStaticInit7dae9bd853b553b605d2fc0df575b898::$classMap;
    197152
    198153        }, 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.