Commit Graph

84 Commits

Author SHA1 Message Date
ba0b0629b7
[TOOLS] Fix deprecations in php-doc-check by providing my own implementation 2022-01-03 02:18:44 +00:00
2dbc35fcc3
[DEPENDENCIES] Update dependencies 2021-12-30 18:28:57 +00:00
edd996d281
[DEPENDENCIES] Update dependencies, including PHPStan to dev version 2021-12-27 17:35:33 +00:00
52e2231661
[DEPENDENCIES] Update PHPStan and other dependencies 2021-12-27 03:03:57 +00:00
6f0d9add08
[DEPENDENCIES] Run composer after php version bump from 8.0 to 8.1 2021-12-26 19:16:17 +00:00
774b33a522
[DEPENDENCIES] Update dependencies and Symfony to 5.4 LTS 2021-12-24 02:46:41 +00:00
ab5e074d9e
[DEPENDENCIES] Update lstrojny/functional-php 2021-12-10 13:54:10 +00:00
b1227d36f1
[CARDS][Note] In conversation time ago information added 2021-12-08 22:48:04 +00:00
778cb57d83
[PLUGIN][ActivityPub] Finish base ActivityStreams 2.0 interface
Instructions below

To extend an Activity properties do:

public function onActivityPubValidateActivityStreamsTwoData(string $type_name, array &$validators): bool {
    if ($type_name === '{Type}') {
        $validators['attribute'] = myValidator::class;
    }
    return Event::next;
}

The Validator should be of the form:

use ActivityPhp\Type;
use ActivityPhp\Type\Util;
use Plugin\ActivityPub\Util\ModelValidator;

class myValidator extends ModelValidator
{
    /**
     * Validate Attribute's value
     *
     * @param mixed $value from JSON's attribute
     * @param mixed $container A {Type}
     * @return bool
     * @throws Exception
     */
    public function validate($value, $container): bool
    {
        // Validate that container is a {Type}
        Util::subclassOf($container, Type\Extended\Object\{Type}::class, true);

        return {Validation Result};

To act on received activities do:

public function onActivityPubNew{Type}(&$obj): bool {

To add information to Activities being federated by ActivityPub do:

public function ActivityPubAddActivityStreamsTwoData(string $type_name, &$type): bool {

To implement an ActivityStreams 2.0 representation do:

public function onActivityPubActivityStreamsTwoResponse(string $route, arrray $vars, ?TypeResponse &$response = null): bool {
        if ($route === '{Object route}') {
                $response = ModelResponse::handle($vars[{Object}]);
                return Event::stop;
        }
        return Event::next;
}
2021-12-04 21:05:07 +00:00
4571b18c60
[DEPENDENCIES] Update dependencies 2021-11-25 20:37:53 +00:00
5e4ada7b78
[DEPENDENCIES] Update symfony to 5.3, which fixes a bug with the doctrine postgres message worker 2021-11-15 19:25:53 +00:00
c3705112ba
[DEPENDENCIES] Update dependencies 2021-11-09 23:38:37 +00:00
a55d60d880
[DEPENDENCIES] Update dependencies 2021-10-28 14:31:56 +01:00
51c984849f
[ActivityPub] Port Explorer 2021-10-27 04:22:19 +01:00
8544fe157b
[FreeNetwork] First steps porting webfinger/lrdd to v3, GET webfinger requests already have a basic result 2021-10-27 04:19:29 +01:00
7aad58b440
[DEPENDENCIES] Update composer dependencies 2021-10-27 04:19:27 +01:00
c0c7eb32dc
[DEPENDENCIES] Update composer dependencies 2021-09-18 05:12:07 +01:00
ecb1064d08
[DEPENDENCIES] Add PHPStan as a dev dependency 2021-09-14 13:13:42 +01:00
6ac37bc7fb
[DEPENDENCIES] Update dependencies 2021-09-14 13:13:41 +01:00
f67173061b
[VideoEncoder] Add plugin composer dependency php-ffmpeg/php-ffmpeg 2021-09-14 13:13:32 +01:00
5410f22060
[DEPENDENCIES] Update dependencies 2021-09-14 13:13:29 +01:00
8880405dee
[DEPENDENCIES] Update dependencies 2021-09-14 13:13:24 +01:00
b355f0d590
[DEV] Add PsySH REPL 2021-09-14 13:13:20 +01:00
c3d2f04841
[DEPENDENCIES] Add symfonycasts/reset-password-bundle as a dependency 2021-09-14 13:13:17 +01:00
f2727f9327
[DEPENDENCIES] Add doctrine/doctrine-fixtures-bundle, which allows populating the database in the testing environment 2021-09-14 13:12:59 +01:00
8ad8546aab
[DEPENDENCIES] Add oroinc/doctrine-extensions, which provides cross database platform date functions 2021-09-14 13:12:54 +01:00
b647e31495
[DEPENDENCIES] Add 'embed/embed', 'nyholm/psr7' and 'symfony/dom-crawler' 2021-09-14 13:12:51 +01:00
e834ac2c8d
[DEPENDENCIES] Add php-vips 2021-09-14 13:11:51 +01:00
ed59cce0f9
[COMPOSER][Media] Add example composer.json in plugins/Media 2021-09-14 13:11:49 +01:00
5f4815b12f
[DEPENDENCIES] Add wikimedia/composer-merge-plugin 2021-09-14 13:11:48 +01:00
92d0848280
[DEPENDENCIES] Add jchook/phpunit-assert-throws and update dependencies 2021-09-14 13:10:23 +01:00
121faccb22
[DEPENDENCIES] Update dependencies, including redis-polyfill, to be able to implement a test 2021-09-14 13:10:22 +01:00
f5a6e2f047
[DEPENDENCIES] Upgrade to Symfony 5.2 to get my upstream ICU translation feature 2021-09-14 13:10:21 +01:00
03a0df987e
[DEPENDENCIES] Update all dependencies 2021-09-14 13:10:21 +01:00
9cd5560081
[DOCKER] Bump to PHP version 8 2021-09-14 13:06:57 +01:00
460712e15e
[GIT] Change my email to the new one in all files and bump copyright year 2021-09-14 13:06:56 +01:00
Hugo Sales
ce3cae0ef7
[DEPENDENCIES] Update all dependencies 2021-09-14 13:06:56 +01:00
Hugo Sales
411884bfc5
[DEPENDENCIES] Update dependencies 2021-09-14 13:06:55 +01:00
Hugo Sales
de8fa87079
[DEPENDENCIES] Update dependencies 2021-09-14 13:06:55 +01:00
Hugo Sales
8ce1c1cee6
[DEPENDENCIES] Update dependencies 2021-09-14 13:06:55 +01:00
Hugo Sales
d1ea9d2fdf
[DEPENDENCIES] Update dependencies 2021-09-14 13:06:53 +01:00
Hugo Sales
a5cf89674e
[DEPENDENCY] Add tgalopin/html-sanitizer-bundle and transitively tgalopin/html-sanitizer 2021-09-14 13:05:57 +01:00
Hugo Sales
e3e9ece614
[DEPENDENCY] Update dependencies 2021-09-14 13:05:54 +01:00
Hugo Sales
9c660f39ed
[DEPENDENCIES] Update dependencies 2021-09-14 13:05:50 +01:00
Hugo Sales
7560db4d5f
[DEPENDENCY] Update dependencies 2021-09-14 13:05:46 +01:00
Hugo Sales
ead29a636d
[DEPENDENCY] Add odolbeau/phone-number-bundle 2021-09-14 13:05:44 +01:00
Hugo Sales
672e2b80eb
[DEPENDENCY] Add symfonycasts/verify-email-bundle 2021-09-14 13:05:41 +01:00
Hugo Sales
8f68bde21a
[DEPENDENCY] Add symfony/config as a dependency 2021-09-14 13:05:38 +01:00
Hugo Sales
4776cff969
[DEPENDENCY] Add mock polyfill implementations of the redis and memcached extension 2021-09-14 13:05:35 +01:00
Hugo Sales
2671c37039
[PHP][EXTENSION][POLYFILL] Add php-ds polyfill, which is used if the native extension is not available 2021-09-14 13:05:34 +01:00