This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // web/index.php in Silex | |
| // .. | |
| $app->register(new Silex\Provider\TranslationServiceProvider(), array( | |
| 'locale' => array('fr'), // Instead of 'locale' => 'fr', | |
| )); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Ctrl | |
| def close | |
| user = User.new # load from somewhere | |
| CloseAccountPolicy.new(user).apply! | |
| puts user.inspect | |
| end | |
| end | |
| # Nearly an AnemicDomainModel because some of it's behavor is externalized | |
| class User |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RMFLAGS = -f | |
| REAL = main.c | |
| OBJ = $(REAL:.c=.o) | |
| EXE = tpthreads | |
| EFFACE = clean | |
| RM = rm | |
| COMP = gcc | |
| EDL = gcc | |
| LIBS = -pthread -O3 -ffast-math | |
| API = |
NewerOlder