forked from ecotoneframework/ecotone-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cursorrules
More file actions
28 lines (20 loc) · 816 Bytes
/
.cursorrules
File metadata and controls
28 lines (20 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Cursor Rules for Ecotone
For comprehensive guidelines, read AGENTS.md in the project root.
## Quick Reference
- Ecotone is a PHP framework for message-driven architecture (DDD, CQRS, Event Sourcing)
- Use PHP 8.1+ attributes: #[CommandHandler], #[EventHandler], #[QueryHandler]
- Test with EcotoneLite::bootstrapForTesting()
- No comments in code - use descriptive method names instead
- Documentation: https://docs.ecotone.tech
## Code Style
- PHP 8.1+ features (attributes, enums, named arguments)
- All public APIs need @param/@return PHPDoc
- Follow existing patterns in the codebase
- Messages (Commands, Events, Queries) are first-class citizens
## Testing
Run tests inside Docker container:
```bash
docker exec -it -u root ecotone_development /bin/bash
cd packages/PackageName
composer tests:ci
```