setAuthenticationHeader(API_AUTHENTICATION_HEADER); $server->getMiddlewareHandler() ->withMiddleware(new AuthenticationMiddleware($container)) ; $server->getProcedureHandler() ->withObject(new MeProcedure($container)) ->withObject(new ActionProcedure($container)) ->withObject(new AppProcedure($container)) ->withObject(new BoardProcedure($container)) ->withObject(new ColumnProcedure($container)) ->withObject(new CategoryProcedure($container)) ->withObject(new CommentProcedure($container)) ->withObject(new TaskFileProcedure($container)) ->withObject(new LinkProcedure($container)) ->withObject(new ProjectProcedure($container)) ->withObject(new ProjectPermissionProcedure($container)) ->withObject(new SubtaskProcedure($container)) ->withObject(new SubtaskTimeTrackingProcedure($container)) ->withObject(new SwimlaneProcedure($container)) ->withObject(new TaskProcedure($container)) ->withObject(new TaskLinkProcedure($container)) ->withObject(new TaskExternalLinkProcedure($container)) ->withObject(new UserProcedure($container)) ->withObject(new GroupProcedure($container)) ->withObject(new GroupMemberProcedure($container)) ->withBeforeMethod('beforeProcedure') ; $container['api'] = $server; return $container; } }