setAuthenticationHeader(API_AUTHENTICATION_HEADER); $server->getMiddlewareHandler() ->withMiddleware(new AuthenticationApiMiddleware($container)) ; $server->getProcedureHandler() ->withObject(new MeApi($container)) ->withObject(new ActionApi($container)) ->withObject(new AppApi($container)) ->withObject(new BoardApi($container)) ->withObject(new ColumnApi($container)) ->withObject(new CategoryApi($container)) ->withObject(new CommentApi($container)) ->withObject(new FileApi($container)) ->withObject(new LinkApi($container)) ->withObject(new ProjectApi($container)) ->withObject(new ProjectPermissionApi($container)) ->withObject(new SubtaskApi($container)) ->withObject(new SwimlaneApi($container)) ->withObject(new TaskApi($container)) ->withObject(new TaskLinkApi($container)) ->withObject(new UserApi($container)) ->withObject(new GroupApi($container)) ->withObject(new GroupMemberApi($container)) ; $container['api'] = $server; return $container; } }