Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ezpublish Kernel Laravel Package

ezsystems/ezpublish-kernel

eZ Publish Kernel is the core of the eZ Publish/eZ Platform CMS, providing the content repository, field types, search integration, and services for building and extending PHP-based content applications with a modular, API-driven architecture.

View on GitHub
Deep Wiki
Context7

Legacy DFS cluster

Added in 5.4 / 2014.11

Summary

Adds a legacy_dfs_cluster IO metadata handler. It stores metadata in the ezdfsfile table from the legacy database. It is meant to be used to write binarydata on a locally mounted NFS server.

Configuration

This handler isn't enabled by default. If you enable it, you also need to enable and configure it on your legacy instance.

Once this is done, assuming that your database is named ezdfs, configure it, for instance in ezpublish.yml:

# set the handlers
ezpublish:
    system:
        default:
            io:
                metadata_handler: dfs
                binarydata_handler: nfs

# declare the handlers
ez_io:
    binarydata_handlers:
        nfs:
            local:
                adapter: nfs_adapter
    metadata_handlers:
        dfs:
            legacy_dfs_cluster:
                # Service ID of Doctrine DBAL connection for ezdfs
                connection: doctrine.dbal.ezdfs_connection

# new doctrine connection
doctrine:
    dbal:
        connections:
            ezdfs:
                driver: pdo_mysql
                host: 127.0.0.1
                port: 3306
                dbname: ezdfs
                user: root
                password: "rootpassword"
                charset: UTF8

# new flysystem adapter
oneup_flysystem:
    adapters:
        nfs_adapter:
            local:
                # The last part, $var_dir$/$storage_dir$, is required for legacy compatibility
                directory: "/path/to/nfs/$var_dir$/$storage_dir$"

Important: take good note of the $var_dir$/$storage_dir$ part for the NFS path. Legacy expects this path to exist on the NFS mount in order to be able to read and write files.

Web server rewrite rules.

The default eZ Publish rewrite rules will let image requests be served directly from disk. With native support, files matching ^/var/([^/]+/)?storage/images(-versioned)?/.* have to be sent to the normal app.php

In any case, this specific rewrite rule must be placed without the ones that "ignore" image files and just let the web server serve the files.

Apache

RewriteRule ^/var/([^/]+/)?storage/images(-versioned)?/.* /app.php [L]

nginx

rewrite "^/var/([^/]+/)?storage/images(-versioned)?/(.*)" "/app.php" break;
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky